Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Niels_T
Post Patron
Post Patron

YTD Selector Slicer shows data but MTD and QTD slicer doesn't

Hello,

 

I wanted to make a selector where I can select YTD, QTD or MTD.

 

I followed some articles and posts on this forum and this is what I eventually came up with:

 

I made a new table called "SelectMeasure" that looks as followed:

image.png

 

I made a measure within that table called "SelectorNum" which does the following:

 

SelectorNum = MIN(SelectMeasure[SelectorNumber])
 
 
I then made my MTD, QTD and YTD measures:
 
SALESMTD = TOTALMTD(SUM('Credit Memo + Invoice'[Amount]),'Calendar'[Date])
SALESQTD = TOTALQTD(SUM('Credit Memo + Invoice'[Amount]),'Calendar'[Date])
SALESYTD = TOTALYTD(SUM('Credit Memo + Invoice'[Amount]),'Calendar'[Date])
 
 
After that I made a Selector measure within my sales table:
 
Selector = SWITCH([SelectorNum]
, 1, [SALESMTD]
, 2, [SALESQTD]
, 3, [SALESYTD]
)
 
I then use the "SelectorMeasure" for my graphs and the "Selector" for slicers. 
 
Now the problem that I have is that when I select YTD, it seems to work but whenever I select QTD or MTD it just doesn't display anything.

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Niels_T , Refer my video on the same topics

https://www.youtube.com/watch?v=b9352Vxuj-M

 

Based on the value you need to change time intelligence

 

Or refer

https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/50...
https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slic...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
Niels_T
Post Patron
Post Patron

@amitchandak @v-xulin-mstf 

 

It seems like the problem is more with my measures then the selector slicer itself. Thanks for all the links and information though!

Hi @Niels_T

 

I am glad to know that your issue has been solved, please adopt your solution if you can so that it can help others.

 

Best Regards,

Link

v-xulin-mstf
Community Support
Community Support

Hi @Niels_T

 

You can refer this to meet your need:

https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slic...

You can also refer this related post.

 

Best Regards,

Link

amitchandak
Super User
Super User

@Niels_T , Refer my video on the same topics

https://www.youtube.com/watch?v=b9352Vxuj-M

 

Based on the value you need to change time intelligence

 

Or refer

https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/50...
https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slic...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.