Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

YOY, QOQ and MOm Calculation

I am calculating YTD, QTD and MTD data and filter data using chiclet slicer.

Same way i want to show YOY, QOQ and MOM trend using filter.

 

Data models has date table associated with it which has all the required set of Columns fiscal year, Month, Quarter etc.

In Single visual we are able to show all the trends (YOY, MOM, QOQ).But it should switch the trends using slicer same as YTD, MTD and QTD.

Thanks.

  • Hi Anonymous ,

    You could try to create a new table as a slicer. The following is my sample that you can try and download.

    Measure = 
    VAR a = SELECTEDVALUE(Table1[Column1])
    return 
    SWITCH(TRUE(),a = "YOY", [Comlpaints YoY%],a = "MOM",[Comlpaints MoM%],a = "QOQ",[Comlpaints QoQ%],[Comlpaints YoY%])

    Best Regards,

    Xue Ding

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

1 Reply

  • v-xuding-msft's avatar
    v-xuding-msft
    Icon for Community Support rankCommunity Support

    Hi Anonymous ,

    You could try to create a new table as a slicer. The following is my sample that you can try and download.

    Measure = 
    VAR a = SELECTEDVALUE(Table1[Column1])
    return 
    SWITCH(TRUE(),a = "YOY", [Comlpaints YoY%],a = "MOM",[Comlpaints MoM%],a = "QOQ",[Comlpaints QoQ%],[Comlpaints YoY%])

    Best Regards,

    Xue Ding

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.