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
balestram
New Member

Exclude rows in a matrix if a Column has the same value at the row total

I have developed a simple matrix like the one blow to report on the status of the receommendations from our audits.  I would like to exclude from the visual those rows where the total of the colomn Closed is equal to the Column Subtotal (i.e. where all audit recommendation are closed and there are none left open).  In my example, I would like to exclude project 5678 as all 10 recommendations are closed and the row total is also 10.  Any suggestion on how to acheive that would be appreciated.  Thank you.

 

Project CodeAudit NameRecommendations OpenRecommendations ClosedTotal
1234Audit 15510
5678Audit 201010
1 ACCEPTED SOLUTION

I ended up solving the issue myself.  I created a new table that counts the sum of the closed recommendtions and the sum of the non closec recommendations.  Then it count the total closed, minus the non closed, minus the closed again.  if the result is equal to zero, then that audit needs to be filtered out as all recommendations are closed.  I then join this table to the main table and filter out the rows whene the result of the above subtraction is zero.

View solution in original post

4 REPLIES 4
balestram
New Member

Maybe this way what I am trying to acheive will be more clear.  This is the table behind the matrix (what would be a pivot table in Excel).  When I do the matrix, Audit 2 should not appear as all recommendations are closed.  I need to figure out a way to add a measure to highlight the recommendations from those projects where all recommendations are closed.  Then I could use that measure as a visual level filter to exclude certain audits.

 

Project CodeAudit NameRecommendation TitleRecommendations State
1234Audit 1Recommendation 1Open
1234Audit 1Recommendation 2Closed
1234Audit 1Recommendation 3Closed
1234Audit 1Recommendation 4Open
1234Audit 1Recommendation 5Open
1234Audit 1Recommendation 6Open
1234Audit 1Recommendation 7Closed
1234Audit 1Recommendation 8Open
1234Audit 1Recommendation 9Closed
1234Audit 1Recommendation 10Closed
4567Audit 2Recommendation 1Closed
4567Audit 2Recommendation 2Closed
4567Audit 2Recommendation 3Closed
4567Audit 2Recommendation 4Closed
4567Audit 2Recommendation 5Closed
4567Audit 2Recommendation 6Closed
4567Audit 2Recommendation 7Closed
4567Audit 2Recommendation 8Closed
4567Audit 2Recommendation 9Closed
4567Audit 2Recommendation 10Closed

 

selimovd
Super User
Super User

Hey @balestram ,

 

if it's per row you could add a calculated column that checks if they are identical:

CheckTotal = IF( myTable[Recommendations Closed] = myTable[Total], 1, 0)

 

In the filter pane for the visual you can then filter to consider only the rows where CheckTotal = 0:

selimovd_0-1627297075826.png

 

I think that should give you the result you want.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 
amitchandak
Super User
Super User

@balestram , Create a measure like this and use it in visual level filter

 

Check for non blank or =1 in the visual level filter

if([Recommendations Open]+[Recommendations Closed] = [Recommendations Closed] , blank(), 1)

 

 

I ended up solving the issue myself.  I created a new table that counts the sum of the closed recommendtions and the sum of the non closec recommendations.  Then it count the total closed, minus the non closed, minus the closed again.  if the result is equal to zero, then that audit needs to be filtered out as all recommendations are closed.  I then join this table to the main table and filter out the rows whene the result of the above subtraction is zero.

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.