filter by number of rows

NigelBarrett

New Member
Joined
Mar 3, 2020
Messages
6
Office Version
  1. 365
I have a data model that tracks the hours people book to their timesheets.
I have a measure that filters all the ones that did not book the minimum number of hours for any week. This is called [need to fill in].
Next I have a measure that counts the number of weeks that have not been filled in fully. This is Count weeks:=countx('Calendar',[Need to fill in])
So for so good.
I have been trying to create a measure that filters [need to fill in] with [count weeks] > 1.
No joy here though.
Instead I do the filter in the pivot table itself using value filters.
Any suggestions?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Nigel

Try using COUNTIFS. This allows multiple filtering criteria.
 
Upvote 0
Thanks for the suggestion but there is no COUNTIFS in DAX.
I am looking for something like COUNTROWS but that does not work on my [count weeks] measure.
 
Upvote 0
OK. I didn't realise you were using DAX. Out of my area of expertise I'm afraid.
 
Upvote 0
This link takes you to SUM with two filters, should be possible to convert to count.
 
Upvote 0

Forum statistics

Threads
1,223,785
Messages
6,174,540
Members
452,571
Latest member
MarExcelTips

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top