Forum Discussion

poweruser55's avatar
poweruser55
Helper IV
4 years ago

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

  • 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

    • poweruser55's avatar
      poweruser55
      Helper 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-msft's avatar
    v-luwang-msft
    Community 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

    • poweruser55's avatar
      poweruser55
      Helper 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 

  • hangelucci's avatar
    hangelucci
    Regular 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?