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

Decimal places showing in Matrix

I created a slicer from my Year column with a whole number data type and the slicer is allowing decimals to be shown for years...which is absurd. My ultimate goal is to be able to have a slicer where i can scroll through months over about ten years. 

 

Here's a picture for reference of what I am currently getting:

 

 

timeline slicer error.PNG

1 ACCEPTED SOLUTION
tringuyenminh92
Memorable Member
Memorable Member

Hi @hhammeren,

 

Please try change Month's data type to Whole Number and Format to Whole Number. In case you want to show all of months of years, you could add new column with format: YearMonth (Year*100 + Month) as Whole Number

View solution in original post

3 REPLIES 3
tringuyenminh92
Memorable Member
Memorable Member

Hi @hhammeren,

 

Please try change Month's data type to Whole Number and Format to Whole Number. In case you want to show all of months of years, you could add new column with format: YearMonth (Year*100 + Month) as Whole Number

Thank you! I got it to look like this:

 

YearMonth Slicer.PNG

I there a way for it to list the month name though? 

Hi @hhammeren,

 

So far, I think no there is slicer option for numeric, maybe you could add this idea to the ideas forum to allow users setup label/value for slicer control

 

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.