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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Alisea_MI
Resolver II
Resolver II

Change Date formatting in a calculated measure having Text format

I have an issue with displaying the YYYYMMDD format in a calculated measure. All my computer and Power BI settings are regionally correct. All my data columns have the correct format YYYYMMDD. My customer wants me to visualize the dates chosen in the filters and I use a calculated measure with MIN and Max dates to get the "First Selected Date" - "Last Selected Date" shown in my "Chosen Filters" visual. My problem is that dates shown in the "Chosen filters" visual are displayed in the MMDDYYYY format. Please see the attached picture.

 

Grateful for any ideas of how to change the format in the calculated measure to the YYYYMMDD?

Alisea

power bi community.jpg

 
 
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Alisea_MI , Not very clear on this .

But you can have text format like

 

in column = Format([Date],"YYYYMMDD")

in measure = format(Max(Table[date]),"YYYYMMDD")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Alisea_MI , Not very clear on this .

But you can have text format like

 

in column = Format([Date],"YYYYMMDD")

in measure = format(Max(Table[date]),"YYYYMMDD")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you, I've just had the exact same problem and this has sorted it for me.

Thank you so much, @amitchandakamitchandak! Works super well!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.