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.
This might be easy.
Let's say I've the following Pivot Table.
What would be the dax expression to create a measure named "Max" so that i would get the following.
i.e If Value in "Sum of Sales Amount" column equals Maximum Value of "Sum of Sales Amount" column, then the value itself, otherwise a blank.
Solved! Go to Solution.
You may also try
Amount Max =
VAR MaxAmount =
MAXX ( ALLSELECTED ( TableName[Year] ), [Sum of Sales Amount] )
RETURN
IF ( [Sum of Sales Amount] = MaxAmount, MaxAmount )
Same table, Sir.
Please try
Amount Max =
CALCULATE (
MAXX ( ALLSELECTED ( TableName[Year] ), [Sum of Sales Amount] ),
KEEPFILTERS ( TableName[Year] )
)
You may also try
Amount Max =
VAR MaxAmount =
MAXX ( ALLSELECTED ( TableName[Year] ), [Sum of Sales Amount] )
RETURN
IF ( [Sum of Sales Amount] = MaxAmount, MaxAmount )
It worked. Thankyou, Sir. 🙂
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 |
---|---|
47 | |
26 | |
19 | |
14 | |
10 |
User | Count |
---|---|
58 | |
50 | |
44 | |
19 | |
19 |