Forum Discussion

Alfista1997's avatar
Alfista1997
Frequent Visitor
3 years ago

How to Fix Measure to Get Accurate Subtotal

How can I get the measure below to give me a correct subtotal? The individual values are correct, however, I'd like to be able to remove the PDN field and see a total of $189,200.

 

 

Measure Test =

var _ROE = (SUM(f_BFS_DEALER_PROF[CONS_NET_INCOME]) / SUM(f_BFS_DEALER_PROF[CONS_ROE_DENOM])) * .09 / .76
var _PF1 = SUM('f_BFS_DEALER_PROF'[RETAIL_NAALR]) / SUM ('f_BFS_DEALER_PROF'[RETAIL_SSNAR])
var _PF2 = SUM('f_BFS_DEALER_PROF'[RETAIL_NAALR]) / SUM ('f_BFS_DEALER_PROF'[RETAIL_SSNAR])
var _PFLoss = SUM(f_PROFORMA_LOSS[LTD_ACTUAL_LOSS]) / SUM (f_PROFORMA_LOSS[PRICED_NAALR])
var _SSNAR = SUM(f_BFS_DEALER_PROF[CONS_SSNAR])

RETURN  _SSNAR * ( (_ROE + ((_PF2 * _PFLoss) - _PF1)) * 0.76 / 0.09 )

1 Reply