Forum Discussion

andybamber's avatar
andybamber
Helper III
5 years ago
Solved

Time Intelligence

Hi Group,

 

A question on the Time Intelligence functions... I have a matrix visual, and one of the measures is a month on month change... That I can do, and it works, however the requirement is that the same sort of calculation also works at other levels of the date hierarchy, so for instance if the user wants to view just at the year level, the result they see is the year on year change... at the moment because I have a measure which uses PREVIOUSMONTH, when the user views at the Year level the measure is still trying to show a month on month change... 

 

The question is, how can make this visual work so that the change shows, and is based on the level the user is currently viewing at?

 

Cheers,

Andy

 

 

  • lkalawski's avatar
    lkalawski
    5 years ago

    andybamber 

    You need to create additional measures fo different granilarity and then create measure with SWITCH function:

    GAP_Chg =
    SWITCH (
        TRUE (),
        ISINSCOPE ( DATE_DIMENSION[Month] ), [GAP_Mom_Chg],
        ISINSCOPE ( DATE_DIMENSION[Quarter] ), [GAP_QoQ_Chg],
        ISINSCOPE ( DATE_DIMENSION[Year] ), [GAP_YoY_Chg]
    )

    By using this measure in the matrix/chart you can easily change MoM to YoY etc.



    _______________
    If I helped, please accept the solution and give kudos! 😀

5 Replies