[英]POWER BI datesdifference excluding weekends
This is formula that i use 这是我使用的公式
CALCULATE(SUM(Dates[IsWorkDay]),DATESBETWEEN(Dates[Date],
'table1'[date1],'table1'[Date2])))
This is the formula I use... between dates that look like below image.. I want to exclude weekends..... but the result that I get is not correct .... when the actual difference is only one day ... I get it as 4 days ... it differs a lot.. can some one please help 这是我使用的公式……在下图所示的日期之间。.我想排除周末.....,但是当实际差异只有一天时,我得到的结果是不正确的。 ..我4天就收到了...相差很多..有人可以帮忙吗
The Data type of all the dates in the formula needs to be in the same format. 公式中所有日期的数据类型必须采用相同的格式。
For Example: keep it as just date(mm/dd/yy). 例如:将其保留为仅日期(mm / dd / yy)。
Your calculated column is right and it should work once you fix the data types. 您计算出的列是正确的,并且一旦您修复了数据类型,它便会起作用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.