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
Anonymous
Not applicable

How to calculate the oldest date value in a table

I have a Table to visualize some data and I want to create a new measure to calculate the oldest date based on the table; the table shows the values based on a slicer

soporte2.png

 

How to calculate de oldest date of the table based on the slicer value?

 

 

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@Anonymous

 

The first work in a card, but if you want to include in the table use this:

 

OldestDate =
CALCULATE ( MIN ( Table2[Fecha] ); ALLSELECTED ( Table2 ) )

Regards

 

Victor




Lima - Peru

View solution in original post

4 REPLIES 4
Vvelarde
Community Champion
Community Champion

@Anonymous

 

The first work in a card, but if you want to include in the table use this:

 

OldestDate =
CALCULATE ( MIN ( Table2[Fecha] ); ALLSELECTED ( Table2 ) )

Regards

 

Victor




Lima - Peru
Anonymous
Not applicable

It works well. Thank you very much.

Vvelarde
Community Champion
Community Champion

@Anonymous

 

Hi, try with

 

OldestDate=Min(Table[Fecha])

 

Regards

 

Victor




Lima - Peru
Anonymous
Not applicable

I tried your solution but It doesn't work, It repeats the same value than the date("Fecha")

soporte3.png

 

 

 

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.