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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ibrahimsharaf
Employee
Employee

Change formula of a measure

Hello guys, I have a column which contained dates with times, I transformed it to only contain dates, then I created a measure to get the min date using this formula "Measure = MIN(Dates)", but it keeps getting the time with the date, I only want the date, can you help?

Screenshot (16).png

 

 

2 ACCEPTED SOLUTIONS
Vvelarde
Community Champion
Community Champion

hi @ibrahimsharaf

 

In modeling Menu you can change the date format of your measure.




Lima - Peru

View solution in original post

v-ljerr-msft
Employee
Employee

@ibrahimsharaf



but it keeps getting the time with the date, I only want the date, can you help? 

In addition to @Vvelarde's solution, using FORMAT function within the Measure can also meet your requirement. Please refer to the formula below:

Measure = FORMAT ( MIN ( Dates ), "Short Date" )

 Regards

View solution in original post

2 REPLIES 2
v-ljerr-msft
Employee
Employee

@ibrahimsharaf



but it keeps getting the time with the date, I only want the date, can you help? 

In addition to @Vvelarde's solution, using FORMAT function within the Measure can also meet your requirement. Please refer to the formula below:

Measure = FORMAT ( MIN ( Dates ), "Short Date" )

 Regards

Vvelarde
Community Champion
Community Champion

hi @ibrahimsharaf

 

In modeling Menu you can change the date format of your measure.




Lima - Peru

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.