SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Stairway to MDX - Level 13: MDX Time/Date Series Functions: LastPeriods() and ParallelPeriod()...


Stairway to MDX - Level 13: MDX Time/Date Series Functions: LastPeriods() and ParallelPeriod() Functions

Author
Message
Bill_Pearson
Bill_Pearson
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1215 Visits: 88
Comments posted to this topic are about the item Stairway to MDX - Level 13: MDX Time/Date Series Functions: LastPeriods() and ParallelPeriod() Functions
bibhushan88
bibhushan88
SSC Journeyman
SSC Journeyman (80 reputation)SSC Journeyman (80 reputation)SSC Journeyman (80 reputation)SSC Journeyman (80 reputation)SSC Journeyman (80 reputation)SSC Journeyman (80 reputation)SSC Journeyman (80 reputation)SSC Journeyman (80 reputation)

Group: General Forum Members
Points: 80 Visits: 35
if we are using not taking any row members and taking time dimensions on filter and if you select multiples is it works i tried but it is not working can you help me inthat
Lazarus Islo
Lazarus Islo
SSC Rookie
SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)

Group: General Forum Members
Points: 46 Visits: 2
Great detail, and easy to follow for readers with English as a second language ... :-P:-)
Iwas Bornready
Iwas Bornready
SSC Guru
SSC Guru (69K reputation)SSC Guru (69K reputation)SSC Guru (69K reputation)SSC Guru (69K reputation)SSC Guru (69K reputation)SSC Guru (69K reputation)SSC Guru (69K reputation)SSC Guru (69K reputation)

Group: General Forum Members
Points: 69006 Visits: 886
Thanks for the detailed article.
bibhushan88
bibhushan88
SSC Journeyman
SSC Journeyman (80 reputation)SSC Journeyman (80 reputation)SSC Journeyman (80 reputation)SSC Journeyman (80 reputation)SSC Journeyman (80 reputation)SSC Journeyman (80 reputation)SSC Journeyman (80 reputation)SSC Journeyman (80 reputation)

Group: General Forum Members
Points: 80 Visits: 35
I have a calculated Measure for parallel period.


My requirement is when we are taking time dimension on filters and selecting multiple months it is showing error.Here i am not taking time dimension on row field . will it work with out taking time dimension on row field .when i am taking row field it is working fine if i use the some other calculation like getting the last member from the filter



Thanks
sb8910 67785
sb8910 67785
SSC Journeyman
SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)

Group: General Forum Members
Points: 85 Visits: 0
I'm trying to create two named sets. The first is a rolling 13 months, the second is the sum of those 13 rolling months. LastPeriods() with .CurrentMembers doesn't appear to work as the result pulls all members. If I use an explicit member the LastPeriods() function works, but does not roll. My code is below. Any suggestions are greatly appreciated!

LastPeriods(13,[Time].[Default].&[2017P02]) 'Works but doesn't roll
LastPeriods(13,[Time].[Default].CurrentMember) 'Pulls all members rather than the last 13?
SUM(LastPeriods(13,[Time].[Default].&[2017P02]),[Measures].[Value]) 'Error - "Invalid Named Set Definition: The Axis0 function expects a tuple set expression for the argument. A string or numeric expression was used."
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum









































































































































































SQLServerCentral


Search