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
Hi everyone,
I browsed through several topics but couldnt find an answer...so I am writing now 🙂
I have a Matrix with several Max Values. The Matrix has the granularity of "City". However, I want to SUM the MAX values for that given Country.
Think of the values in the columns as people with blond, brunette and black hair. Hence in Germany we have 3 hair types in total and not 4 (which would be the sum). In Munich we have 1 hair type.
Solved! Go to Solution.
I have found a solution on my own. It was after all more simple than I have initially thought.
Value =
MAXX( TABLE ,TABLE[Max value A] ) +
MAXX( TABLE ,TABLE[Max value B] ) +
MAXX( TABLE ,TABLE[Max value C] )
I have found a solution on my own. It was after all more simple than I have initially thought.
Value =
MAXX( TABLE ,TABLE[Max value A] ) +
MAXX( TABLE ,TABLE[Max value B] ) +
MAXX( TABLE ,TABLE[Max value C] )
Hi @raymond ,
You could try the following measure:
Measure = CALCULATE(MAX('Table'[Max value A])+MAX('Table'[Max value B])+MAX('Table'[Max value C]),FILTER(ALL('Table'),'Table'[Country]=MAX('Table'[Country])))
base data:
And final output:
Wish it is helpful for you!
Best Regards
Lucien
Hi @raymond ,
What is your logic that Germany's sum is 3 and not 4?
Proud to be a Super User!
Thank you.
I want to find out how many values generally occur for each country. In Germany only 3 attributes or traits occur.
Think of it as people with blond, brunette and black hair. Hence in Germany we have 3 hair types and not 4. In Munich we have 1 hair type.
Hey @raymond ,
the following should work:
New Column = CALCULATE( MAX( myTable[Max Value A] ), ALLEXCEPT( myTable, myTable[City] ) ) + CALCULATE( MAX ( myTable[Max Value B] ), ALLEXCEPT( myTable, myTable[City] ) ) + CALCULATE( MAX ( myTable[Max Value C] ), ALLEXCEPT( myTable, myTable[City] ) )
@raymond , If Max Value A , MAx Value B are column values not measure
then try
sumx(summarize(Table, Table[country], Table[city], "_1", CALCUALTE(Max(Table[Value]))), [_1])
Thank you @amitchandak and @Nathaniel_C but unfortunately this wasnt working the way it was intended.
Think of the values in the columns as people with blond, brunette and black hair. Hence in Germany we have 3 hair types and not 4. In Munich we have 1 hair type.
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 |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |