Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
I have a table (table1) in a matrix visual that is linked to a second table (table2). Table2 has a category column (x) where each row is labelled as either 1 or 0. I want a separate visual (y) to be filtered based on both current filtering on page but also by an additional condition: if both x=1 and x=0 rows are visible in table1 matrix visual then filter out all values where x=1 else show all values. Please note that column x itself does not appear in the table1 matrix visual I've just included these in the examples to illustrate the issue.
I have tried creating a measure for this but it only works when a selection is made on the table1 visual. I would like help to be able to have a filter which works both when data is selected on the matrix visual and when nothing is selected.
Hi @BeardedDog888 ,
Here are the steps you can follow:
1. Create calculated table.
Company =
DISTINCT('Table'[Company])
2. Create measure.
Flag =
IF(COUNTROWS(ALL('Table'))=COUNTROWS(ALLSELECTED('Table')),0,1)
3. Place [Flag] in the Filter of the Company Table to 1.
4. Place the [Company] of the Table in the Filters on this page.
5. Result:
When there are 1 and 0, it is not displayed
When there is only 1, display all
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Unfortunately this doesn't solve the issue as I still need to display visual when both 0 and 1 values are in the table, it is just that when this occurs only 0 values should show in the visual.
Read about ISFILTERED()
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
71 | |
57 | |
38 | |
36 |
User | Count |
---|---|
81 | |
67 | |
61 | |
46 | |
45 |