<?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: Sum of a measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-a-measure/m-p/3222178#M117809</link>
    <description>&lt;P&gt;Amazing, that worked!!! Thank you so much.&lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2023 13:12:03 GMT</pubDate>
    <dc:creator>Pharms</dc:creator>
    <dc:date>2023-05-05T13:12:03Z</dc:date>
    <item>
      <title>Sum of a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-a-measure/m-p/3221742#M117767</link>
      <description>&lt;P&gt;Hi all and thank you for any advice&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Relatively new to all this and have hit a wall! I am working with SQL as my data source and I have three tables, filtered by the slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The name is me so not too worried that is showing! The first table is a countrows of the class code, the second is a countrows of user id in those classes. The third contains a measure that multiplies periods by pupils, by class. All good so far. The totals in the first two tables are fine, and I understand why the total in the third table is what it is, but that is not what I want. My plan is to turn the total off in the third column and what I would like to do is have the sum of the commitments column of the filtered data in a card.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have read quite a few posts but struggling to make sense of it all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ANy help gratefully recieved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies if I have waffled!&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 09:26:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-a-measure/m-p/3221742#M117767</guid>
      <dc:creator>Pharms</dc:creator>
      <dc:date>2023-05-05T09:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-a-measure/m-p/3221807#M117770</link>
      <description>&lt;P&gt;I think you want something like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Commitment by class =
SUMX ( VALUES ( 'Table'[Class] ), [Pupils] * [Periods] )
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 05 May 2023 09:56:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-a-measure/m-p/3221807#M117770</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-05-05T09:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-a-measure/m-p/3222142#M117800</link>
      <description>&lt;P&gt;Thank you for your help so far. I went with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Commitments by class v2 = &lt;/SPAN&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Timetable Schedule'&lt;/SPAN&gt;&lt;SPAN&gt;[txtCode]&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;SPAN&gt;COUNTA&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Set Lists'&lt;/SPAN&gt;&lt;SPAN&gt;[txtSchoolID]&lt;/SPAN&gt;&lt;SPAN&gt;) * &lt;/SPAN&gt;&lt;SPAN&gt;COUNTA&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Timetable Schedule'&lt;/SPAN&gt;&lt;SPAN&gt;[txtCode]&lt;/SPAN&gt;&lt;SPAN&gt;) )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;but that gave me an even larger total! Think I am going wrong somewhere.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 May 2023 12:58:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-a-measure/m-p/3222142#M117800</guid>
      <dc:creator>Pharms</dc:creator>
      <dc:date>2023-05-05T12:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-a-measure/m-p/3222153#M117801</link>
      <description>&lt;P&gt;If you're not using a measure then you need CALCULATE to force context transition. Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Commitments by class v2 =
SUMX (
    VALUES ( 'Timetable Schedule'[txtCode] ),
    CALCULATE ( COUNTA ( 'Set Lists'[txtSchoolID] ) )
        * CALCULATE ( COUNTA ( 'Timetable Schedule'[txtCode] ) )
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 05 May 2023 13:01:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-a-measure/m-p/3222153#M117801</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-05-05T13:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-a-measure/m-p/3222178#M117809</link>
      <description>&lt;P&gt;Amazing, that worked!!! Thank you so much.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 13:12:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-a-measure/m-p/3222178#M117809</guid>
      <dc:creator>Pharms</dc:creator>
      <dc:date>2023-05-05T13:12:03Z</dc:date>
    </item>
  </channel>
</rss>

