Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
DAX for counting rows with multiple filters
01-23-2023
07:06 AM
Hi Everyone,
I am trying to create a DAX function where I count Rows based off of mutliple filters.
I need
Number of Referrals = Countrows with these filters:
- Status is Active, Allocated or Pending allocation
- Status Change is on or after 01/10/2022
- First Contact Date is between 01/10/2022 and 31/12/2022
Thanks all
Solved! Go to Solution.
1 ACCEPTED SOLUTION
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2023
07:23 AM
hi @cammar
try like:
Number of Referrals =
COUNTROWS(
FILTER(
ALL(TableName),
TableName[Status] IN {"Active", "Allocated", "Pending allocation"}
&&TableName[Status Change] >=DATE(2022, 10, 1)
&&TableName[First Contact Date]>=DATE(2022, 10, 1)
&&TableName[First Contact Date]<=DATE(2022, 12, 31)
)
)
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2023
07:23 AM
hi @cammar
try like:
Number of Referrals =
COUNTROWS(
FILTER(
ALL(TableName),
TableName[Status] IN {"Active", "Allocated", "Pending allocation"}
&&TableName[Status Change] >=DATE(2022, 10, 1)
&&TableName[First Contact Date]>=DATE(2022, 10, 1)
&&TableName[First Contact Date]<=DATE(2022, 12, 31)
)
)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2023
07:26 AM
Absolutely Perfect thanks

Helpful resources
Recommendations
Subject | Author | Posted | |
---|---|---|---|
05-19-2024 06:29 AM | |||
09-20-2024 02:32 AM | |||
09-18-2024 07:52 PM | |||
01-04-2024 08:33 AM | |||
10-07-2024 10:50 AM |
Top Solution Authors (Last Month)
User | Count |
---|---|
13 | |
12 | |
10 | |
10 | |
9 |
Top Kudoed Authors (Last Month)
User | Count |
---|---|
29 | |
16 | |
14 | |
13 | |
13 |