Hi Fellow Power BI Users -
I’ve run into a little issue where i don’t seem to be getting the correct overall % value.
It works correctly for the individual ones but not for the overall grand total row (See screenshot below)
% Completed Target Achieved =
VAR completerisk =
DIVIDE (
[All Adviser Completed Premium],
[All Adviser Completed Premium Target],
0
)
VAR completeinvest =
DIVIDE (
[Adviser Selected Completed FUM (All)],
[All Adviser Completed FUM Target],
0
)
VAR TOTALPREMIUMFUM =
CALCULATE (
SUM ( 'Access DB Completions'[Annual Premium/FUM] ),
FILTER ( 'Access DB Completions', 'Access DB Completions'[Excluded FUM] = "No" )
)
VAR TARGETTOTAL =
CALCULATE (
SUM ( 'Access DB Targets'[trgtTargetValue] ),
FILTER ( 'Access DB Targets', 'Access DB Targets'[trgDescrip] = "Completion" )
)
VAR OVERALLPERCENTAGE =
DIVIDE ( TOTALPREMIUMFUM, TARGETTOTAL, 0 )
RETURN
SWITCH (
TRUE (),
[New Business Lodgement Type] = "Investment", completeinvest,
[New Business Lodgement Type] = "Risk", completerisk,
OVERALLPERCENTAGE
)
I feel it is an issue with the 'OVERALLPERCENTAGE ’ variable calculation
Thanks