简体   繁体   English

POWER BI日期差异(不包括周末)

[英]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天就收到了...相差很多..有人可以帮忙吗

enter image description here 在此处输入图片说明

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.

相关问题 Power BI 计算不包括周末和非工作时间的时差 - Power BI calculating time difference excluding weekends and non working hours 计算日期和时间的差异时,不包括Power Bi中的周末 - Excluding Weekends in Power Bi when calculating the difference in dates and times 如何以小时为单位计算两个日期时间列之间的时间差,不包括周末和 power bi 中的营业时间? - how to calculate time difference between two datetime columns in hours excluding weekends and business hours in power bi? POWER BI:计算不包括过去 5 天的百分比 - POWER BI : Calculate the percentage excluding last 5 days Power BI - 显示前一个工作日的数据 - 不包括周末 - Power BI - Show data from the previous working day - exclude weekends 计算不包括零的平均值,忽略功率 bi 中的度量的切片器 - Calculating average excluding zeros ignoring slicer for a measure in power bi 均线,不包括周末和节假日 - Moving average excluding weekends and holidays 我目前正在尝试计算销售表中两个日期之间的差异,不包括 Power BI 中的周末 - I'm currently trying to calculate the difference between two dates in sales table excluding weekend in power BI 根据 Power BI 中的卷,将所选客户端与除所选客户端之外的 TOP N 客户端进行比较 - Compare selected Client with TOP N Clients excluding the selected Client based on Volume in Power BI 到M中的Power ^(Power BI) - To the Power ^ in M (Power BI)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM