The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi Experts,
How can we group our measures into different groups for Matrix component? Thanks!
Regards!
Tariq Ashraf
Solved! Go to Solution.
Hi @ashrat001 ,
Try this:
1. Create a table.
Matrix =
VAR Group_ =
UNION (
ROW ( "Groups", "Group1", "GOrder", 1, "Measures", "Measure1", "MOrder", 1 ),
ROW ( "Groups", "Group1", "GOrder", 1, "Measures", "Measure2", "MOrder", 2 ),
ROW ( "Groups", "Group1", "GOrder", 1, "Measures", "Measure3", "MOrder", 3 ),
ROW ( "Groups", "Group2", "GOrder", 2, "Measures", "Measure4", "MOrder", 4 ),
ROW ( "Groups", "Group2", "GOrder", 2, "Measures", "Measure5", "MOrder", 5 ),
ROW ( "Groups", "Group2", "GOrder", 2, "Measures", "Measure6", "MOrder", 6 )
)
RETURN
Group_
2. Create a measure.
Combined Measure =
SWITCH (
SELECTEDVALUE ( Matrix[Measures] ),
"Measure1", [Measure 1],
"Measure2", [Measure 2],
"Measure3", [Measure 3],
"Measure4", [Measure 4],
"Measure5", [Measure 5],
"Measure6", [Measure 6]
)
3. Create a Matrix visual.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ashrat001 ,
Try this:
1. Create a table.
Matrix =
VAR Group_ =
UNION (
ROW ( "Groups", "Group1", "GOrder", 1, "Measures", "Measure1", "MOrder", 1 ),
ROW ( "Groups", "Group1", "GOrder", 1, "Measures", "Measure2", "MOrder", 2 ),
ROW ( "Groups", "Group1", "GOrder", 1, "Measures", "Measure3", "MOrder", 3 ),
ROW ( "Groups", "Group2", "GOrder", 2, "Measures", "Measure4", "MOrder", 4 ),
ROW ( "Groups", "Group2", "GOrder", 2, "Measures", "Measure5", "MOrder", 5 ),
ROW ( "Groups", "Group2", "GOrder", 2, "Measures", "Measure6", "MOrder", 6 )
)
RETURN
Group_
2. Create a measure.
Combined Measure =
SWITCH (
SELECTEDVALUE ( Matrix[Measures] ),
"Measure1", [Measure 1],
"Measure2", [Measure 2],
"Measure3", [Measure 3],
"Measure4", [Measure 4],
"Measure5", [Measure 5],
"Measure6", [Measure 6]
)
3. Create a Matrix visual.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
21 | |
18 | |
17 | |
13 |
User | Count |
---|---|
41 | |
38 | |
24 | |
20 | |
20 |