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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
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,215,634
Messages
6,125,931
Members
449,274
Latest member
mrcsbenson

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