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
Bit inexperienced with PowerBI, I am trying to calculate the Max, 2ndMax and 3rdMax amount based on the following columns. I want the Max of Sum of Amount for each Mapping, then I intend to print out the text against which I have calculated the Max and 2ndMax values as well in separate Card Visuals.
The following query gave me the Max Amount for a Mapping i.e. 80 (Alpha).
Var maxAmount= MAXX(CALCULATETABLE(VALUES(table[Mapping]),ALLEXCEPT( table,table[Mapping])),CALCULATE(SUM(table[Amount])))
I want to get 75 as the second Max value and 70 as the third Max, as separate Measures.
After this I want to get the corresponding Mapping values i.e. Alpha, Beta, Gamma in separate card visuals.
HI @Zain26
I get why your Max for Alpha is 80 (10 + 30 + 40), but I can't see where you work out that 75 is the 2nd Max
Hi @Phil_Seamark,
Apologies for the poor formatting of the demo columns. 2nd Max would be 75 because Gamma (50+25), and accordingly 3rd Max would be 70 as Beta has values (50+20)
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 | |
99 | |
88 | |
70 | |
62 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |