Forum Discussion
Output related data from Table
Hi,
Please Help.
I created a table as below and made relationships.
MAKE | MATERIAL |
PAPI | LONG |
LAND | LONG |
CART | LONG |
PAPI | SHORT |
LAND | SHORT |
CART | SHORT |
PAPI | MEDIUM |
LAND | MEDIUM |
CART | MEDIUM |
Below is the DAX that controls and outputs each of the material.
Total = IF
(ISFILTERED(TOPO[REGION]),
SWITCH(FIRSTNONBLANK(TOPO[StationID3], TOPO[REGION]),
"LONG", [LONG],
"SHORT", [SHORT],
"MEDIUM",[MEDIUM],
BLANK()))
This is what I get when I select a Material.
Below is what I am expecting to output
I want such that if I select LONG, it will output its related data . ie : PAPI, LAND and CART on same graph.
Thanks for your help
11 Replies
- AnonymousNot applicable
Hi Anonymous,
You can create line chart with these date and use MATERIAL as legend. Slicer with 'MATERIAL' column as source.
After these steps, you can use slicer to control display line amount.Regards,
Xiaoxin Sheng
- AnonymousNot applicable
Many thanks for your help.
Moreover, I have tried your workaround and suggestion but still do not get the desired three lines to appear on selection of the legend.
- AnonymousNot applicable
Hi Anonymous,
I'm not so clarify for your scenario, can you please share us sample pbix file for test?
Regards,
Xiaoxin Sheng
- AnonymousNot applicable
Hi,
I've tried getting help. but still stucked..
I created a table as below and made relationships.
MAKE
MATERIAL
PAPI
LONG
LAND
LONG
CART
LONG
PAPI
SHORT
LAND
SHORT
CART
SHORT
PAPI
MEDIUM
LAND
MEDIUM
CART
MEDIUM
Below is the DAX that controls and outputs each of the material.
Total = IF
(ISFILTERED(TOPO[REGION]),
SWITCH(FIRSTNONBLANK(TOPO[StationID3], TOPO[REGION]),
"LONG", [LONG],
"SHORT", [SHORT],
"MEDIUM",[MEDIUM],
BLANK()))
This is what I get when I select a Material.
Below is what I am expecting to output
I want such that if I select LONG, it will output its related data . ie : PAPI, LAND and CART on same graph.
This DAX works for a similar on Page 1 and Page 2 .
The problem is page 3
Please help