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

MAX help

Hello Community. 

 

I have a table like this

 

SharesDate
101/02/2003
202/02/2003
403/02/2003
504/02/2003
305/02/2003
4706/02/2003
107/02/2003
5408/02/2003
75609/02/2003
110/02/2003
211/02/2003

 

I need to find the date when the max shares is located using DAX. Help please.

 

Thank you.

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@Anonymous

 

Hi, you can obtain in a card using this measure:

 

Measure =
VAR MaxShare =
    MAX ( Table1[Shares] )
RETURN
    CALCULATE ( MAX ( Table1[Date] ); Table1[Shares] = MaxShare )

Regards

 

Victor




Lima - Peru

View solution in original post

2 REPLIES 2
Vvelarde
Community Champion
Community Champion

@Anonymous

 

Hi, you can obtain in a card using this measure:

 

Measure =
VAR MaxShare =
    MAX ( Table1[Shares] )
RETURN
    CALCULATE ( MAX ( Table1[Date] ); Table1[Shares] = MaxShare )

Regards

 

Victor




Lima - Peru
waltheed
Impactful Individual
Impactful Individual

Is this what you mean?

 

Capture.PNG

This is the dax expression:

 

Max Shares Date = 
	calculate(
MAX(Table1[Date]),
FILTER(Table1,Table1[Shares] = MAX(Table1[Shares])),
ALL(Table1[Date])
)

 

 

Cheers, Edgar Walther
ITsmart BI and Analytics consultant

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.