Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hello Community.
I have a table like this
| Shares | Date |
| 1 | 01/02/2003 |
| 2 | 02/02/2003 |
| 4 | 03/02/2003 |
| 5 | 04/02/2003 |
| 3 | 05/02/2003 |
| 47 | 06/02/2003 |
| 1 | 07/02/2003 |
| 54 | 08/02/2003 |
| 756 | 09/02/2003 |
| 1 | 10/02/2003 |
| 2 | 11/02/2003 |
I need to find the date when the max shares is located using DAX. Help please.
Thank you.
Solved! Go to Solution.
@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
@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
Is this what you mean?
This is the dax expression:
Max Shares Date = calculate(
MAX(Table1[Date]),
FILTER(Table1,Table1[Shares] = MAX(Table1[Shares])),
ALL(Table1[Date])
)
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 50 | |
| 42 | |
| 23 | |
| 20 |
| User | Count |
|---|---|
| 139 | |
| 116 | |
| 54 | |
| 37 | |
| 31 |