Solved

Date dim issue in report studio

Posted on 2008-10-16
3
682 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Hello, In my precious Article  (http://www.experts-exchange.com/Database/Reporting/A_15280-Create-Project-in-Microstrategy-Part-I.html)we saw the Configuration part for Microstrategy which included Metadata Creation and DataSource Preparation as …
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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

910 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now