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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Funkmiester
Advocate I
Advocate I

cross filtering columns in the same table

This is so basic apologies, I'm missing something.

I have a fact table containing organisations, they are grouped in a separate groups, there are mutliple entries for each  organisation in the table. (The example below only shows one).

When a user selects the org name via a dropdown selector, I need the other visuals on the page to respond and filter by org group, not just a single selected org name. You can turn on and off the interactions. I have tried putting the org group into the filter, Top N etc. I can get the Org group to display in a visual but I can't use it to drive the filter on another visual. When I change the dropdown selection the group appears in the visual filter selection but I can't seem to use it as a filter without manually selecting it. ScreenHunter 387 Jul. 09 10.24.jpg

https://www.dropbox.com/s/qcx6h5ovisx10on/cross%20group%20filter%20Question.pbix?dl=0

I've posted an example file on the following link.

 

Example file. 

 

1 ACCEPTED SOLUTION
Stachu
Community Champion
Community Champion

you will need second table for this - otherwise filter you put on Org Name will overwrite one coming from the Org Group, tables shouldn't have joins
new table (named Slicer) 

Org NameOrg Group
Org11
Org21
Org32
Org42
Org53
Org63
Org74
Org84
Measure = 
CALCULATE(
SUM('Table1'[Score]),
INTERSECT(ALL('Table1'[Org Group]),VALUES(Slicer[Org Group]))
)

 



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

View solution in original post

4 REPLIES 4
Stachu
Community Champion
Community Champion

you will need second table for this - otherwise filter you put on Org Name will overwrite one coming from the Org Group, tables shouldn't have joins
new table (named Slicer) 

Org NameOrg Group
Org11
Org21
Org32
Org42
Org53
Org63
Org74
Org84
Measure = 
CALCULATE(
SUM('Table1'[Score]),
INTERSECT(ALL('Table1'[Org Group]),VALUES(Slicer[Org Group]))
)

 



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Thank you Stachu

I've tried it on the PBIX file I linked to above.

It almost works, it correctly filters the graph so that only the Orgs in the selected group are displayed but they all return the same single value. How can I use the cross filtering but display the individual Score.

I've tried placing almost every attribute in every box. Any ideas?

 

the 'Org Name' in the chart should come from the Table, not the Slicer, that should give the proper sum - is this the case?
so - for filtering you use Slicer[Org Name], in the visual you use Table[Org Name]

EDIT - spelling



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

It was a PICNIC error (problem in chair, not computer)

 

Your solution worked perfectly but I had a filter on the bar graph visual from before that meant it didn't display properly. Many, thanks,

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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