<?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: Create a calculated table with distinct and sum of values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-table-with-distinct-and-sum-of-values/m-p/962661#M11321</link>
    <description>The formula to use depends on the cardinality of your table. If the table is big, then any formula with CALCULATE will be very slow due to too many context transitions. Instead, FILTER should be used with suitable conditions.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
    <pubDate>Fri, 06 Mar 2020 17:52:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-03-06T17:52:28Z</dc:date>
    <item>
      <title>Create a calculated table with distinct and sum of values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-table-with-distinct-and-sum-of-values/m-p/961583#M11247</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;,&lt;/P&gt;&lt;P&gt;I'm trying to create a calculated table from another table (the original actually has more columns) like this example:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;to reach this final state in my new table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;is the sum of the value but for distinct client, so far i just have been able to create the first column using:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;table = DISTINCT(OriginalTable[Client])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;create a measure will not do the work because i will be adding new columns to this modified table to be able to create a specific chart&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope can anyone help, thank you in advance for your time!!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 06:26:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-table-with-distinct-and-sum-of-values/m-p/961583#M11247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-06T06:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create a calculated table with distinct and sum of values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-table-with-distinct-and-sum-of-values/m-p/961634#M11248</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can use SUMMARIZE()&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/dax/summarize-function-dax" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/summarize-function-dax&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and create new calculated table like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New Table = SUMMARIZE(OriginalTable, OriginalTable[Client], "Value", SUM(OriginalTable[Value]))&lt;/LI-CODE&gt;
&lt;P&gt;if you need more column to group use like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New Table = SUMMARIZE(OriginalTable, OriginalTable[Client], OriginalTable[OtherColumn], "Value", SUM(OriginalTable[Value]))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 07:01:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-table-with-distinct-and-sum-of-values/m-p/961634#M11248</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-03-06T07:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create a calculated table with distinct and sum of values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-table-with-distinct-and-sum-of-values/m-p/961948#M11263</link>
      <description>Better still... use SUMMARIZECOLUMNS.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://dax.guide/summarizecolumns/" target="_blank"&gt;https://dax.guide/summarizecolumns/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Fri, 06 Mar 2020 09:59:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-table-with-distinct-and-sum-of-values/m-p/961948#M11263</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-06T09:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create a calculated table with distinct and sum of values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-table-with-distinct-and-sum-of-values/m-p/962579#M11314</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SUMMARIZECOLUMNS() is better but SUMMARIZE() is much more easier to understand and debug for newbies&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 16:52:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-table-with-distinct-and-sum-of-values/m-p/962579#M11314</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-03-06T16:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create a calculated table with distinct and sum of values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-table-with-distinct-and-sum-of-values/m-p/962630#M11316</link>
      <description>&lt;P&gt;Thank you for your reply, that solution worked but now,&amp;nbsp;how&amp;nbsp;can i&amp;nbsp;create a new calculated&amp;nbsp;column in my original table that show up like this, I am bit new using DAX:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;using SumValue&amp;nbsp;= SUM([Value]) only displays 420 all over the column like the last column in the image&lt;/P&gt;&lt;P&gt;Thank you for your time &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="82403" data-lia-user-login="az38" class="lia-mention lia-mention-user"&gt;az38&lt;/a&gt;&amp;nbsp;and Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 17:28:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-table-with-distinct-and-sum-of-values/m-p/962630#M11316</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-06T17:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create a calculated table with distinct and sum of values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-table-with-distinct-and-sum-of-values/m-p/962639#M11318</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CALCULATE(SUM([Value]))&lt;/LI-CODE&gt;
&lt;P&gt;or more complex&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CALCULATE(SUM([Value]), ALLEXCEPT(Table, Table[Value])) &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 17:33:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-table-with-distinct-and-sum-of-values/m-p/962639#M11318</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-03-06T17:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create a calculated table with distinct and sum of values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-table-with-distinct-and-sum-of-values/m-p/962656#M11320</link>
      <description>SUMMARIZE is actually much more dangerous than anyone could think. Have a look at this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.sqlbi.com/articles/all-the-secrets-of-summarize/" target="_blank"&gt;https://www.sqlbi.com/articles/all-the-secrets-of-summarize/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The note about the article being obsolete should be taken with a grain of salt. SUMMARIZE is still best avoided for doing any kind of aggregations (this is what Dax Guide says even today) because this function has a very complex behavior.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Fri, 06 Mar 2020 17:49:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-table-with-distinct-and-sum-of-values/m-p/962656#M11320</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-06T17:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create a calculated table with distinct and sum of values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-table-with-distinct-and-sum-of-values/m-p/962661#M11321</link>
      <description>The formula to use depends on the cardinality of your table. If the table is big, then any formula with CALCULATE will be very slow due to too many context transitions. Instead, FILTER should be used with suitable conditions.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Fri, 06 Mar 2020 17:52:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-table-with-distinct-and-sum-of-values/m-p/962661#M11321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-06T17:52:28Z</dc:date>
    </item>
  </channel>
</rss>

