Forum Discussion

Kayla_Xue's avatar
Kayla_Xue
New Member
6 years ago
Solved

column value filter

Hi everyone,   I am new to PowerBI. I am trying to create two filters to allow the chart to switch between top2 shares and top3 shares value. I am currently have charts below with top 2 shares as '...
  • v-xuding-msft's avatar
    v-xuding-msft
    6 years ago

    Hi Kayla_Xue ,

    I created a sample. You could reference it to have a try. Please follow the steps.

    • Create a new irrelated table manually and use the column as a slicer.

    • Create a measure and drag it into the chart.

     

    Measure = 
    var a = SELECTEDVALUE('Filter Table'[Column1])
    return
    IF(ISFILTERED('Filter Table'[Column1]),IF(a= "Top 2",[Top 2],[Top 3]),BLANK())

     

    Note:  The measures of "Top 2" and "Top 3" are just sample. They are not really top values. Please change them to your own measures.

     

    Best Regards,

    Xue Ding

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.