<?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 Sum total rows that have the same expression in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-rows-that-have-the-same-expression/m-p/2920782#M95775</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have DocumentID, LineNo and Amount as columns.&lt;/P&gt;&lt;P&gt;I want to sum all DocumentID's Amount that have a specific expression on LineNo. The result from the picture should be the sum of blue values, because only does DocumentIDs have "test1" on LineNo.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Nov 2022 07:45:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-11-22T07:45:01Z</dc:date>
    <item>
      <title>Sum total rows that have the same expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-rows-that-have-the-same-expression/m-p/2920782#M95775</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have DocumentID, LineNo and Amount as columns.&lt;/P&gt;&lt;P&gt;I want to sum all DocumentID's Amount that have a specific expression on LineNo. The result from the picture should be the sum of blue values, because only does DocumentIDs have "test1" on LineNo.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 07:45:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-rows-that-have-the-same-expression/m-p/2920782#M95775</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-22T07:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sum total rows that have the same expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-rows-that-have-the-same-expression/m-p/2920859#M95780</link>
      <description>&lt;DIV&gt;try to create a measure with the code below:&lt;DIV&gt;&amp;nbsp;&lt;DIV&gt;Test1Amount =&lt;DIV&gt;CALCULATE(&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; SUM(TableName[Amount]),&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;TableName[LineNo] = "test1"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;)&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;makes sense?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Nov 2022 08:09:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-rows-that-have-the-same-expression/m-p/2920859#M95780</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-11-22T08:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sum total rows that have the same expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-rows-that-have-the-same-expression/m-p/2920879#M95783</link>
      <description>&lt;P&gt;No, this measure will sum only rows with "test1". This will sum only green rows, I need to sum blue rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 08:15:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-rows-that-have-the-same-expression/m-p/2920879#M95783</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-22T08:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sum total rows that have the same expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-rows-that-have-the-same-expression/m-p/2920907#M95785</link>
      <description>&lt;P&gt;&lt;SPAN&gt;try to create a measure with the code below:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;DIV&gt;Test1Amount =&lt;DIV&gt;CALCULATE(&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; SUM(TableName[Amount]),&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;TableName[DocumentID] in {"SCM234", "SCM235", "SCM236"}&lt;/SPAN&gt;&lt;DIV&gt;)&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Nov 2022 08:22:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-rows-that-have-the-same-expression/m-p/2920907#M95785</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-11-22T08:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sum total rows that have the same expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-rows-that-have-the-same-expression/m-p/2920931#M95788</link>
      <description>&lt;P&gt;This is just a sample. I have millions of documents and I don't know which one of them has "test1" on LineNo.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 08:29:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-rows-that-have-the-same-expression/m-p/2920931#M95788</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-22T08:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sum total rows that have the same expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-rows-that-have-the-same-expression/m-p/2921026#M95791</link>
      <description>&lt;P&gt;Aha, then try this:&lt;/P&gt;&lt;DIV&gt;&l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;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;IDList&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;i tried and it worked like this:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used some simplified data like below:&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Nov 2022 09:09:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-rows-that-have-the-same-expression/m-p/2921026#M95791</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-11-22T09:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sum total rows that have the same expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-rows-that-have-the-same-expression/m-p/2921110#M95797</link>
      <description>&lt;P&gt;It works! Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 09:09:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-rows-that-have-the-same-expression/m-p/2921110#M95797</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-22T09:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sum total rows that have the same expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-rows-that-have-the-same-expression/m-p/2921119#M95798</link>
      <description>&lt;P&gt;Only in the last chat, came I to understand your expection. The requirement clarification is soooo important.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 09:12:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-total-rows-that-have-the-same-expression/m-p/2921119#M95798</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-11-22T09:12:58Z</dc:date>
    </item>
  </channel>
</rss>

