Forum Discussion
Hide line on graph based on filter selection
I have a graph that changes when a filter is selected. There is one line I want to hide for a specific filter selection but keep for the other filter selections. Can this be done?
5 Replies
- amitchandakSuper User
poweruser55 , If that is measure
the you can create like
if(selectedvalues(Table[Column]) ="XYZ") , [measure], blank())
Please share additional information, if this does not help
- poweruser55Helper IV
So I have to create a measure? The line is a value in the graph and it needs to be blank for something called "POC" table1 and a column called b.
- v-luwang-msftCommunity Support
Hi poweruser55 ,
In my opinion ,you need to create a measure:
measure=if(selectedvalue'Poc'[column]='b',blank(),[before values])And if question still alive,could you pls share a sample data(Remember to remove confidential data) ,and expect output?
Best Regards
Lucien
- poweruser55Helper IV
There are 4 lines in the above graph. When POC is selected in the filter I want the solid purple line to dissapear lets call it Line 1 and say it comes from Table 1. I still haven't figure this out, I only want the solid purple line to dissapear when POC is selected. v-luwang-msft
- hangelucciRegular Visitor
Hi,
amitchandak's answer worked for me, but what if poweruser55 wants to select two or more values? The selectedvalue would not work, right? Is there a way aorund this?