Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
|
Hi everyone!
I have the next table (example is above. First row has Headers)
The table represents number of a product units by number of months it stays in stock. So ENT shows us how much product comes into the stock. 0M - how much units remains before the end of the first month, 1M - how much units remains in stock more than 1 month but less then 2; 2M - more then 2 months but less then 3 etc.
Values in the ENT column are defined. COEF - shows the proportion of the group that will remains in stock one more month.
The values up to previous month (Columns '0M', '1M' etc) are filled manually in the source. Values for other months must be calculated like this: Value of the previous month * coef. So the June value is calculated on the base of the May value, the July value is calculated on the base of calculated June value, etc.
Coef = SUM(Column n+1[2st row : actual month row] SUM(Column n [1st row : actual month - 1 row])
Here is an exemple of desired result in excel (only the values must be calculated for each month until the end of the year)
Also Sum function will be flexivel such the the bottom cell of the interval will be linked to actual month (i.e. instead of =SUM(C2:C5) there will be something like = CALCULATE(SUM(C), FILTER(Datetable, Datetable[year] = year_now && Datetable[month] = month_now - 1))
How do I create a measure or a column that helps me with this?
I unsterstand how one could calculate the values for the following month but could you go into more detail on how to calculate the values for the rest of the year when the Values from C7 to C13 are missing in your exspected output?
In this case we are using the same COEF for the rest of the year. Such as for August we will multiply forecasted value for July and COEF that calculated in actual month. In other words we consider that the COEF will remain the same for the rest of the year.
So you are basically leaving the rest of the 0M Column blank and calculate everything using C16 and C6. Is that right?
Not exactly. The column C for blank cells is calculated using the values from the column B and Fixed coefficient. I have made alterations in the post to clarify this and some more explanations.
Then we use real value from previous month in C (C6) to calculate forecatsed value in D in the next month (D7), also we using forecated value for the next month in C(C7) to calculate forecasted value in D in two months (D8) etc.
Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.
https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
115 | |
108 | |
100 | |
38 | |
35 |
User | Count |
---|---|
149 | |
122 | |
76 | |
74 | |
52 |