Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
104 | |
95 | |
80 | |
67 | |
62 |
User | Count |
---|---|
138 | |
107 | |
104 | |
82 | |
63 |