Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Good day beautiful people,
Below you can see my two objects: matrix table and graph.
What I struggle to achieve:
If the user does not select any data from the matrix table, let the graph look like in the picture, showing total for each Customer Group for a period of time.
However, if the user selects Customer Group 1 (or 2, 3, 4) I would like the graph to start showing Data Model data matching the given Customer Group.
So in this example, instead of seeing total for Customer 1, I would like to see 4 lines representing Data Model 1 - 4.
How can I achieve something like this?
Solved! Go to Solution.
Hi @Copycat ,
Here are the steps you can follow:
1. Create measure.
Group =
SUMX(FILTER(ALL('Table'),'Table'[Customer Group]=MAX('Table'[Customer Group])),[Score])Group2 =
SUMX(FILTER(ALL('Table'),'Table'[Customer Group]=MAX('Table'[Customer Group])&&'Table'[Model]=MAX('Table'[Model])),[Score])Flag =
IF(
HASONEVALUE('Table'[Customer Group]),[Group2],[Group])
2. Fields are placed as follows.
3. Result:
When not selected
After selection.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Copycat ,
Here are the steps you can follow:
1. Create measure.
Group =
SUMX(FILTER(ALL('Table'),'Table'[Customer Group]=MAX('Table'[Customer Group])),[Score])Group2 =
SUMX(FILTER(ALL('Table'),'Table'[Customer Group]=MAX('Table'[Customer Group])&&'Table'[Model]=MAX('Table'[Model])),[Score])Flag =
IF(
HASONEVALUE('Table'[Customer Group]),[Group2],[Group])
2. Fields are placed as follows.
3. Result:
When not selected
After selection.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 51 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 64 | |
| 39 | |
| 33 | |
| 23 |