<?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 Count repeated values on three columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-repeated-values-on-three-columns/m-p/3117234#M110418</link>
    <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a "Table" with three columns, A, B and C,&lt;SPAN&gt; filled&lt;/SPAN&gt;&lt;SPAN&gt; with&lt;/SPAN&gt;&lt;SPAN&gt; many&lt;/SPAN&gt;&lt;SPAN&gt; different&lt;/SPAN&gt;&lt;SPAN&gt; string&lt;/SPAN&gt;&lt;SPAN&gt; values&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I&lt;/SPAN&gt;&lt;SPAN&gt; want&lt;/SPAN&gt;&lt;SPAN&gt; to&lt;/SPAN&gt;&lt;SPAN&gt; find&lt;/SPAN&gt;&lt;SPAN&gt; how&lt;/SPAN&gt;&lt;SPAN&gt; many&lt;/SPAN&gt;&lt;SPAN&gt; rows&lt;/SPAN&gt;&lt;SPAN&gt; of&lt;/SPAN&gt;&lt;SPAN&gt; that&lt;/SPAN&gt;&lt;SPAN&gt; table&lt;/SPAN&gt;&lt;SPAN&gt; have&lt;/SPAN&gt;&lt;SPAN&gt; all&lt;/SPAN&gt;&lt;SPAN&gt; three&lt;/SPAN&gt;&lt;SPAN&gt; columns&lt;/SPAN&gt;&lt;SPAN&gt; equal&lt;/SPAN&gt;&lt;SPAN&gt; to&lt;/SPAN&gt;&lt;SPAN&gt; another&lt;/SPAN&gt;&lt;SPAN&gt; row&lt;/SPAN&gt;&lt;SPAN&gt; in&lt;/SPAN&gt;&lt;SPAN&gt; the&lt;/SPAN&gt;&lt;SPAN&gt; table&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt; In&lt;/SPAN&gt;&lt;SPAN&gt; other&lt;/SPAN&gt;&lt;SPAN&gt; words&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt; find&lt;/SPAN&gt;&lt;SPAN&gt; rows&lt;/SPAN&gt;&lt;SPAN&gt; with&lt;/SPAN&gt;&lt;SPAN&gt; duplicate&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;"A+&lt;/SPAN&gt;&lt;SPAN&gt;B+&lt;/SPAN&gt;&lt;SPAN&gt;C"&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;In a visual I would need a number, indicating how many non unique values there are, combining the three columns.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a formula to achieve this or do I have to concatenate all three columns in one first and then somehow count the duplicates?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you very much and regards.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Mar 2023 19:37:27 GMT</pubDate>
    <dc:creator>superjam</dc:creator>
    <dc:date>2023-03-07T19:37:27Z</dc:date>
    <item>
      <title>Count repeated values on three columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-repeated-values-on-three-columns/m-p/3117234#M110418</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a "Table" with three columns, A, B and C,&lt;SPAN&gt; filled&lt;/SPAN&gt;&lt;SPAN&gt; with&lt;/SPAN&gt;&lt;SPAN&gt; many&lt;/SPAN&gt;&lt;SPAN&gt; different&lt;/SPAN&gt;&lt;SPAN&gt; string&lt;/SPAN&gt;&lt;SPAN&gt; values&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I&lt;/SPAN&gt;&lt;SPAN&gt; want&lt;/SPAN&gt;&lt;SPAN&gt; to&lt;/SPAN&gt;&lt;SPAN&gt; find&lt;/SPAN&gt;&lt;SPAN&gt; how&lt;/SPAN&gt;&lt;SPAN&gt; many&lt;/SPAN&gt;&lt;SPAN&gt; rows&lt;/SPAN&gt;&lt;SPAN&gt; of&lt;/SPAN&gt;&lt;SPAN&gt; that&lt;/SPAN&gt;&lt;SPAN&gt; table&lt;/SPAN&gt;&lt;SPAN&gt; have&lt;/SPAN&gt;&lt;SPAN&gt; all&lt;/SPAN&gt;&lt;SPAN&gt; three&lt;/SPAN&gt;&lt;SPAN&gt; columns&lt;/SPAN&gt;&lt;SPAN&gt; equal&lt;/SPAN&gt;&lt;SPAN&gt; to&lt;/SPAN&gt;&lt;SPAN&gt; another&lt;/SPAN&gt;&lt;SPAN&gt; row&lt;/SPAN&gt;&lt;SPAN&gt; in&lt;/SPAN&gt;&lt;SPAN&gt; the&lt;/SPAN&gt;&lt;SPAN&gt; table&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt; In&lt;/SPAN&gt;&lt;SPAN&gt; other&lt;/SPAN&gt;&lt;SPAN&gt; words&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt; find&lt;/SPAN&gt;&lt;SPAN&gt; rows&lt;/SPAN&gt;&lt;SPAN&gt; with&lt;/SPAN&gt;&lt;SPAN&gt; duplicate&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;"A+&lt;/SPAN&gt;&lt;SPAN&gt;B+&lt;/SPAN&gt;&lt;SPAN&gt;C"&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;In a visual I would need a number, indicating how many non unique values there are, combining the three columns.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a formula to achieve this or do I have to concatenate all three columns in one first and then somehow count the duplicates?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you very much and regards.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 19:37:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-repeated-values-on-three-columns/m-p/3117234#M110418</guid>
      <dc:creator>superjam</dc:creator>
      <dc:date>2023-03-07T19:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Count repeated values on three columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-repeated-values-on-three-columns/m-p/3117544#M110431</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="331328" data-lia-user-login="superjam" class="lia-mention lia-mention-user"&gt;superjam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;try like:&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;COUNTROWS(TableName)-&lt;/DIV&gt;&lt;DIV&gt;COUNTROWS(DISTINCT(TableName))&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Mar 2023 23:25:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-repeated-values-on-three-columns/m-p/3117544#M110431</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-03-07T23:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Count repeated values on three columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-repeated-values-on-three-columns/m-p/3118788#M110508</link>
      <description>&lt;P&gt;Thank you,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The function DISTINCT() counts unique values in &lt;U&gt;one&lt;/U&gt; column of the table. So, your measure gives the repeated values in one column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But how about the following example:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Only one row is duplicated (marked in yellow), because only in that case all three columns are equal with each other. I hope this clarifies the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 12:16:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-repeated-values-on-three-columns/m-p/3118788#M110508</guid>
      <dc:creator>superjam</dc:creator>
      <dc:date>2023-03-08T12:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Count repeated values on three columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-repeated-values-on-three-columns/m-p/3118805#M110510</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just after posting the last response, I figured it out: create a new column concatenating the three columns and then use the idea of&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;to calculate the duplicate ones.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 12:23:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-repeated-values-on-three-columns/m-p/3118805#M110510</guid>
      <dc:creator>superjam</dc:creator>
      <dc:date>2023-03-08T12:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Count repeated values on three columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-repeated-values-on-three-columns/m-p/3118859#M110516</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="331328" data-lia-user-login="superjam" class="lia-mention lia-mention-user"&gt;superjam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DISTINCT also accept table as argument.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 12:39:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-repeated-values-on-three-columns/m-p/3118859#M110516</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-03-08T12:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Count repeated values on three columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-repeated-values-on-three-columns/m-p/3118874#M110518</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="331328" data-lia-user-login="superjam" class="lia-mention lia-mention-user"&gt;superjam&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;In general that depends on the filter context which essentially depens on the visual itself. However, The following should work in a card visual&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Count =
COUNTROWS (
    DISTINCT ( SELECTCOLUMNS ( "A", 'Table'[A], "B", 'Table'[B], "C", 'Table'[C] ) )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 08 Mar 2023 12:42:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-repeated-values-on-three-columns/m-p/3118874#M110518</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-08T12:42:32Z</dc:date>
    </item>
  </channel>
</rss>

