Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hello,
I am trying to calculate the count of Days a User worked at least 1 hour while ignoring a specific page filter.
Each Day should only be counted once. Other Filters should still work.
Here is my Measure:
WorkedDays =
CALCULATE(
COUNTROWS(
SUMMARIZE(
FILTER(TABLEA, TABLEA[WorkedHours] > 0),
TableA[Date]
)
),
ALL(TABLEA[TESTFILTER]), // Remove filter effect of TESTFILTER
ALLSELECTED(TABLEA),
FILTER(TABLEA, TABLEA[WorkedHours] > 0)
)
When I set a TESTFILTER to Green it drops my total for Worked Days but should not.
I need this value to be static so that I can find the average Widgets Produced for all days worked.
Here is a sample table and expected results:
| User | Date | Widgets Made | Hours Worked | TestFilter |
| 1001 | 8/1/2023 | 1 | 1 | Green |
| 1001 | 8/1/2023 | 1 | 1 | Red |
| 1002 | 8/1/2023 | 1 | 1 | Green |
| 1002 | 8/2/2023 | 1 | 1 | Green |
| Results with no Filter | ||
| User | Total Days Worked | Total Widgets |
| 1001 | 2 | 2 |
| 1002 | 2 | 2 |
| Desired Results (Page Filter on TestFilter = Green) | |||
| User | Days Worked | Total Widgets | AVG Widgets August |
| 1001 | 2 | 1 | 0.5 |
| 1002 | 2 | 2 | 1 |
Currently w/ the page filter set I get 1 Day worked for 1001
Thank you for any assistance!
Solved! Go to Solution.
@adoster try these measures:
Days Worked = CALCULATE ( COUNTROWS ( 'Table' ), REMOVEFILTERS ( 'Table'[TestFilter] ) )
Total Widgets = SUM ( 'Table'[Widgets Made] )
Avg Widgets = DIVIDE ( [Total Widgets], [Days Worked] )
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@adoster beautiful, good to hear. Cheers!
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@adoster try these measures:
Days Worked = CALCULATE ( COUNTROWS ( 'Table' ), REMOVEFILTERS ( 'Table'[TestFilter] ) )
Total Widgets = SUM ( 'Table'[Widgets Made] )
Avg Widgets = DIVIDE ( [Total Widgets], [Days Worked] )
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@adoster it will easier if you can share sample pbix using one drive/google drive and the expected output. Without knowing your data model and required output, it is very hard to decode the DAX expression.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hello,
I edited the original post and included sample data.
This is a slimmed down version of my original data which I am unable to post.
Thanks!
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 49 | |
| 30 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 128 | |
| 104 | |
| 56 | |
| 39 | |
| 31 |