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.
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])
)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
115 | |
100 | |
88 | |
68 | |
61 |
User | Count |
---|---|
150 | |
120 | |
100 | |
87 | |
68 |