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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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