Forum Discussion
Anonymous
4 years agoNot applicable
My Matrix Row Values are Incorrect
So it seems this topic has been addressed on several occasions, but I will admit that some of the solutions are hard to follow. I created this matrix table, and while the bottom total is corre...
- 4 years ago
Here is the solution I came up with:
Using as a filter value:
Max Obligated Flag = VAR MaxObligatedValue = CALCULATE(MAX(Table1[Obligated]), ALLEXCEPT(Table1, Table1[Record Number], Table1[Type of Mod])) RETURN IF(Table1[Obligated] = MaxObligatedValue, TRUE, FALSE)Or, using as a grouping attribute:
Max Value by Record Number = VAR MaxObligated = CALCULATE(MAX(Table1[Obligated]), ALLEXCEPT(Table1, Table1[Record Number], Table1[Type of Mod])) RETURN CALCULATE(MAX(Table1[Value]), ALLEXCEPT(Table1, Table1[Record Number], Table1[Type of Mod]), Table1[Obligated] = MaxObligated)
tamerj1
4 years agoCommunity Champion
Hi Anonymous
What is the measure?
Anonymous
4 years agoNot applicable
The measure is the distinct count of transactions that are new/recompetes
- tamerj14 years agoCommunity Champion
Anonymous
This is why they're not the same. You are expected to have more in the raws than in the grand total. You have values repeated in different rows because DISTINCT will be applied on each cell seperately but this does not happen at the gand total where the distinct count will be curried over all values which is similar to taking the distinct count of all other cells therefore you will allways have less in the grand total