Forum Discussion
Measure does not show total
Thank you Tom! This got me closer. There is a total showing up now, but it is not the correct total.
I figured out that the calculation for NRI_MBOE is taking the total for each column, so it is using the sum of the NRI (which i don't want). I should back up and start from the beginning on my full needs...
I need a Total Drillbit F&D = (Total sum of WI_DCC/Total sum of NRI_MBOE/1000)
*This measure should take the sum of WI_DCC coumn, divide by sum of NRI_MBOE column & divide by 1000.
NRI_MBOE = IF(HASONEVALUE('Cost Centers'[Agile Cost Center Key]), CALCULATE(VALUES(EUR_BOE[MBOE])*VALUES('Well Info'[NRI])/100)
, //HASONEVALUE returns false
CALCULATE(
SUM(EUR_BOE[MBOE])
, ALLSELECTED('Cost Centers'[Agile Cost Center Key])
)
*
CALCULATE(
SUM('Well Info'[NRI])
,ALLSELECTED('Cost Centers'[Agile Cost Center Key])
)
/100
)
*I don't want the total to calculate using the sum totals for NRI, but it should use the sum total for the MBOE column. RIght now, this result is correct by row, just not the total.
WI_DCC = IF(HASONEVALUE('Cost Centers'[Agile Cost Center Key]),
CALCULATE([Actual]*VALUES('Well Info'[WI]) /100),
BLANK())
*I need the total for this also, but as a sum of the existing rows for WI_DCC.
Once i have the correct column totals for NRI_MBOE & WI_DCC, then i can should be able to generate the correct Drillbit F&D measure.
I hope this makes sense!
- v-frfei-msft7 years agoCommunity Support
Hi bheinrich,
As the formulas you shared, there are three tables in your model I think. could you please share the sample data and tell me the relationship between tables?
Regards,
Frank