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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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