How does one redistribute a calculated total across a range of dates in Power BI?

耗尽温柔 提交于 2021-01-29 07:07:19

问题


My firm is trying to forecast what the business landscape will look like after the current resource shortages (mainly labor, in our instance) return to normal.

To that end, I have made a report that I want to use to show how our business forecasting needs to change relative to the length of time that we are accumulating backlogged orders that we cannot fill.

In the image you can see the original projection forecast one both the line graph and the table.

Forecast 2020 = CALCULATE(SUM(Orders[+5% Forecast])

I have a calculated column that returns 80% of our 2020 Forecast. I run a measure against that to draw out just the dates that we are unable to fill orders. (Which is controlled by the date slider in the corner)

Order Backlog = CALCULATE(SUM(Orders[80% Forecast]),FILTER(Orders,Order[Date]>=[Service Stop Date]&&Orders[Date]<=[Service Resume Date]))

When I subtract the Forecast 2020 measure from the from the Order Backlog measure, I get a nice result.

Adjusted Forecast = [Forecast 2020]-[Order Backlog]

Next I want to add the Total Number of Backlogged Cases (94404 for this date range) evenly across the next 120 days AFTER the shortage ends. The idea being, of course, that we will see at least a percentage return of those order volumes in our backlog after we return to business as usual.

I am open to any and all suggestions.

来源:https://stackoverflow.com/questions/61258211/how-does-one-redistribute-a-calculated-total-across-a-range-of-dates-in-power-bi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!