ReportPortal
ReportPortal
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ReportPortal General Forum
 Report Portal General Issues
 Current Year - Time Dimension
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

roquesalde

Argentina
38 Posts

Posted - 12/21/2009 :  05:49:03  Show Profile  Click to see roquesalde's MSN Messenger address  Reply with Quote
Hello,

I´ve a problem with time dimesion, shows the current year as 2020, before this not happened, which may be the problem?

Regards

Roque A. Salde
www.corebi.com.ar

admin

1637 Posts

Posted - 12/21/2009 :  16:42:51  Show Profile  Reply with Quote
Please go to Admin > Settings > OLAP Report > Time Dimension - Current Day. The default method is "Last member that has value for any of the measures".

Does year 2020 have value for any measure?
Which method did you select?
Go to Top of Page

roquesalde

Argentina
38 Posts

Posted - 01/18/2010 :  07:18:41  Show Profile  Click to see roquesalde's MSN Messenger address  Reply with Quote
Hi, the problem was because I have values for year 2020, I correct that but the mdx query to obtain de current day don't work, could you send me the correct mdx expression?

Regards,

Roque A. Salde
www.corebi.com.ar
Go to Top of Page

admin

1637 Posts

Posted - 01/18/2010 :  19:48:47  Show Profile  Reply with Quote
Please try to run this MDX against your cube:

Select non empty
[Time].[Date].Members on rows,
non empty {
[Measures].AllMembers} on columns
From [My Cube]

What is the last row you see?
Go to Top of Page

roquesalde

Argentina
38 Posts

Posted - 01/19/2010 :  10:46:10  Show Profile  Click to see roquesalde's MSN Messenger address  Reply with Quote
Hi, thanks for your help.
The last row shows 01/12/2010, because this cube has a target measure, this measure is automatically calculated.
Wich is the equivalent mdx expression to "getdate()" in t-sql?

Regards

Roque A. Salde
www.corebi.com.ar
Go to Top of Page

admin

1637 Posts

Posted - 01/20/2010 :  20:55:43  Show Profile  Reply with Quote
The equivalent MDX expression to "getdate()" in t-SQL:

SELECT [Measures].Members ON COLUMNS,
{StrToMember("[Date].[Calendar].[" + Format(Now()-1, "MMMM d, yyyy") + "]")} ON ROWS
FROM [Adventure Works]

Please try this option:
Admin > Settings > OLAP report > Time Dimension - Current Day = Formula
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
ReportPortal © 2000-2002 Snitz Communications Go To Top Of Page