cancel
Showing results for
Did you mean:
Frequent Visitor

## 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.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team

## Re: YOY, QOQ and MOm Calculation

Hi @vishanshul ,

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.

Community Support Team

## Re: YOY, QOQ and MOm Calculation

Hi @vishanshul ,

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.

Announcements