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! Get ahead of the game and start preparing now! Learn more
I have data with no end date and these are considered open events. Below is an example:
1) I have filtered this using a slicer from startdate 01/01/2022 to enddate 31/12/2022.
2) I am seeking a DAX measure to count rows of all rows with blank endates but no limited to the slicer's parameters.
In the above example, the DAX measurer I am seeking will yeild 3 counts of rows with no end dates (icd 001, icd 003 and icd 008) despite having start dates outside the slicer's paremeters.
3) The DAX measure will yeild counts for rows with both start dates and end dates but will not yield icd 002 or icd 010 because they do not fall within the slicer's parameters.
Kudos for your help.
Solved! Go to Solution.
Hi @matrix_user ,
Slicer works:
Cases open = CALCULATE(COUNT('Table'[ID]),FILTER(ALL('Table'),'Table'[Startdate]<MAX(slicer[date])&&('Table'[Enddate]>MIN(slicer[date])||ISBLANK('Table'[Enddate]))))
Slicer does not work:
Cases open = CALCULATE(COUNT('Table'[ID]),FILTER(ALL('Table'),ISBLANK('Table' [Enddate])))
Best Regards,
Jay
I am still struggling with this... the end result I am trying to acheive is to count rows with start date BUT no end date AND not limited to slicer's start date of "01/01/2022"
Try this
Hello,
If I use the ALL function where would I put it in the below Dax expression? This expression currently counts all the rows with no end date - but only within the slicer's parameters:
Cases open =
VAR Enddatevisual = MAX ('Datetable' [Date])
VAR Startdatevisual = MIN ('Datetable' [Date])
VAR RSEULT = CALCULATE ([Total cases],
ISBLANK ('Table' [Enddate]))
RETURN
RESULT
Thank you,
Hi @matrix_user ,
Slicer works:
Cases open = CALCULATE(COUNT('Table'[ID]),FILTER(ALL('Table'),'Table'[Startdate]<MAX(slicer[date])&&('Table'[Enddate]>MIN(slicer[date])||ISBLANK('Table'[Enddate]))))
Slicer does not work:
Cases open = CALCULATE(COUNT('Table'[ID]),FILTER(ALL('Table'),ISBLANK('Table' [Enddate])))
Best Regards,
Jay
Hi @matrix_user ,
You could use ALL() function to wrap the table and remove the filter while calculating.
https://learn.microsoft.com/en-us/dax/all-function-dax .
Best Regards,
Jay
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 11 | |
| 10 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 19 | |
| 12 | |
| 11 |