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
ledoyle1121
Frequent Visitor

Dates Duplicating in Slicer Visual

Hi all,

 

I'm using the Slicer visual to display dates in a drop down menu, and I've changed the format to be MMMM yyyy (ex: March 2018).  I've done this before in other dashboards without an issue, but for some reason when I've tried to do it in one file the dates are duplicating.

 

For example, when I display them as a drop down menu, instead of seeing:

January 2018

February 2018

March 2018

 

I'm seeing:

January 2018

January 2018

January 2018

January 2018

January 2018

February 2018

February 2018

February 2018

February 2018

February 2018

...and so on.

 

*note: I've only listed the months 5 times in the above example, but in reality the months are showing as many times as there are days in each month (30, 31, or 28/29 depending on the month)

 

Has anyone had this happen before? I'm unsure why it would be problematic in this file, but not in others. 

 

Thanks!

 

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

Hi ledoyle1121,

 

I have reproduced your issue, if there’re different days in the same month, there will be duplicate dates in a slicer like below as you have posted:

1.PNG2.PNG

As a workaround, you can use DAX formula below to create a calculate column:

Column = FORMAT(Table1[Date], "MMMM-YYYY")

Then format the column to “MMMM yyyy” and set a slicer to the column.

3.PNG

PBIX file here: https://www.dropbox.com/s/tlsafq35p3e5rbx/For%20ledoyle1121.pbix?dl=0

 

Regards,

Jimmy Tao

View solution in original post

1 REPLY 1
v-yuta-msft
Community Support
Community Support

Hi ledoyle1121,

 

I have reproduced your issue, if there’re different days in the same month, there will be duplicate dates in a slicer like below as you have posted:

1.PNG2.PNG

As a workaround, you can use DAX formula below to create a calculate column:

Column = FORMAT(Table1[Date], "MMMM-YYYY")

Then format the column to “MMMM yyyy” and set a slicer to the column.

3.PNG

PBIX file here: https://www.dropbox.com/s/tlsafq35p3e5rbx/For%20ledoyle1121.pbix?dl=0

 

Regards,

Jimmy Tao

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.