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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
EugenioProlog
Helper I
Helper I

change date format based on metric

I have a table called dim__calendar with a date column called dt_date.
This column is used as X-axis on a line graph.

I want to change its format using a newly created metric on a Data Segmentation. 

For example if i choose:

Option -> Display Format
Day -> dd-mm-yyyy
Month -> mm-yyyy

Quarter -> Qq-yyyy

Year -> yyyy

Is there a way to do that?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @EugenioProlog ,

 

As Parry2k said, you can achieve this with field parameters.

vkongfanfmsft_0-1738918566937.png

vkongfanfmsft_1-1738918583480.png

vkongfanfmsft_2-1738918593889.png

 

For more details, you can refer to below document:

Use report readers to change visuals (preview) - Power BI | Microsoft Learn

 

Best Regards,
Adamk Kong

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @EugenioProlog ,

 

As Parry2k said, you can achieve this with field parameters.

vkongfanfmsft_0-1738918566937.png

vkongfanfmsft_1-1738918583480.png

vkongfanfmsft_2-1738918593889.png

 

For more details, you can refer to below document:

Use report readers to change visuals (preview) - Power BI | Microsoft Learn

 

Best Regards,
Adamk Kong

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

parry2k
Super User
Super User

@EugenioProlog I would recommend to create field parameter and use that on x-axis and based on the selection the x-axis column will change , and also the format related to that field.

 

Learn TOP 3 use cases of new FIELD parameter feature introduced in May 2022 Power BI Update

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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