Forecasting using Custom visuals in Power BI using measures - powerbi-desktop

I am trying to create forecast for next 6 month sales. I am using visual analytics for my forecast.
It is showing me the forecast for Next 6 months.
I don't have employees that are consistent in the data. Like, I am having 28 agents/ employees working in January month and 5 employees working in June month. Here, the employees are not constant in the data. therefore, the above approached method is not the best way for forecast for future months.
How can I make forecast for next n months using measures or columns in Power BI for these types of Inconsistent Hiring and Firing of employees ?

Related

How to disaggregate historical data in Power Query?

I would much be thankful if someone can help me with this situation.
I have weekly reports of sales by product and store, but these reports are aggregated by year (each report contains sales by year to current date) and I intend to disaggregate the data so I can have the sales of each week of the year in my reports.
Currently I am doing this with an excel formula and I want to pass this to power query / Language M
Here it is the formula in the image
enter image description here
Here is the explanation of the columns
Source.Name.1= The number of the report according to the week
SKU= Product code
Ventas YTD= Sales by year to current date
No.Tienda.number.1= Code of the store
Ventas semana= weekly sales using the excel formula
I currently have a mental block and I would appreciate of you could guide me through the problem

Managing Fixed Cost in Power BI

In short, how do i calculate yearly unit production cost based on fixed cost divided by amount produced?
I am making dashboard in power BI for a video production studio company. They have a fixed cost per month and year based on the salary of the employees, production equipment etc. Lets say that the monthly fixed cost is $20 000. As tables show below i have a column called videos recorded, which i need to tie to the month, and then divided on the fixed cost which will be cost per video on a given month and in summary production cost per video in year 2022. So i want to visualize on a card or table, for July fixed cost were $20.000, we made 30 videos which is $667 per video.
Tables below

Predicting Monthly Brand Sales (Excel 2016)

I'm currently looking at daily sales data of a specific brand over the course of the past year. My objective is to create a formula to roughly estimate the sales growth for future months.
My project isn't going very well, as the brand is very volatile in monthly sales, making it impossible to predict with a basic linear formula. I'm arriving at the conclusion that a single year's worth of sales isn't enough data, and I may have to result to provide a specific formula depending on the month. Is there anything I haven't thought of?
Note: Recording of sales start on the 15th of every month
Your sales are showing seasonality. Consider using sasonal ARIMA models.

How can I avoid a Div/0 error in my Excel (2010) pivot table when I'm calculating an EBIT Margin

I'm using Excel 2010 have developed a pivot table for some financial modeling. The model includes sales and expenses for shared services teams and sales teams. I'm trying to calculate a EBIT margin for the total company using a Calculated Item. When I do this, I'm getting a DIV/0 error.
My formula is very straight forward:
(Sales - Expense) / Sales
I believe I'm getting the error because the shared services teams do not have sales, thus the Div/0 error.
Is there a way to force the formula to perform the calculation on an aggregate basis and thus avoid the error.
use the iferror-function
= IFERROR((Sales - Expense) / Sales, 0)

Powerpivot data that spans over multiple filter values

I have outage information stored in Excel Powerpivot. I am trying to use Powerpivot to display and calculate uptime availability per month, however, I am a bit stuck with outages that spans over two months.
My current setup:
Outage table has four columns: Application, Outage Start Time, Outage End Time, Duration. Duration is a calculated column that is the difference between the end time and start time.
The Outage Start Time is connected to a date table. I have slicers per month, so users can select the month they like to see availablity data, and powerpivot table will show availability for that month for different applications.
If the outage start time and end time falls within the same month, then availablity calculation is correct. However, for example, if the outage starts at the end of July and ends at the beginning of August, then this is only considered to be an outage for July (because of how the start time is tied to the date table). Ideally, I would like to see the duration of this outage split up over both July and August. Is this possible?
Thanks!
Tallie,
It's absolutely possible! I solved it by creating 2 calculated columns on the Outage Table:
One to determine the duration of the outage in the current month:
=if([End]>EOMONTH([Start],0),EOMONTH([Start],0)-[Start],[End]-[Start])
And another to determine the outage in the following month:
=if([End]>EOMONTH([Start],0),[end]-EOMONTH([Start],0),blank())
It then becomes the slightly more complex where I want to create a measure that not only sums the current month outage but also the following month outage from the previous month. I began by creating a measure that sums each of the 2 calculated columns respectively - this is good practice as it helps a logical build up and improves performance:
[Cur Month Dur] = sum(Outage[Cur Month Outage])
[Following Month Dur] = sum(Outage[Following Month Outage])
I then add to the [Cur Month Dur] a filtered version of the [Following Month Dur] which opens the filter context of the measure and looks in the date table for the previous month (must be numeric):
=[Cur Month Dur] +
CALCULATE([Following Month Dur],
FILTER(
ALL(dimDate),
dimDate[Month Number]=max(dimDate[Month Number])-1
)
)
You can find a detailed explanation of the method here.
I uploaded my workings to SkyDrive which you might find useful.
HTH
Jacob

Resources