Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Date dim issue in report studio

Posted on 2008-10-16
3
695 Views
Last Modified: 2010-10-05
we have 8 reports, and each report could be seen with different time line daily, weekly,monthy, yearly...is there any way in report studio to dertermine date range dynamically and have one report tht takes tht parameter and run the repot.....currently for each timeline we have one report so if v have 8 reports and 5 timelines....it will be 8 *5 .....tht i dont want....one other solution is to make a routine in FM to determine date rage from date dim..and give tht to report studio.....
0
Comment
Question by:muhammadaqeel
  • 2
3 Comments
 
LVL 12

Expert Comment

by:RWrigley
ID: 22734897
I'm not sure I follow your report logic.  How is the date range determined for each report?  You can easily design your report to generate things like year to date, month to day, etc off of a single parameter.
0
 

Author Comment

by:muhammadaqeel
ID: 22735937
okey v hav one prompt page ...that allows user to select the report and select the time line...lets say repror is sales and time line is yearly.....so wht report authers are saying as sales report could be daily, weekly,monthly or yearly they hav to create 4 reports.....as inorder to get the date for weekly and monthly they hav to create a join to the date dim at report level....
0
 
LVL 12

Accepted Solution

by:
RWrigley earned 500 total points
ID: 22737330
uh...no.  

If the datasource is dimensional, then you need to create a dataitem that unions four filtered set expressions together.  The whole expression will look :

Union(
  union(
    filter([cube].[Time].[year].[year],?ReportType?='Yearly'),
    filter([cube].[Time].[year].[month],?ReportType?='Monthly')
  ),
  union(
     filter([cube].[Time].[year].[week],?ReportType?='Weekly'),
     filter([cube].[Time].[year].[day],?ReportType?='Daily')
  )
)

The key to this is the filter expression; only one of them will be "true", which means that the other three expressions  will return an empty set.  ENd result is that you only get the set of members for the selected time period.  Substitute the level expression for whatever the required set expression is for each report type.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

How to increase the row limit in Jasper Server.
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

838 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question