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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
WouterAalders
New Member

Change date format on slicer

Hello everyone,
At the moment i have slicers like this, but i would like to change the format so that it shows YY instead of YYYY.

so that it would show 15 16 17 18 19 20 21.

Is this possible and how to do so?

WouterAalders_0-1651584735558.png

WouterAalders_0-1651586416724.png

This is the current setting.

When i change it to Date 

WouterAalders_1-1651586547621.png

it shows like this:

WouterAalders_2-1651586593514.png

 

 

 

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

Hi @WouterAalders ,

 

Based on my test, we can not format a four-digit integer to a two-digit number. So you have to add a new column in your code, like this.

 

Calendar = 
ADDCOLUMNS(
    CALENDAR(DATE(2019,1,1),TODAY()),
    "Year", YEAR([Date]),
    "YearFromat", FORMAT([Date], "yy")
)

vkkfmsft_0-1651817684183.png


Best Regards,
Winniz

View solution in original post

2 REPLIES 2
v-kkf-msft
Community Support
Community Support

Hi @WouterAalders ,

 

Based on my test, we can not format a four-digit integer to a two-digit number. So you have to add a new column in your code, like this.

 

Calendar = 
ADDCOLUMNS(
    CALENDAR(DATE(2019,1,1),TODAY()),
    "Year", YEAR([Date]),
    "YearFromat", FORMAT([Date], "yy")
)

vkkfmsft_0-1651817684183.png


Best Regards,
Winniz

SpartaBI
Community Champion
Community Champion

You can't format 2022 to 22. It's a number, not a date. 
You can:
1. Create another column that will have those numbers you want and use it for the slicer.
2. What you probably saw is that you can format a date column in this custom way. So let's say for each year I would have a date with the first day of the year on the entire rows of that year I could format it as "yy".

In case it answered your question please mark this as a solution for community visibility. Appreciate Your Kudos 🙂

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.