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 IV
Super User IV

@van_r , unpivot you data first

https://radacad.com/pivot-and-unpivot-with-power-bi
Transpose : https://yodalearning.com/tutorials/power-query-helps-transposing-data/



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

mahoneypat
Super User IV
Super User IV

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
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Kudoed Authors