Forum Discussion
extrapolating by using a moving average
total
2018 5358 X Y Z
2016 5855 8413 0,696 2558
2015 5433 7908 0,687 2475
2014 5351 7658 0,699 2307
CALCULATE(
sum('Intel'[Balance]);
DATESYTD(Calendar[Date]); Month(Calendar[Date]) < MONTH(NOW())
)
end total is the end total for each year which is a simple
SUM('Intel'[Balance])
Which I get by dividing the running total by the end total
So in the end X should be 8007
Y should be 0,669
and Z should be 2649
Hi mcobelens,
Based on my test, you coud refer to below formula:
X = CALCULATE([Running total upto current month for each year],'Calendar'[Year]=2018)/[Y]
Y = var a=CALCULATE([% of totaal],FILTER('Calendar','Calendar'[Year]=2014)) var b=CALCULATE([% of totaal],FILTER('Calendar','Calendar'[Year]=2015)) var c=CALCULATE([% of totaal],FILTER('Calendar','Calendar'[Year]=2016)) var d=CALCULATE([% of totaal],FILTER('Calendar','Calendar'[Year]=2017)) return (a+b+c+d)/4Z = [X]-CALCULATE([Running total upto current month for each year],'Calendar'[Year]=2018)
Result:
You could also download the pbix file to have a view.
Regards,
Daniel He
9 Replies
- v-danhe-msftMicrosoft Employee
Hi mcobelens,
From your description, I could not find any information about the 'Intel'[Balance], and I could not understand your data structure, if you want to calculate the End total, the X should be calculated like the other value in this column, could you please offer me more information and share the pbix file if possible?
Regards,
Daniel He
- mcobelensFrequent Visitor
Hi Daniel, How can I upload a pibx? I created an example but have no ideo on how to upload it?
- AnonymousNot applicable
You can upload the file to One Drive,DropBox Drive or another and publish the link.
- mcobelensFrequent Visitor
So, any idea Daniel?
- v-danhe-msftMicrosoft Employee
Hi mcobelens,
Based on my test, you coud refer to below formula:
X = CALCULATE([Running total upto current month for each year],'Calendar'[Year]=2018)/[Y]
Y = var a=CALCULATE([% of totaal],FILTER('Calendar','Calendar'[Year]=2014)) var b=CALCULATE([% of totaal],FILTER('Calendar','Calendar'[Year]=2015)) var c=CALCULATE([% of totaal],FILTER('Calendar','Calendar'[Year]=2016)) var d=CALCULATE([% of totaal],FILTER('Calendar','Calendar'[Year]=2017)) return (a+b+c+d)/4Z = [X]-CALCULATE([Running total upto current month for each year],'Calendar'[Year]=2018)
Result:
You could also download the pbix file to have a view.
Regards,
Daniel He