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.
Hi, Here the sample data, I created a matrix that drag the column1, dim1, dim2 to rows, and measure to values,
I want the row subtotal not display total of each category, rather show the column1 level return the max value of value1, and each element of dim1 display value2, and if expand to dim2, show the value2, is there a soution to create such a measure?
columu1 | dim1 | dim2 | value1 | value2 |
A | A1 | aaa | 7 | 6 |
A | A1 | bbb | 7 | 3 |
A | A2 | ccc | 5 | 4 |
A | A3 | ddd | 8 | 2 |
A | A3 | eee | 8 | 9 |
here is the expected result of matrix visual
measure | |||
A | 8 | ||
A1 | 7 | ||
aaa | 6 | ||
bbb | 3 | ||
A2 | 5 | ||
ccc | 4 | ||
A3 | 8 | ||
ddd | 2 | ||
eee | 9 |
Solved! Go to Solution.
@Anonymous , You can use isinscope in a new measure
Switch( true(),
isinscope(Table[dim2]), Sum(Table[Value2]) ,
isinscope(Table[dim1]), Max(Table[Value1]) ,
isinscope(Table[Col1]), Max(Table[Value1]) )
@Anonymous , You can use isinscope in a new measure
Switch( true(),
isinscope(Table[dim2]), Sum(Table[Value2]) ,
isinscope(Table[dim1]), Max(Table[Value1]) ,
isinscope(Table[Col1]), Max(Table[Value1]) )
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 |
---|---|
100 | |
99 | |
80 | |
77 | |
66 |
User | Count |
---|---|
134 | |
106 | |
104 | |
85 | |
73 |