简体   繁体   English

如何在 PowerBi 中随时间拆分值?

[英]How to split value over time in PowerBi?

I have a value that is valid for a period of time, for example, 1200 minutes overtime period of 2020-01-01 to 2020-12-31.我有一个在一段时间内有效的值,例如 2020-01-01 到 2020-12-31 的 1200 分钟加班时间。

format: Start date, End date -> total time in minutes格式:开始日期,结束日期 -> 总时间(以分钟为单位)

2020-01-01, 2020-12-31 -> 1200

What's the best way to be able to split it by day/week/month (i have a calendar table ready)?能够按天/周/月拆分它的最佳方法是什么(我准备好了日历表)?

在此处输入图像描述

The end goal is to present it on the graph cumulatively as well as additional data from the other table that will show progress against this target.最终目标是将其累积地呈现在图表上,以及其他表格中的其他数据将显示针对该目标的进展。

Additional data is logged per day in the format: DATE -> VALUE in minutes (not cumulative)每天以以下格式记录附加数据:DATE -> VALUE 以分钟为单位(非累积)

so (reflected in the 2nd chart below):所以(反映在下面的第二张图表中):

2020-02-05 -> 300 minutes
2020-05-22 -> 200 minutes
2020-07-12 -> 100 minutes
2020-09-02 -> 300 minutes
2020-10-05 -> 100 minutes
2020-11-09 -> 100 minutes
2020-12-12 -> 100 minutes

在此处输入图像描述

You could simply create an index column in your date table and then scale that one according to your desired trend:您可以简单地在日期表中创建一个索引列,然后根据您想要的趋势缩放该列:

Expected = RANKX ( 'Calendar', 'Calendar'[Date], , ASC ) * 1200 / 366

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM