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

Filter Matrix Entries by Sub Total of Measure

Hi Everyone,

 

currently i am struggling with a filter Option in my Report.

 

I have following Matrix:

 

Bildschirmfoto 2020-09-23 um 17.44.32.png

I try to visualize the Ammount of Days, where an employye tracked time, grouped by the last three weeks. If an employee tracked more than five days, there Measure "isCritical" switches to 1. My Goal is, to show only those employees, who have three critical weeks in line (in other words: where the sum of isCritical = 3).

 

In this example, only employee 2 should be visible. I tried to work with COUNTROWS, but i don't get the expected Result. In my thougts, i need something like a filter option on the level of every subTotal.

 

Does someone has a proposal to solve the problem? Thanks for your help!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

For now i found following work around solution:

 

Bildschirmfoto 2020-09-24 um 12.19.38.png

 

I just store the total subSum in every row with following DAX:

 

sumIsCritical = CALCULATE([isCritical],ALL(DimDate[WeekOfYear]))

 

This allows me to filter all rows, where the value is 3 👍

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

For now i found following work around solution:

 

Bildschirmfoto 2020-09-24 um 12.19.38.png

 

I just store the total subSum in every row with following DAX:

 

sumIsCritical = CALCULATE([isCritical],ALL(DimDate[WeekOfYear]))

 

This allows me to filter all rows, where the value is 3 👍

jthomson
Solution Sage
Solution Sage

What does the underlying data look like?

Anonymous
Not applicable

The whole data Model is much more complicated, but this should visualize the required tables in an abstract way. In Power BI I have an calculated column, which filter the last three weeks. TrackedDays is calculated by a distinct rowCount on daily Base where trackedTimes != 0.

Bildschirmfoto 2020-09-23 um 18.27.37.png

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.