The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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. 🙂
User | Count |
---|---|
28 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |