Forum Discussion
mauroanelli
8 years agoHelper I
split value monthly between two dates
hi all, i have datas like this project date start date end total value a 01/01/2018 31/12/2018 12 b 01/01/2018 31/12/2018 12 c 01/01/2018 31/12/2018 12 d 01/01/2018 31...
- 8 years ago
Hi mauroanelli
You can try using this calculated Table in DAX
From the Modelling Tab >>>NEW TABLE
Table = VAR temp = ADDCOLUMNS ( GENERATE ( Table1, GENERATESERIES ( MONTH ( Table1[date start] ), MONTH ( Table1[date end] ) ) ), "No_of_Months", DATEDIFF ( Table1[date start], Table1[date end], MONTH ) + 1 ) RETURN SELECTCOLUMNS ( temp, "Project", [project], "Month", EOMONTH ( [date start], [Value] - 2 ) + 1, "MonthlyValue", [total value] / [No_of_Months] ) - 8 years ago
Zubair_Muhammad
8 years agoCommunity Champion
mauroanelli
8 years agoHelper I
thank you very much!!! it works perfectly