<?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 of unique values in multiple columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-unique-values-in-multiple-columns/m-p/2453561#M66114</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; Hi, I have 3 columns that I would like to sum their unique values and have a total number of users, for this example, the output should be 9, as Tom is repeated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use a formula for a similar example situation&amp;nbsp; but it gave me fewer numbers for some reason.&lt;BR /&gt;&amp;nbsp;This is the formula that I tried:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Count Total Users= COUNTROWS(SUMMARIZE(Table[ User Level 1],[ User Level 2]Table[ User Level 3]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
    <pubDate>Wed, 13 Apr 2022 00:41:33 GMT</pubDate>
    <dc:creator>maneschr2022</dc:creator>
    <dc:date>2022-04-13T00:41:33Z</dc:date>
    <item>
      <title>Sum of unique values in multiple columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-unique-values-in-multiple-columns/m-p/2453561#M66114</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; Hi, I have 3 columns that I would like to sum their unique values and have a total number of users, for this example, the output should be 9, as Tom is repeated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use a formula for a similar example situation&amp;nbsp; but it gave me fewer numbers for some reason.&lt;BR /&gt;&amp;nbsp;This is the formula that I tried:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Count Total Users= COUNTROWS(SUMMARIZE(Table[ User Level 1],[ User Level 2]Table[ User Level 3]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 00:41:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-unique-values-in-multiple-columns/m-p/2453561#M66114</guid>
      <dc:creator>maneschr2022</dc:creator>
      <dc:date>2022-04-13T00:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of unique values in multiple columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-unique-values-in-multiple-columns/m-p/2453575#M66115</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;If you don't mind using transform data and higlight the first column and unpivot others you get:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then this measure will result in nine for the count.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;User CT = &lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table'[Value]&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;I hope this helps!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 Apr 2022 00:58:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-unique-values-in-multiple-columns/m-p/2453575#M66115</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-04-13T00:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of unique values in multiple columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-unique-values-in-multiple-columns/m-p/2453780#M66128</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total users count: =
VAR newtable =
    FILTER (
        SUMMARIZE (
            UNION (
                VALUES ( Data[UserLevel1] ),
                VALUES ( Data[UserLevel2] ),
                VALUES ( Data[UserLevel3] )
            ),
            Data[UserLevel1]
        ),
        Data[UserLevel1] &amp;lt;&amp;gt; BLANK ()
    )
RETURN
    COUNTROWS ( newtable )
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 13 Apr 2022 03:00:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-unique-values-in-multiple-columns/m-p/2453780#M66128</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-04-13T03:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of unique values in multiple columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-unique-values-in-multiple-columns/m-p/2453908#M66139</link>
      <description>&lt;P&gt;Hi, Thanks for your help, it works fine that way is a bit of a work around with tables, so I`ll go for the DAX formula&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 05:27:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-unique-values-in-multiple-columns/m-p/2453908#M66139</guid>
      <dc:creator>maneschr2022</dc:creator>
      <dc:date>2022-04-13T05:27:05Z</dc:date>
    </item>
  </channel>
</rss>

