Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi everyone,
I've been trying to write a measue for cumulative pending cases where it should interact with date filter accordingly as point in time.
I have data where i have a startdate, enddate for each status of case and case submitted date.
Case submitted date is active relation with a date colum in claender table and an inactive relation between status start date and date.
In my scenario, there are few different case status (P,SI,FP) which all together known as Pending.
Data looks as above.
I am using the following DAX, but its not generating the required results.
Thanks in advance.
You can try, this should count the project that where pending during the month:
VAR miDate = MIN('Date'[Date]) // Start of the month in your graph
VAR mxDate = MAX('Date'[Date]) // End of the month in your graph
RETURN
CALCULATE (
DISTINCTCOUNT( Data[GUID] ),
FILTER(
ALL('Data'),
// Projects that stared within the month
(miDate <= 'Data'[STARTDATE] && 'Data'[STARTDATE] <= mxDate)
||
// Projects that ended within the month
(miDate <= 'Data'[ENDDATE] && 'Data'[ENDDATE] <= mxDate)
||
// Projects that are pending the whole month
('Data'[STARTDATE] <= miDate && mxDate <= 'Data'[ENDDATE])
||
// Projects that are pending the during month
(miDate <= 'Data'[STARTDATE] && 'Data'[ENDDATE] <= mxDate)
),
'Data'[STATUS] IN {"P","V","F"}, // Filters on pending
ALL('Date') // Removes the date filter (not sure if you need to this)
)
And if you would like to get those that are pending on the end of the month:
VAR mxDate = MAX('Date'[Date]) // End of the month in your graph
RETURN
CALCULATE (
DISTINCTCOUNT( Data[GUID] ),
FILTER(
ALL('Data'),
('Data'[STARTDATE] <= mxDate && mxDate <= 'Data'[ENDDATE] )
),
'Data'[STATUS] IN {"P","V","F"}, // Filters on pending
ALL('Date') // Removes the date filter (not sure if you need to this)
)
If it does not work I hope that it directs you to the right direction 🙂
Regards,
Kristjan
Hi Kristjan,
Thanks for your reply.
I am using end of month dax but i am getting some redendancy for latest month
The dax is not working with some other filters that I need to represent on dashboard.
I tried few scenarios but no luck.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 21 | |
| 10 | |
| 8 | |
| 8 |