topic Measure does not show total in Desktop
https://community.powerbi.com/t5/Desktop/Measure-does-not-show-total/m-p/514010#M240234
<P>Hello,</P><P> </P><P>I have a measure that works properly on each row, but does not show the total for all of the rows in the table. I need to multiple MBOE by NRI and divide the measure by 100. The Data Category for this measure is greyed out, so i can't force it to show a Sum.</P><P> </P><P>NRI_MBOE = IF(HASONEVALUE('Cost Centers'[Cost Center Key]),<BR /> CALCULATE(VALUES(EUR_BOE[MBOE])*VALUES('Well Info'[NRI])/100),<BR /> BLANK())</P><P> </P><P>Thanks for any suggestions.</P>Wed, 12 Sep 2018 14:56:07 GMTbheinrich2018-09-12T14:56:07ZMeasure does not show total
https://community.powerbi.com/t5/Desktop/Measure-does-not-show-total/m-p/514010#M240234
<P>Hello,</P><P> </P><P>I have a measure that works properly on each row, but does not show the total for all of the rows in the table. I need to multiple MBOE by NRI and divide the measure by 100. The Data Category for this measure is greyed out, so i can't force it to show a Sum.</P><P> </P><P>NRI_MBOE = IF(HASONEVALUE('Cost Centers'[Cost Center Key]),<BR /> CALCULATE(VALUES(EUR_BOE[MBOE])*VALUES('Well Info'[NRI])/100),<BR /> BLANK())</P><P> </P><P>Thanks for any suggestions.</P>Wed, 12 Sep 2018 14:56:07 GMThttps://community.powerbi.com/t5/Desktop/Measure-does-not-show-total/m-p/514010#M240234bheinrich2018-09-12T14:56:07ZRe: Measure does not show total
https://community.powerbi.com/t5/Desktop/Measure-does-not-show-total/m-p/514027#M240245
<P>Hey,</P>
<P> </P>
<P>your measure does not a value for the Total because there is no one value for</P>
<PRE>HASONEVALUE('Cost Centers'[Cost Center Key])</PRE>
<P>Try this measure instead:</P>
<PRE>IF(HASONEVALUE('Cost Centers'[Cost Center Key]),
CALCULATE(VALUES(EUR_BOE[MBOE])*VALUES('Well Info'[NRI])/100),
,//HASONEVALUE returns false
CALCULATE(
SUM(EUR_BOE[MBOE])
,ALLSELECTED('Cost Centers'[Cost Center Key])
)
*
CALCULATE(
SUM('Well Info'[NRI])
,ALLSELECTED('Cost Centers'[Cost Center Key])
)
/100
)</PRE>
<P>Hopefully this provides what you are looking for. Otherwise, please prepare a pbix with sample data, upload the file to onedrive or ropbox and share the link.</P>
<P> </P>
<P>Regards,<BR />Tom</P>Wed, 12 Sep 2018 15:11:31 GMThttps://community.powerbi.com/t5/Desktop/Measure-does-not-show-total/m-p/514027#M240245TomMartens2018-09-12T15:11:31ZRe: Measure does not show total
https://community.powerbi.com/t5/Desktop/Measure-does-not-show-total/m-p/514044#M240253
<P>Thank you Tom! This got me closer. There is a total showing up now, but it is not the correct total. </P>Wed, 12 Sep 2018 15:27:34 GMThttps://community.powerbi.com/t5/Desktop/Measure-does-not-show-total/m-p/514044#M240253bheinrich2018-09-12T15:27:34ZRe: Measure does not show total
https://community.powerbi.com/t5/Desktop/Measure-does-not-show-total/m-p/514054#M240258
<P>Hey,</P>
<P> </P>
<P>I'm sorry for that, please consider to prepare a pbix with sample data, and share the link to the uploaded file (uploaded to onedrive or dropbox)</P>
<P> </P>
<P>Regards,</P>
<P>Tom</P>Wed, 12 Sep 2018 15:41:22 GMThttps://community.powerbi.com/t5/Desktop/Measure-does-not-show-total/m-p/514054#M240258TomMartens2018-09-12T15:41:22ZRe: Measure does not show total
https://community.powerbi.com/t5/Desktop/Measure-does-not-show-total/m-p/514069#M240267
<P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 616px;"><img src="https://community.powerbi.com/t5/image/serverpage/image-id/119195i626A00C619453A7C/image-dimensions/616x262?v=v2" width="616" height="262" role="button" title="Capture.PNG" alt="Capture.PNG" /></span></P><P> </P><P>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...</P><P> </P><P>I need a <STRONG>Total Drillbit F&D</STRONG> = (Total sum of WI_DCC/Total sum of NRI_MBOE/1000)</P><P>*This measure should take the sum of WI_DCC coumn, divide by sum of NRI_MBOE column & divide by 1000.</P><P> </P><P><STRONG>NRI_MBOE</STRONG> = IF(HASONEVALUE('Cost Centers'[Agile Cost Center Key]), CALCULATE(VALUES(EUR_BOE[MBOE])*VALUES('Well Info'[NRI])/100)<BR /> , //HASONEVALUE returns false<BR /> CALCULATE(<BR /> SUM(EUR_BOE[MBOE])<BR /> , ALLSELECTED('Cost Centers'[Agile Cost Center Key])<BR /> )<BR /> *<BR /> CALCULATE(<BR /> SUM('Well Info'[NRI])<BR /> ,ALLSELECTED('Cost Centers'[Agile Cost Center Key])<BR /> )<BR /> /100<BR /> )</P><P> </P><P>*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. </P><P> </P><P><STRONG>WI_DCC</STRONG> = IF(HASONEVALUE('Cost Centers'[Agile Cost Center Key]),<BR /> CALCULATE([Actual]*VALUES('Well Info'[WI]) /100),<BR /> BLANK())</P><P> </P><P>*I need the total for this also, but as a sum of the existing rows for WI_DCC.</P><P> </P><P>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.</P><P> </P><P>I hope this makes sense!</P><P> </P><P> </P><P> </P>Wed, 12 Sep 2018 15:54:23 GMThttps://community.powerbi.com/t5/Desktop/Measure-does-not-show-total/m-p/514069#M240267bheinrich2018-09-12T15:54:23ZRe: Measure does not show total
https://community.powerbi.com/t5/Desktop/Measure-does-not-show-total/m-p/514812#M240594
<P>Hi <LI-USER uid="62397"></LI-USER>,</P>
<P> </P>
<P>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?</P>
<P> </P>
<P>Regards,</P>
<P>Frank</P>Thu, 13 Sep 2018 09:27:02 GMThttps://community.powerbi.com/t5/Desktop/Measure-does-not-show-total/m-p/514812#M240594v-frfei-msft2018-09-13T09:27:02Z