<?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 Total Sum of a column as a measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Sum-of-a-column-as-a-measure/m-p/4091258#M162370</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;In this table, I wasn 80Mil against all the machinetypes. I created the measure electricity total usuage like this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Electricity Total Usage =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Fact ResourceUsage'&lt;/SPAN&gt;&lt;SPAN&gt;[Usage]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'Fact ResourceUsage'&lt;/SPAN&gt;&lt;SPAN&gt;[ResourceTypeKey]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Fact ResourceUsage'&lt;/SPAN&gt;&lt;SPAN&gt;[MachineTypeKey]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;But its just giving the total consumption of that particular machine type&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 09 Aug 2024 08:52:36 GMT</pubDate>
    <dc:creator>NKTMS</dc:creator>
    <dc:date>2024-08-09T08:52:36Z</dc:date>
    <item>
      <title>Total Sum of a column as a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Sum-of-a-column-as-a-measure/m-p/4091258#M162370</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;In this table, I wasn 80Mil against all the machinetypes. I created the measure electricity total usuage like this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Electricity Total Usage =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Fact ResourceUsage'&lt;/SPAN&gt;&lt;SPAN&gt;[Usage]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'Fact ResourceUsage'&lt;/SPAN&gt;&lt;SPAN&gt;[ResourceTypeKey]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Fact ResourceUsage'&lt;/SPAN&gt;&lt;SPAN&gt;[MachineTypeKey]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;But its just giving the total consumption of that particular machine type&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Aug 2024 08:52:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Sum-of-a-column-as-a-measure/m-p/4091258#M162370</guid>
      <dc:creator>NKTMS</dc:creator>
      <dc:date>2024-08-09T08:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Total Sum of a column as a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Sum-of-a-column-as-a-measure/m-p/4091456#M162378</link>
      <description>&lt;P&gt;Try this measure&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Electricity Total Usage =
CALCULATE(
    SUM('Fact ResourceUsage'[Usage]),
    'Fact ResourceUsage'[ResourceTypeKey] = 1,
    REMOVEFILTERS('Fact ResourceUsage'[MachineTypeKey])
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 09 Aug 2024 10:36:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Sum-of-a-column-as-a-measure/m-p/4091456#M162378</guid>
      <dc:creator>aduguid</dc:creator>
      <dc:date>2024-08-09T10:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Total Sum of a column as a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Sum-of-a-column-as-a-measure/m-p/4094564#M162491</link>
      <description>&lt;P&gt;Hi&amp;nbsp;aduguid&amp;nbsp;,thanks for the quick reply, I'll add more.&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="582462" data-lia-user-login="NKTMS" class="lia-mention lia-mention-user"&gt;NKTMS&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Make sure that the field you use in your visuals is from the fact table and not from the dimension table.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Or check if you are referencing the wrong column in DAX.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If I understand you wrongly, please provide simple data and show the expected results in pictures.&lt;/P&gt;
&lt;P&gt;&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" rel="noopener"&gt;How to provide sample data in the Power BI Forum - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Wenbin Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 06:05:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-Sum-of-a-column-as-a-measure/m-p/4094564#M162491</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-12T06:05:28Z</dc:date>
    </item>
  </channel>
</rss>

