Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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! |
|
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
8 |