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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
AnneSo_59
New Member

Retrouver date d'une valeur maximale

Bonjour,

 

je recherche une formule Dax pour me retourner dans une cellule la date de la valeur max enregistrée.

exemple :

 

AnneSo_59_0-1739487425466.png

Avec excel, j'utilisais une formule du style INDEX(BK374:BK404;EQUIV(MAX(BL374:BL404);BL374:BL404;0)).

 

Merci d'avance pour votre aide

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @AnneSo_59 

Please try the following DAX to create a Measure:

MAX_DATE = 
CALCULATE(
    MAX('Table'[Dates]),
    'Table'[Values] = MAX('Table'[Values])
)

  

vfenlingmsft_0-1739509556163.png

 

I have attached the pbix file for this example below, hope it helps you.

 

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi, @AnneSo_59 

Please try the following DAX to create a Measure:

MAX_DATE = 
CALCULATE(
    MAX('Table'[Dates]),
    'Table'[Values] = MAX('Table'[Values])
)

  

vfenlingmsft_0-1739509556163.png

 

I have attached the pbix file for this example below, hope it helps you.

 

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

Do a TOPN(1) based on the value then grab the Date from that row.

 

What should happen when multiple dates share the same maximum value?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.