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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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