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
javigold
Frequent Visitor

Matrix rows not filtering properly

I have a matrix:

Test matrix.jpg

 

So my model is Region 1 - many on Programs.   Programs 1 - many on Activities.   

 

2 measures:

 

# of Programs= CALCULATE(COUNT('Programs'[Id]))
 
# of Activities= CALCULATE(COUNT('Activities'[Id]))
 
How do I filter out rows of activities that aren't associated with the program??
 
Thx!

 

1 ACCEPTED SOLUTION

Click on the table and open filter pane. Then with measure # of Activities go to advanced and select option "is not blank". That's it. 🙂





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
grantsamborn
Solution Sage
Solution Sage

Hi @javigold 

If you have a many-to-one relationship between Programs and Activities, it should be easy to find any activities that aren't associated with a program.

 

Could you show:

(a) sample source dataset

(b) your expected end result

(c) a description of how you would expect to get from (a) to (b).

 

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...

 

Thanks,

Grant

Yeah, realized I didn't really get enough info in the question to make sense.  😉

 

So, my data model is this:

Model New.png

And the matrix ends up like this: MatrixNew.png

 

My data tables are: Activities Table.pngActivities Type.pngPrograms Table.pngRegions Table.png

 

What I am expecting is for the activities to only show up in a matrix row when they have a count of 1 or more.   Hopefully, that makes more sense. 

Click on the table and open filter pane. Then with measure # of Activities go to advanced and select option "is not blank". That's it. 🙂





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi @javigold 

Thanks for the additional info.

Is there any way you can copy the source data as described in the following link?   It makes any troubleshooting mush easier.

A pbix with sample data would be ideal.

 

Here are the links again.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...

 

Thanks,

Grant

 

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.