<?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: Get count values for comma separated in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-values-for-comma-separated/m-p/2914326#M95349</link>
    <description>&lt;DIV&gt;This shall be achieveable without any DAX code:&lt;DIV&gt;For the incidents by type table, create a table visual, put the [Incident Type] and [TelantID] to the Columns. Then you will get the expected result.&amp;nbsp;&lt;DIV&gt;&lt;img&gt;&amp;nbsp;&lt;/img&gt;&lt;DIV&gt;It is similar to the other two tables.&amp;nbsp;&lt;/DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 18 Nov 2022 05:20:53 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2022-11-18T05:20:53Z</dc:date>
    <item>
      <title>Get count values for comma separated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-values-for-comma-separated/m-p/2914306#M95346</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a table below. Tenant ID will always be unique. I need a measure for Incident Type, Priority, and Incident Root cause to get the result below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Result expected :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Ashfiya&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 04:49:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-values-for-comma-separated/m-p/2914306#M95346</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-18T04:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get count values for comma separated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-values-for-comma-separated/m-p/2914326#M95349</link>
      <description>&lt;DIV&gt;This shall be achieveable without any DAX code:&lt;DIV&gt;For the incidents by type table, create a table visual, put the [Incident Type] and [TelantID] to the Columns. Then you will get the expected result.&amp;nbsp;&lt;DIV&gt;&lt;img&gt;&amp;nbsp;&lt;/img&gt;&lt;DIV&gt;It is similar to the other two tables.&amp;nbsp;&lt;/DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 18 Nov 2022 05:20:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-values-for-comma-separated/m-p/2914326#M95349</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-11-18T05:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get count values for comma separated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-values-for-comma-separated/m-p/2914344#M95352</link>
      <description>&lt;P&gt;Hi&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;This will not work. I need count for every value present in Incident Type&amp;nbsp;&lt;BR /&gt;Ex: Near miss is present for all three tenant ID, so count of near miss should be 3.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 05:49:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-values-for-comma-separated/m-p/2914344#M95352</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-18T05:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get count values for comma separated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-values-for-comma-separated/m-p/2914407#M95357</link>
      <description>&lt;P&gt;Aha, then you need to split [Incident Type] column and duplicate the rest columns first in Power Query. For example, a row with 3 incident types, there will be 3 rows.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 06:29:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-values-for-comma-separated/m-p/2914407#M95357</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-11-18T06:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get count values for comma separated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-values-for-comma-separated/m-p/2914469#M95361</link>
      <description>&lt;P&gt;I do not want to go with that approach since I will have 40 more comma-separated columns with different values.&lt;/P&gt;&lt;P&gt;So I need a calculated measure.&lt;BR /&gt;Thank You!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp; Please help&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 07:03:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-values-for-comma-separated/m-p/2914469#M95361</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-18T07:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get count values for comma separated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-values-for-comma-separated/m-p/2915266#M95442</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;Assuming you have an Incidents type table somewhere you could do this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
  VAR __Type = MAX('Types'[Type])
  VAR __Table = 
    ADDCOLUMNS(
      'Table',
      "__Found",SEARCH(__Type,[Incident Type],,-1)
    )
  VAR __Result = COUNTROWS(FILTER(__Table, [__Found] &amp;gt; -1))
RETURN
  __Result&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 18 Nov 2022 14:46:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-values-for-comma-separated/m-p/2915266#M95442</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-11-18T14:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get count values for comma separated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-values-for-comma-separated/m-p/2921087#M95795</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for the reply. I will not have an Incident Type table. My issue is there are more than 40 such columns, so having 40 tables will lower the performance.&lt;BR /&gt;Any different approach?&lt;/P&gt;&lt;P&gt;Note : using MongoDb as Datasource which is very very slow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 09:05:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-values-for-comma-separated/m-p/2921087#M95795</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-22T09:05:15Z</dc:date>
    </item>
  </channel>
</rss>

