Solved

Date dim issue in report studio

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Problem Statement In an SAP BI BO Integration project when a BO universe is built on a BEx query, there can be an issue of unit & formatted value objects not getting generated in a BO universe for some key figures. This results in an issue whereb…
I recently went through setting up a JasperReports Server using the AWS EC2 instance, and this article will cover some basic administration tasks I had to perform.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

706 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

17 Experts available now in Live!

Get 1:1 Help Now