March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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. 🙂
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
25 | |
18 | |
15 | |
9 | |
8 |
User | Count |
---|---|
37 | |
32 | |
18 | |
16 | |
13 |