Power BI - Extrapolate average monthly expenses to remaining months of the year - powerbi

I am trying to find a solution for the following problem and I do not have that much experience yet with Power BI. Therefore the help of this community would be much appreciated!
I want to use the monthly average of expenses for current year and extrapolate that value for the remaining months of the year.
On top of that I would like to have the possibility to multiply the extrapolated value for the months of may and nov with a value such as 1.1.
So if available expenses are available up to February, the extrapolated outcome should look like this:
Month Expense amount Multiply value
jan 10
feb 6
mrt 8
apr 8
may 8.8 1.1
jun 8
jul 8
sep 8
oct 8
nov 8.4 1.05
dec 8
Thanks in advance for thinking along with me!
Best,
Yoran

Related

how to subtract months giving a specific criteria

hi I have a rolling last 12 months in excel but I would like to exclude specific months so that way it will skip does months on the report. but the formula that I have wont work for every month. the months that I would like to skip is march 2020, april 2020, may 2020, june 2020. I have a drop list I which it will subtract the last 12 months.
enter image description here

Microsoft Power BI: Line chart last 13 weeks data for 3 years

I need to show line chart visual for last 13 years data for 2017,2018 and 2018. Can anyone tell me how I can achieve this?
I have a table called Profit
columns : Profit, WeekEndingDate, Year
I tried to create last 13 weeks measure but only showed 7 weeks as we are only 7 weeks in 2019 and also only showed data for 2018 and 2019.
I need to display each year individually with 13 weeks data.
Assuming these are linked to dates.
You can use the visual filters to show a date range from today and step back 3 months
Edit:
could you post the measure you created to get the last 13 weeks, it needs to be edited to ignore year. that should do the trick

How to get a weekly interval starting on mondays in sas proc timeseries?

The sas proc timeseries is able to compute weekly totals like this:
proc timeseries
data=work.sorttemptablesorted
out=work.weeklyagregated
;
id dateusedforstatistics interval=week zeromiss=none ;
var cases / accumulate=total setmissing=0;
by subject network;
run;quit;
It's almost perfect, but the only thing is that it agregates weeks starting on sundays
Sun, 25 Feb 2007 2
Sun, 4 Mar 2007 0
Sun, 11 Mar 2007 0
Sun, 18 Mar 2007 1
Sun, 25 Mar 2007 2
Sun, 1 Apr 2007 11
And I cannot find a solution to compute the same with weeks starting on mondays instead.
Is there a option for INTERVAL= that makes weeks start on mondays?
(using SAS9.3)
I don't have ETS, so don't know PROC TIMESERIES. With the INTCK() function, when you specify an interval you can also specify a "shift index", so e.g. week.2 would be weeks starting on Monday rather than the default week.1 which is weeks starting on Sunday. You could try changing to interval=week.2, but I took a look at the docs and didn't look like it was documented.

Getting the average for multiple samples for variables in SAS

I have a time-series data set with 5 minute resolution for 4 years in SAS. In this data set,a particular several variables (e.g., SRAD) is measured for each 5 minutes at 9 different stations (e.g., ST1,..., ST9). It means for each 5 minute interval (for example, Feb. 1, 2015 1:00:00 PM) there are 9 samples for this variable. Here is are some of my variables:
Interval TAIR SRAD Date Time Month Day Year Hour Minute
Now, I am wondoering how I can create a new dataset including the data of Feb 1 to Feb 10, 2015 from 13-19 (time) with average of each variable from all stations. In other words, for each 5 min interval I need the average of all variables instead of 9 variables associated with the 9 stations (ST). Like this:
Interval TAIR_ave SRAD_ave Date Time Month Day Year Hour Minute
I need to do it in SAS. It'd be really appreciated if you can help.
Best Regards,
Paalang

Is it possible to have a clock that counts up in days?

Recently I've been working on a file for python-3.1 and I was wondering if there is a way to have a clock that counts up in days, for example, if the set day was the 10th of July 2016 the screen would display the number 12 if the file was opened on the 22nd of July 2016