Forum Discussion
Excluding weekend days from formula
- Anonymous3 years ago
Hi Anonymous ,
You can create a calculated column as below in the table 'resource' to get the number of working days:
# Days ill = CALCULATE ( COUNTROWS ( 'DimDatum' ), FILTER ( 'DimDatum', 'DimDatum'[Is_Weekend] = "false" ), DATESBETWEEN ( 'DimDatum'[Date], 'resource'[Start Date], 'resource'[End Date] ) )If the above one can't help you get the desired result, please provide some raw data in your table 'resource' (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
# Days ill = sumx(values(resource[ID]), Sumx(filter(dimdatum, 'DimDatum'[Is_Weekend] = "false"),VALUES('DimDatum'[Datum]) , [# Ill]*[# FTE]))
Hi Anonymous ,
You can create a calculated column as below in the table 'resource' to get the number of working days:
# Days ill =
CALCULATE (
COUNTROWS ( 'DimDatum' ),
FILTER ( 'DimDatum', 'DimDatum'[Is_Weekend] = "false" ),
DATESBETWEEN ( 'DimDatum'[Date], 'resource'[Start Date], 'resource'[End Date] )
)
If the above one can't help you get the desired result, please provide some raw data in your table 'resource' (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards