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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Spigaw
Helper II
Helper II

Date formatting in a graph created with the data model

Hello,

I hope this will not be off topic, but I can't find any answer about this oh-so-small problem that is driving me mad.

 

I have data which I prepared with Query, which I use with the data model in order to create a pivot table, then a (very simple) graph. But I can't find any way to change the date format of the data table under the graph; I want it to show mm/yy instead of dd/mm/yyyy. I tried a lot of solutions, but nothing seems to work.

Spigaw_0-1638430761989.png

 

Any help would be really appreciated... Thanks in advance!

1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

you can add a calculated column of YearMonth with the formula =format([date],"mm/yy")

then put it on the vertical axis

wdx223_Daniel_0-1638434620685.png

 

View solution in original post

2 REPLIES 2
wdx223_Daniel
Super User
Super User

you can add a calculated column of YearMonth with the formula =format([date],"mm/yy")

then put it on the vertical axis

wdx223_Daniel_0-1638434620685.png

 

Yup, worked perfectly! I didn't think it would be necessary to add a column in my data model, but it does the trick without slowing down the database.

Thank you!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors
Top Kudoed Authors