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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
untruthtotruth
Frequent Visitor

Change list of values in Slicer Based on Selection in Another Slicer

I have two Slicers

1 Firm

2 Month End

 

I have multiple Firms and each Firm has data for Month ends. I have a requirement where if more than one Firms are selected then 

MonthEnd Slicer should show only Quarter End Months else Show MonthEnd.

 

Please let me know if anybody has solution to this

 

Thanks

2 REPLIES 2
v-yilong-msft
Community Support
Community Support

Hi @untruthtotruth ,

I create a table as you mentioned.

vyilongmsft_0-1720061018808.png

Then I create two calculated columns.

Column = 
IF ( MONTH ( 'Table'[Date] ) IN { 3, 6, 9, 12 }, "Quarter End", "Month End" )

vyilongmsft_1-1720061347295.png

Column 2 = COUNTROWS(VALUES('Table'[FirmName]))

vyilongmsft_2-1720061383657.png

Fianlly I create a calculated column and get what you want.

Column 3 = 
IF (
    'Table'[Column 2] > 1,
    IF (
        'Table'[Column] = "Quarter End",
        FORMAT ( 'Table'[Date], "MMM YYYY" ),
        "Month End"
    ),
    FORMAT ( 'Table'[Date], "MMM YYYY" )
)

vyilongmsft_3-1720061664622.png

 

 

 

Best Regards

Yilong Zhou

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

Hi @v-yilong-msft ,

 Thanks for replying. I looked at the solution that you have provided. In my secenario Each FirmName has Multiple Monthends and I have 2 slicers, FirmName slicer & Slicer2 Monthend.

  IF in ColumnA(Firm Name) Slicer, Single Firm is selected then Slicer2 should show Monthends related to that firm But IF multiple Firms are selected in Slicer1 then Slicer2 "Report Date" should Only show QuarterEnd Values. I looked at the PBIX file if you select Multiple Firm, Date filter if not showing only Quarterend Values

 

Screenshot 2024-07-08 at 11.50.06 AM.png

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.