Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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.

mahoneypat
Employee
Employee

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors