Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi guy's
I am trying to create a calculated column with the number of working days in my table with two date columns From date and To date.
But in my date columns there are blanks and I tried the below formulae, but it is giving me all zero values.
Below is my formulae
My requirement is -
I want to see if there is blank entry in my date columns, I want to see zero value in my workday column
I created a date table as shown in below figure.
Below is my project table
Any help will be wondefull.
Regards
Raj
Hi @RJ_KON
Try this:
No. of working days =
VAR _S = 'Project Table'[From Date]
VAR _E = 'Project Table'[To Date]
RETURN
CALCULATE (
SUM ( Date[DayNumber_0_1] ),
FILTER ( ALL ( Date ), Date[Date] >= _S && Date[Date] <= _E )
)
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Hi Vahid, thanks for looking into my query. But I want the count of only weekdays.
Raj.
User | Count |
---|---|
128 | |
109 | |
100 | |
65 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |