Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Hide line from line chart visual

Hello 

My Question is how i can hide line from line chart visual if user dosent select any thing form filter? 

 

from the attached picture what i am looking for is : if user select org1 or org2 the value appear in visual but if user dosents select any org from filter the  value disappear from visual ? is that possible ?

 

Thank You! 

  • Hi,

     

    You could create this measure, replace the table and column with your own

     

    HideVisual = IF(HASONEFILTER(Table[SlicerColumn]),1,2)

    Then add it to the visual filters and set it to is 1.

     

3 Replies

  • Hi,

     

    You could create this measure, replace the table and column with your own

     

    HideVisual = IF(HASONEFILTER(Table[SlicerColumn]),1,2)

    Then add it to the visual filters and set it to is 1.

     

  • v-frfei-msft's avatar
    v-frfei-msft
    Community Support

    Hi Anonymous ,

     

    To create a measure as below.

     

    Measure =
    IF ( ISFILTERED ( Table1[org] ), SUM ( Table1[value] ), BLANK () )
     
    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you