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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.