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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors