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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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")

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")

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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