?
Solved

Date dim issue in report studio

Posted on 2008-10-16
3
Medium Priority
?
709 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
[X]
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
  • 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 2000 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

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.
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

771 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