Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi Experts,
I am working on matrix table it should display columns based on selection in slicer.
For Eg:-
Graphical Representation: -
In the above two diagrams, assume left visual is matrix table and right visual is slicer.
Based on the selection in the slicer in the first diagram it displays the columns in the matrix table.
And based on the selection in the slicer in the second diagram it displays the columns in the matrix table.
So whenever I select and deselect column in the slicer, dynamically columns should display in the matrix table.
I hope that my requirment is understood. If anyone have solution please reply me back.
Thanks in Advance
Amith D
Solved! Go to Solution.
Hi, @Anonymous
I think it is normal. If you put a value in 'Value', it will show a list of value for each 'Attribute'. As a workaround, you may create a measure like below. The pbix file is attached in the end.
Result =
IF(
SELECTEDVALUE(New[Attribute]) in {"Category","Drawer","Header A","Header B"},
MAX(New[Value.1]),
SELECTEDVALUE(New[Value])
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Table:
In order not to affect the raw data, you may duplicate the 'Table', make 'Category', 'Drawer', 'Header A', 'Header B' selected, click 'unpivot columns' in 'Transform' ribbon and then 'Close and Apply'.
Finally you need to create a matrix visual with columns from 'New' table and use 'Attribute' column from 'New' table to filter the result.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Allan,
Thanks for the reply. Funtionality wise your solution is good.
Please find the below screenshot
When I drag the Value inside values space in matrix it shows for every column.
Value field always should display at last as total. Only one column.
Hi, @Anonymous
I think it is normal. If you put a value in 'Value', it will show a list of value for each 'Attribute'. As a workaround, you may create a measure like below. The pbix file is attached in the end.
Result =
IF(
SELECTEDVALUE(New[Attribute]) in {"Category","Drawer","Header A","Header B"},
MAX(New[Value.1]),
SELECTEDVALUE(New[Value])
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
84 | |
76 | |
74 | |
48 | |
39 |
User | Count |
---|---|
114 | |
56 | |
51 | |
42 | |
42 |