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
Anonymous
Not applicable

disable the selection of the year level of the date filter which contains year and month level

Hi guys,

 

I have a date filter with an hierarchy ( year and month ) as following 

trungnguyen0000_1-1631608354170.png        trungnguyen0000_0-1631608292155.png

 

Do you know if I can disable the selection on the year hierarchy and keep enable the selection on the month hierarchy ? In fact, the user should  select only a month of any year, if they select a year, every month of this one will be selected and will occur an error to my measures.

 

Thank you in advance !

 

 

1 ACCEPTED SOLUTION
v-angzheng-msft
Community Support
Community Support

Hi, @Anonymous 

 

There are many ways to solve this problem.
1. Remind the user to expand the year when selecting the slicer, and then select the month of the year.
2. Combine the year and month into one keyword, and then use unique year and month keywords to create a single-choice slicer.
3. Create 2 slicers, one slicer to filter the year, one slicer to filter the month, and set both slicers to single selection.

vangzhengmsft_0-1632123496347.png

Please refer to the attachment below for details. Hope this helps.

 

 

Best Regards,
Community Support Team _ Zeon Zheng


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

 

 

View solution in original post

3 REPLIES 3
v-angzheng-msft
Community Support
Community Support

Hi, @Anonymous 

 

There are many ways to solve this problem.
1. Remind the user to expand the year when selecting the slicer, and then select the month of the year.
2. Combine the year and month into one keyword, and then use unique year and month keywords to create a single-choice slicer.
3. Create 2 slicers, one slicer to filter the year, one slicer to filter the month, and set both slicers to single selection.

vangzhengmsft_0-1632123496347.png

Please refer to the attachment below for details. Hope this helps.

 

 

Best Regards,
Community Support Team _ Zeon Zheng


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

 

 

amitchandak
Super User
Super User

@Anonymous , Try single select. But that will allow one year or one month selection .

 

Otherwise create a month year column and use that in the slicer

Month Year = FORMAT([Date],"mmm-yyyy")
Month Year sort = FORMAT([Date],"yyyymm") 

Anonymous
Not applicable

Hi

the single select is already on but when the user select a year, all months of this one are selected and it occurs errors to my measures. 

 

 

 

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.

Top Solution Authors