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
Anonymous
Not applicable

Ignoring a visual level filter from a matrix in a pie chart

Hi!

 

I'm having a bit trouble with combining a matrix and a pie chart. I have a set of data which tells me the status of a project per country. In the matrix visual, I've set a visual level filter on "bad" as the status. This indicates me which projects need attention. See examples.

Dataset: 
pic4.png

Filter on the matrix

Filter on matrixFilter on matrix

Pie chart
Pie chartPie chart

The problem I encounter is when I select a country in the matrix visual, the visual level filter from the matrix applies to the pie chart. For example, when I select USA, the pie chart will only show me the projects which are bad according to their status. See example.

Selected valueSelected value

For the pie chart, I want to see all the projects from USA (good and bad). For the matrix, I don't want anything to change. I've tried using variaties of measures with ALL and ALLEXCEPT, but I can't seem to figure it out. Does somebody know how I would fix this sort of problem?

Thanks in advance,

Lars

1 ACCEPTED SOLUTION

hi, @Anonymous 

After my research, when you do an interaction between two or more visuals, the visual level filter will affect other visuals too. so you could try this way:

Don't set visual level filter on matrix visual and use a measure instead of "Count of Countries"

Measure = CALCULATE(COUNTA('Table'[Projects]),'Table'[Status]="Bad")

Then set "Count of Countries" for pie chart.

Result:

3.JPG

 

Best 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.

View solution in original post

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

hi, @Anonymous 

You could use All Function to add a measrue

Measure = CALCULATE(COUNTA('Table'[Projects]),ALL('Table'[Countries]))

Result:

2.JPG3.JPG

Here is pbix file, please try it.

 

Best 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.
Anonymous
Not applicable

Hi Lin,

Thanks for your reply!
The formula works, but it isn't giving the result I desire.

When I filter on a country, the pie chart shows me a total of all the bad projects.

When I filter the matrix on a country (for example: USA), I want the pie chart to display all the projects which belong to the chosen country (2 good, 2 bad).

I feel like this isn't an extreme difficult task, but I can't seem to figure it out 😞

Thanks in advance!

Best regards,

 

Lars van de Bunt

hi, @Anonymous 

After my research, when you do an interaction between two or more visuals, the visual level filter will affect other visuals too. so you could try this way:

Don't set visual level filter on matrix visual and use a measure instead of "Count of Countries"

Measure = CALCULATE(COUNTA('Table'[Projects]),'Table'[Status]="Bad")

Then set "Count of Countries" for pie chart.

Result:

3.JPG

 

Best 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.
Anonymous
Not applicable

@Anonymous,

You can change the filtering interaction between visuals here

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.