Forum Discussion
Shiroe
4 years agoHelper I
AVG Forward Badge help!!!
Hi partners, I am desperate trying to solve this formula, I kindly request your help. This is the formula that I am using. If you can help me find the error and give a solution, I will be inf...
- 4 years ago
Hello my friend
After much suffering, this was the formula that worked. sorry to reply late. I leave the formula in case someone can serve you
AVG Forward Badge =VAR TotalBadge = CALCULATE(SUM('Consolidated budget'[Budget Value]),FILTER(ALL(Calendar),Calendar[Year]))VAR AcumBadge = CALCULATE([SumBudget],FILTER(ALLSELECTED(Calendar), Calendar[Month] <= MAX(Calendar[Month])))VAR Month = CALCULATE(MAX(Calendar[Month]),FILTER(ALLSELECTED(Calendar), Calendar[Month] <= MAX(Calendar[Month])))RETURNIF(SUM('Consolidated budget'[Budget Value])=0,BLANK(),CALCULATE (DIVIDE (TotalBadge-AcumBadge,12 - Month)))
AllisonKennedy
4 years agoCommunity Champion
Shiroe Does this get close to what you want?
AK_AvgForward Badge =
DIVIDE([_TotalBudget]-[_Cumulative], 12 - MAX('Calendar'[Month]))
Not sure if you want to use _Cumulative or if that should be using budget instead of Execution values???
Shiroe
4 years agoHelper I
Hello my friend
After much suffering, this was the formula that worked. sorry to reply late. I leave the formula in case someone can serve you
AVG Forward Badge =
VAR TotalBadge = CALCULATE(SUM('Consolidated budget'[Budget Value]),FILTER(ALL(Calendar),Calendar[Year]))
VAR AcumBadge = CALCULATE([SumBudget],FILTER(ALLSELECTED(Calendar), Calendar[Month] <= MAX(Calendar[Month])))
VAR Month = CALCULATE(MAX(Calendar[Month]),FILTER(ALLSELECTED(Calendar), Calendar[Month] <= MAX(Calendar[Month])))
RETURN
IF(SUM('Consolidated budget'[Budget Value])=0,BLANK(),CALCULATE (DIVIDE (TotalBadge-AcumBadge,12 - Month)))