Forum Discussion
Anonymous
6 years agoNot applicable
How to spread value between two dates ?
Hi everyone, I need some help on my Power BI. I am trying to spread the value of a project over several months, to know exactly how much I will have to produce every month. For exemple, if I...
v-lid-msft
6 years agoCommunity Support
Hi Anonymous ,
We can create a calculated table and a measure to meet your requriement:
Calculated Table:
DateTable = CALENDAR(MIN('Table'[Order Date]),MAX('Table'[Delivery]))
Measure:
MonthAmount = SUMX(DISTINCT('Table'[Project]),
CALCULATE(SUM ( 'Table'[Amount] ))
/ DATEDIFF ( MIN ( 'Table'[Order Date] ), MAX ( 'Table'[Delivery] ), DAY )
* COUNTROWS(INTERSECT('DateTable',CALENDAR(MIN('Table'[Order Date])+1,MAX('Table'[Delivery])))))
Best regards,
thomasgee
4 years agoRegular Visitor
This solution is really useful for my use case too. I don't suppose you would mind taking the time to explain how it works? Or link to the material where you got this from yourself?