Forum Discussion

josh_sheffield's avatar
josh_sheffield
Frequent Visitor
8 years ago
Solved

Slicing by calculated column header

I'm wanting to create a slicer based upon the header of two calculated columns. Is this possible? If I wanted to slice based upon a traditional colum header I would go into the query editor and un...
  • Anonymous's avatar
    Anonymous
    8 years ago

    Hi josh_sheffield,

     

    >>What I am trying to achieve is a slicer to turn the upper and lower limit lines on/off.

    You can create a if parameter table as source of slicer to control limit lines measure display or hide.

     

    Below is sample.

     

    Table:

    Variable = GENERATESERIES(0, 1, 1)

     

    Measures

    Selected = SELECTEDVALUE(Variable[Parameter])

    maxline = IF ( [Selected] = 1, MAX ( 'Table'[Amount] ), 0 ) minline = IF ( [Selected] = 1, AVERAGE ( 'Table'[Amount] ), 0 )

     

    Regards,

    Xiaoxin Sheng