Power BI-计算已关闭的滚动项目

时间:2019-10-18 09:27:06

标签: powerbi

我找不到相似的主题或答案。

我在excel中有以下数据

ID  CLOSE DATE  Status      DAY   Total Closed per day  Closed rolling  Open
1               Open        DAY 1 8     0               0               8
2               Open        DAY 1 8     0               0               8
3   11/10/2019  Closed      DAY 1 8     1               1               7
4   12/10/2019  Closed      DAY 2 8     2               3               6
5   12/10/2019  Closed      DAY 2 8     2               3               5
6   13/10/2019  Closed      DAY 3 8     1               4               4
7   14/10/2019  Closed      DAY 4 8     1               5               3
8   15/10/2019  Closed      DAY 5 8     1               6               2

哪里

DAY  = 
  VAR _days = DATEDIFF(Sheet1[START_DATE_PACK],Sheet1[CLOSE DATE], DAY)
RETURN "DAY " & _days

其余来自excel。

我在 Power BI 中需要的图是从 excel

enter image description here

1 个答案:

答案 0 :(得分:0)

您可以添加一个滚动的总列,但是灵活性较差,最好将其作为度量进行处理。

以下是适用于您的列名的滚动总计量度的标准模式:

docker-compose.yml
my-server/
+-- go.mod
+-- go.sum
+-- dev.Dockerfile