Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi.
I want to calculate cumulative sales pr. period pr. project pr. forecast that shows how many units sold at a given time. Historic forecast is ofcourse actual.
In excel this was easy to do in column E, but i need help to find the right formula in Power BI.
Excel formula: =SUMIFS($D$2:$D$35;$C$2:$C$35;"<="&C35;$B$2:$B$35;B35;$A$2:$A$35;A35)
Appriciate the help !
Forecast | Project | Period | Salesforecast | Accumulated sold pr. project/Q in forecast |
Q218 | Highend | 201807 | 10 | 10 |
Q218 | Highend | 201808 | 4 | 14 |
Q218 | Highend | 201809 | 8 | 22 |
Q218 | Highend | 201810 | 4 | 26 |
Q218 | Highend | 201811 | 2 | 28 |
Q218 | Highend | 201812 | 3 | 31 |
Q218 | Highend | 201901 | 4 | 35 |
Q218 | Highend | 201902 | 5 | 40 |
Q318 | Highend | 201807 | 2 | 2 |
Q318 | Highend | 201808 | 1 | 3 |
Q318 | Highend | 201809 | 3 | 6 |
Q318 | Highend | 201810 | 6 | 12 |
Q318 | Highend | 201811 | 4 | 16 |
Q318 | Highend | 201812 | 3 | 19 |
Q318 | Highend | 201901 | 10 | 29 |
Q318 | Highend | 201902 | 2 | 31 |
Q318 | Highend | 201903 | 4 | 35 |
Q318 | Highend | 201904 | 10 | 45 |
Q318 | Highend | 201905 | 2 | 47 |
Q318 | Highend | 201906 | 4 | 51 |
Q218 | Lowend | 201807 | 7 | 7 |
Q218 | Lowend | 201808 | 8 | 15 |
Q218 | Lowend | 201809 | 8 | 23 |
Q218 | Lowend | 201810 | 3 | 26 |
Q218 | Lowend | 201811 | 1 | 27 |
Q218 | Lowend | 201812 | 6 | 33 |
Q218 | Lowend | 201901 | 1 | 34 |
Q218 | Lowend | 201902 | 8 | 42 |
Q318 | Lowend | 201810 | 10 | 10 |
Q318 | Lowend | 201811 | 4 | 14 |
Q318 | Lowend | 201812 | 2 | 16 |
Q318 | Lowend | 201901 | 2 | 18 |
Q318 | Lowend | 201902 | 6 | 24 |
Q318 | Lowend | 201903 | 9 | 33 |
Q318 | Lowend | 201904 | 9 | 42 |
Q318 | Lowend | 201905 | 6 | 48 |
Q318 | Lowend | 201906 | 6 | 54 |
Solved! Go to Solution.
add new column
new column = sumx(filter('TableName';and(and(earlier([Period])>=[Period];earlier[forecast]=[forecast]);earlier([project])=[project]));[Salesforecast])
add new column
new column = sumx(filter('TableName';and(and(earlier([Period])>=[Period];earlier[forecast]=[forecast]);earlier([project])=[project]));[Salesforecast])
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
116 | |
82 | |
47 | |
42 | |
28 |
User | Count |
---|---|
186 | |
80 | |
72 | |
48 | |
45 |