cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Microsoft
Microsoft

Re: Column Chart and Slicer

Hi @srampure ,

 

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.

test_highlight.PNG

 

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

View solution in original post

9 REPLIES 9
Highlighted
Super User IV
Super User IV

Re: Column Chart and Slicer

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.


---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted
Frequent Visitor

Re: Column Chart and Slicer

Thanks Greg. 

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

 

 

Highlighted
Super User IV
Super User IV

Re: Column Chart and Slicer

OK, so you have used Edit Interactions to disable the slicer from affecting the table? Please confirm and I will take a look.

---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted
Frequent Visitor

Re: Column Chart and Slicer

Yes, I have disabled the interaction between the two. 

Thanks so much.

Highlighted
Super User IV
Super User IV

Re: Column Chart and Slicer

OK, I'll look but not sure there is a solution here since the Matrix visualization will likely not be able to grab the slicer value because there is no context for it within the visual, the only context for City is going to come from the matrix visual.

---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted
Frequent Visitor

Re: Column Chart and Slicer

Yes, thank you.

Highlighted
Microsoft
Microsoft

Re: Column Chart and Slicer

Hi @srampure ,

 

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.

test_highlight.PNG

 

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

View solution in original post

Highlighted
Frequent Visitor

Re: Column Chart and Slicer

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

Highlighted
Microsoft
Microsoft

Re: Column Chart and Slicer

Hi @srampure ,

 

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.

Helpful resources

Announcements
Super Users of the Quarter - Q2 2020

Super Users of the Quarter - Q2 2020

Who are our Super User Superstars? Who made it to the top of the leaderboards? Get the answers!

June 2020 Community Highlights

June 2020 Community Highlights

Featured community members, changes to the Community, and more! Read up on recent Power BI community news.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors