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 All,
I am looking for a dax to create a calculate table having max value for every "distinct key". In the very first picture after applying filters for single distinct key i am getting 2 rows just because of IndirectcontractpriceToday having 2 values.
Solved! Go to Solution.
@sarjensystems1
You can create a table as follows:
Table 1 =
FILTER(
ADDCOLUMNS(
'Rebate Copy',
"Maxvalue",
VAR __MAX = CALCULATE( MAX('Rebate Copy'[indirectcontractpricetoday]) , ALLEXCEPT( 'Rebate Copy' , 'Rebate Copy'[Reate Key]] ))
RETURN
IF( 'Rebate Copy'[indirectcontractpricetoday] = __MAX , __MAX)
),
[Maxvalue] <>BLANK()
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@sarjensystems1
You can create a table as follows:
Table 1 =
FILTER(
ADDCOLUMNS(
'Rebate Copy',
"Maxvalue",
VAR __MAX = CALCULATE( MAX('Rebate Copy'[indirectcontractpricetoday]) , ALLEXCEPT( 'Rebate Copy' , 'Rebate Copy'[Reate Key]] ))
RETURN
IF( 'Rebate Copy'[indirectcontractpricetoday] = __MAX , __MAX)
),
[Maxvalue] <>BLANK()
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
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 |
---|---|
110 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |