<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Calculate Toner Usage - Total row doesn't sum up. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Toner-Usage-Total-row-doesn-t-sum-up/m-p/3870929#M151202</link>
    <description>&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Apr 2024 11:08:35 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-04-26T11:08:35Z</dc:date>
    <item>
      <title>Calculate Toner Usage - Total row doesn't sum up.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Toner-Usage-Total-row-doesn-t-sum-up/m-p/3868038#M151113</link>
      <description>&lt;P&gt;Dear Members,&lt;/P&gt;&lt;P&gt;I got stucked with what seems to be an easy ride, but apparently is above my skillset and somehow wasn't able to find out correct answer.&lt;/P&gt;&lt;P&gt;What I'm trying to calculate is how many toner units I will need based on the number of pages I'm printing per month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;- MIF = Machine in field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;- AMPV = Average Monthly print volume&lt;/P&gt;&lt;P&gt;&amp;nbsp;- Black Yield = Number of pages a toner can Print.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formulas and model it is simple...&lt;/P&gt;&lt;P&gt;&amp;nbsp;Tables:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Print Volumes: it tells me, for each country, month and model, how many pages are printed.&lt;/LI&gt;&lt;LI&gt;Machine table: It tells me, how many machines of each model has each customer.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Potential Units = ( Number of pages printed per month / Toner Yield) * Number of machines&lt;/P&gt;&lt;P&gt;&amp;nbsp; Potential Units =&amp;nbsp;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;PrintVolumes&lt;/SPAN&gt;&lt;SPAN&gt;[AMPV_Black]&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;PrintVolumes&lt;/SPAN&gt;&lt;SPAN&gt;[Black_Yield]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;)*&lt;/SPAN&gt;&lt;SPAN&gt;[# of MIF_Gap]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you see below table, the calculation is working well in the level of model (lowest one) but when I go one level up, the sum up values doesn't work. You could see the Potential Toner Units BK and the Pages columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After thinking for a bit, I noticed is a BODMAS issue and I need to evaluate the expression for each row using SUMX but I'm not&amp;nbsp;able to get the right DAX expression.&lt;/P&gt;&lt;P&gt;Incorrect Formula (actual) --&amp;gt; Potential = SUM(AMPV)/AVG(Yield) * Sum(MIF)&lt;/P&gt;&lt;P&gt;Correct Formula (future) --&amp;gt;Potential = sum(AMPV * MIF)/AVG(Yield)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be more than welcomed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 10:40:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Toner-Usage-Total-row-doesn-t-sum-up/m-p/3868038#M151113</guid>
      <dc:creator>Morganius</dc:creator>
      <dc:date>2024-04-25T10:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Toner Usage - Total row doesn't sum up.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Toner-Usage-Total-row-doesn-t-sum-up/m-p/3869462#M151154</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information or anything not related to the issue or question. &lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 23:20:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Toner-Usage-Total-row-doesn-t-sum-up/m-p/3869462#M151154</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-04-25T23:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Toner Usage - Total row doesn't sum up.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Toner-Usage-Total-row-doesn-t-sum-up/m-p/3870839#M151195</link>
      <description>&lt;P&gt;I tried to post the example several times but I alwas get an error...&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 10:28:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Toner-Usage-Total-row-doesn-t-sum-up/m-p/3870839#M151195</guid>
      <dc:creator>Morganius</dc:creator>
      <dc:date>2024-04-26T10:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Toner Usage - Total row doesn't sum up.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Toner-Usage-Total-row-doesn-t-sum-up/m-p/3870929#M151202</link>
      <description>&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 11:08:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Toner-Usage-Total-row-doesn-t-sum-up/m-p/3870929#M151202</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-04-26T11:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Toner Usage - Total row doesn't sum up.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Toner-Usage-Total-row-doesn-t-sum-up/m-p/3871043#M151212</link>
      <description>&lt;P&gt;here the link of a report with the sample case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1cnmoOabh-sz2oLaHskd0k6ga1WowaJtx/view?usp=drive_link" target="_blank"&gt;https://drive.google.com/file/d/1cnmoOabh-sz2oLaHskd0k6ga1WowaJtx/view?usp=drive_link&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 12:16:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Toner-Usage-Total-row-doesn-t-sum-up/m-p/3871043#M151212</guid>
      <dc:creator>Morganius</dc:creator>
      <dc:date>2024-04-26T12:16:39Z</dc:date>
    </item>
  </channel>
</rss>

