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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Dear All,
Some how I can't get the sum of working days till the end of the current month, because I have a filter in the report that is called "isPastDay", how can I overcome this issue?
The measures are as follows:
Working Days =
CALCULATE (
COUNTROWS ( FILTER ( 'Date', 'Date'[Date] <= TODAY () ) ),
'Date'[isWD] = "1"
)Working Days ToBe =
CALCULATE (
COUNTROWS ( 'Date' ),
'Date'[isWD] = "1",
REMOVEFILTERS ( 'Date'[isPast] )
)What I'm expecting to see, is 41 instead of 250
Your help is so much appreciated.
Best regards,
Simon
Solved! Go to Solution.
I got the measure to work
Working Days ToBe =
VAR _EndOfCurrentMonth =
EOMONTH ( TODAY (), 0 )
VAR _WDtillEndOfCurrentMonth =
CALCULATE (
COUNTROWS ( FILTER ( 'Date', Date[Date] <= _EndOfCurrentMonth ) ),
Date[isWD] = "1",
REMOVEFILTERS ( Date[isPast] )
)
RETURN
_WDtillEndOfCurrentMonth
I got the measure to work
Working Days ToBe =
VAR _EndOfCurrentMonth =
EOMONTH ( TODAY (), 0 )
VAR _WDtillEndOfCurrentMonth =
CALCULATE (
COUNTROWS ( FILTER ( 'Date', Date[Date] <= _EndOfCurrentMonth ) ),
Date[isWD] = "1",
REMOVEFILTERS ( Date[isPast] )
)
RETURN
_WDtillEndOfCurrentMonth
@y5famfnatudu Try using
DAX
Working Days =
CALCULATE (
COUNTROWS ( FILTER ( 'Date', 'Date'[Date] <= TODAY () ) ),
'Date'[isWD] = "1"
)
Working Days ToBe =
CALCULATE (
COUNTROWS ( FILTER ( 'Date', 'Date'[Date] > TODAY() && 'Date'[Date] <= EOMONTH(TODAY(), 0) ) ),
'Date'[isWD] = "1",
REMOVEFILTERS ( 'Date'[isPastDay] )
)
Proud to be a Super User! |
|
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 |
|---|---|
| 11 | |
| 9 | |
| 9 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 19 | |
| 17 | |
| 11 |