Forum Discussion
Matrix measures on rows & calculated columns
- 8 years ago
Hi djk1000,
In the matrix, when we add a measure to the matrix Values section, the measure values will display in each column group. It means the within 2016 group there will have a column, as well as the 2017 group. What we can do is making the columns under 2016 and 2017 group display blank, rather than remove them.
In your scenario, you can create a measure like below:
DiffPercentage = var Y2016= CALCULATE(SUM('Table1'[Value]),FILTER('Table1','Table1'[Year]=2016))
var Y2017= CALCULATE(SUM('Table1'[Value]),FILTER('Table1','Table1'[Year]=2017))
return
IF(SUM(Table1[Value])=SUMX(ALL(Table1),[Value])||SUM(Table1[Value])=SUMX(FILTER(ALL(Table1),[Category ]=MAX(Table1[Category ])),[Value]),DIVIDE(Y2017-Y2016,Y2016),BLANK())Best Regards,
Qiuyun Yu
I want to filrer on count of mergerd column where it is greater than 1 - this is count of various underlying items. If i am applying filter on field it is taking adhoc- here i want to filter on subtotal