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

Filter table based on selected element of a pie chart

I'm having trouble with the interaction between a table visualization and pie chart visualization. Here is some dummy data that mirrors the data set I'm working with: 

 

NameColorItem 1?Item 2?Item 3?
JohnRedYY 
MaryYellow Y 
SamBlack   
ChrisBlue Y 
MarthaOrange  Y
ThomasRed   
SarahBlack YY
PhilOrange Y 
KimBlue Y 
LarryYellow Y 

 

In PBI, I want to show a pie chart of the count of the items and a table below it with the actual info for a user to inspect. I've been able to include this in my dashboard, but I'd like the user to be able to click/select a piece of the pie chart and the table dynamically filter to show only those items which meet that criteria. In the case of my example, ideally the table would only show the "Name" and "Color" fields and when clicking on the "Count of Item 1?" piece of the pie, only the "John - Red" line would show in the table. However, when clicking on the pie, the table doesn't change at all.

 

The interactions are set to filter, not highlight, and as best I can tell, it should interact in the way I expected, but it isn't. This is all one data set, so it should be simple to get this to work, but haven't been able to find anything on these forums to help. Thanks in advance.

a.jpg

4 REPLIES 4
v-lili6-msft
Community Support
Community Support

hi @van_r 

For pie visual, there is no row context in it, it only have three summary value in it, so it won't pass any other row context to other visuals to interact with other visuals.

So you need unpivot the basic data, here is my sample pbix file, please try it.

 

Regards,

Lin

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

Hello, can you explain the solution a little bit? I saw you make it though I don't get it.

amitchandak
Super User
Super User

mahoneypat
Super User
Super User

if you unpivot your three item columns, you can then make your pie chart with the new consolidated item column and a simple Mount Rose measure in the van I use.

Regards

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!