Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Column Chart and Slicer

Hi,

I have a column chart which uses City and Population. In the same page, is a slicer for City. These two do not interact as when user selects the City, they can see where the selected City stands against others. For this purpose, I would like to change the color of the selected city so it's hihglighted. Is there any way to do this?

Thanks and appreciate your help and time.

Smitha

 

  • Hi Anonymous ,

     

    Based on your description, you are using live connection mode.

    It is suggested that you do not use the city column as the slicer, drag the city column into the table view, click the city field to interact with the column chart and highlight it.

     

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

9 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    Would need to understand data layout for this. Is City slicer using the same City column as the column in your table visual? 

     

    If so, I would create a separate City table, use SELECTEDVALUE to grab that and use that within a flag measure where you compare IF(MAX('Table'[City]) = SELECTEDVALUE('Cities'[City']),1,0)

     

    Use that measure as conditional formatting.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks Greg. 

      Unfortunately I can't create a table as I use Power BI as the front end and everything is on Cube. 

       

       

      • Greg_Deckler's avatar
        Greg_Deckler
        Community Champion
        OK, so you have used Edit Interactions to disable the slicer from affecting the table? Please confirm and I will take a look.
  • V-lianl-msft's avatar
    V-lianl-msft
    Community Support

    Hi Anonymous ,

     

    Based on your description, you are using live connection mode.

    It is suggested that you do not use the city column as the slicer, drag the city column into the table view, click the city field to interact with the column chart and highlight it.

     

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

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Liang,

       

      Thanks for your response. Unfortunately, this doesn't work as I have other KPIs I am showing along with the chart.  If I don't find any other way, I will use this and accept this as your solution.

       

      Thanks,

      Smitha

      • V-lianl-msft's avatar
        V-lianl-msft
        Community Support

        Hi Anonymous ,

         

        Thanks for your update.

        If there is a more effective solution, you can also update it in time and mark your reply as the answer so that people who may have the same question can get the solution directly.

         

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