monthly growth
3 TopicsProjecting units sold for future months based on average historical growth
Hello Community! This is my first post on this forum, so I do apologize in advance if anything is unclear. I will do my best to explain what I am trying to achieve and what I have done so far. I am drawing data through an API that has all the information about the orders we received. This includes data such as the type of products, quantity for each product, when the order was created, total value of the order, etc. The goal of the project that I am trying to accomplish is to project in the future how many units in total we will sell. The other projection will be what will our projected sales be. Note that both of these are different since the price for an individual product varies from customer to customer. The projected values table must also include the breakdown of the total cost of individual raw materials we use, based on the number of units sold. I have the individual costs of the raw materials set up using measures per single product, so depending on the product and forecasted value, I plan on just multiplying the forecasted quantity by the costs to generate those sets of values corresponding to each month. We plan on forecasting future values in 3 ways. The first is to take the historical growth of each month, average it, and use that to project into the future. The second way is to take the growth based on the last two months and project it forward. Finally, we plan on selecting an expected growth percentage and projecting it forward based on the last month's value. The part that I am stuck on is trying to generate future values. I am using this post as a reference to accomplish this task. To create the projection table, I used this: Forecast Table = var _last=MAX(OrdersReceivedLL_AllData[DateTemp]) return ADDCOLUMNS( FILTER(CALENDAR(_last,EOMONTH(_last,12)),DAY([Date])=1),"Month Year", FORMAT([Date],"mmmm yyyy")) The "12" bolded in the code above, I tried to insert a parameter to select how far in the future I want to forecast, but it didn't work. I made sure it's a type INT and looked for posts but to no avail. I decided to manually put 12 for now. The table above is what is generated. Now to add additional columns, what I am trying to do is the code below: Forecasted Qty = var _lastDate=MAXX(ALL('OrdersReceivedLL_AllData'),[DateTemp]) var _lastValue=LOOKUPVALUE(OrdersReceivedLL_AllData[line_items.quantity],'OrdersReceivedLL_AllData'[Month Year],[Month Year]) var _monthDiff= DATEDIFF(_lastDate,[Date],MONTH) return IF(_lastValue=BLANK(), POWER(1+('Expected Growth'[Expected Growth Value]/100),_monthDiff) *SUM('OrdersReceivedLL_AllData'[line_items.quantity]), _lastValue) The error I get is "A table of multiple values was supplied where a single value was expected." My assumption is that the code in bold, is not monthly data, but individual lines of data. I think I probably need to figure out a way to sum the data based on the "month year" and the look-up value should grab that. I created a column called month year in my data set, but not sure how to sum it up based on that, within the lookup function. Below is a snippet of what I managed to accomplish by using filters and putting them on a table. Not sure how I can go about using these values automatically in DAX when there is new data coming in. I still have some ways to go before I can successfully complete this project, but still fairly new to Power Bi and do not have anyone that I can talk to or consult. That's when I remembered that is exactly why this wonderful community is here. I am sorry that I am not sharing the data since the information is a bit sensitive and there are about 120 columns or so. I would be more than happy to get on a one-on-one if anyone is willing to assist, but of course, I don't know if anyone would want to 😅. If you managed to read till here, I sincerely appreciate your time. Any and all assistance, tips, or resource would be greatly appreciated. Thank you very much!557Views0likes0Commentshow to calculate month over month for current month and month to date in previous year
im working on a report that shows kpis performance over : days-weeks-months-quarters-years in order to add contex to my kpi im trying to add comparisons to periods such as : month over month and month to date the problem is when im showing the trend for monthly performace , the current month didnt end yet and if i want to calculate month over month value doesnt make sense example of how the graph looks like : x-axis: months , (assuming current month is April2021) y-axis: total orders month over month would be (180-280/280)*100=-35.7% question1: how would i use this calculation for the current month if its not complete yet? question 2 : how can i find month to date value for same month last year. assuming we are now in April2021 , how can i calculate month to date value for april2020 so i can compare it with the current value in this year?Solved2KViews0likes6Commentshow to calculate growth as column with categories
Hello . I would like to ask whether it is possible to add the monthly and annual change if the data has more than one value for the same month, for example sales 1, sales 2, and sales 3, and 3 citys we have 6 January. How can we add a column and define the monthly change even though there are 3 months at the same time year month city date sales 2019 January Jeddah 1/1/2019 sale 1 55 2019 January Jeddah 1/1/2019 sale2 102 2019 January Jeddah 1/1/2019 sale 3 84 2019 January Riyadh 1/1/2019 sale 1 96 2019 January Riyadh 1/1/2019 sale2 93 2019 January Riyadh 1/1/2019 sale 3 91 2019 February Jeddah 2/1/2019 sale 1 98 2019 February Jeddah 2/1/2019 sale2 103 2019 February Jeddah 2/1/2019 sale 3 94 2019 February Riyadh 2/1/2019 sale 1 92 2019 February Riyadh 2/1/2019 sale2 94 2019 February Riyadh 2/1/2019 sale 3 96Solved2.2KViews0likes6Comments