<?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 Measure to count columns that have the same strings of text in a different order in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-count-columns-that-have-the-same-strings-of-text-in-a/m-p/3877928#M151405</link>
    <description>&lt;P&gt;Hey Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a column of data that contains a topic or multiple topics that are seperated by ";" that may be in a different order.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to count the times particular combinations of topics are put together, i.e.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As appears in regular table count&lt;/P&gt;&lt;P&gt;Topic 1;Topic 2;Topic 3 - 1&lt;/P&gt;&lt;P&gt;Topic 3;Topic 1;Topic 2 - 1&lt;/P&gt;&lt;P&gt;Topic 4 - 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output I'm trying to get to:&lt;/P&gt;&lt;P&gt;Topic 1;Topic 2;Topic 3 - 2&lt;/P&gt;&lt;P&gt;Topic 4 - 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found the following solution on Stack Overflow that seems to be exactly what I'm talking about, however the context is for other databases than PowerBI / Power Query.&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/70386104/group-strings-that-have-the-same-words-but-in-a-different-order" target="_blank"&gt;r - Group strings that have the same words but in a different order - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm hoping that this is something that can be acheived via a measure rather than within power query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already have a bridge table that lists all individual topics, so I'm wondering if its something I might be able to leverage as part of the meaure, but I'm very lost on this presently.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Apr 2024 06:12:26 GMT</pubDate>
    <dc:creator>cjbaguley</dc:creator>
    <dc:date>2024-04-30T06:12:26Z</dc:date>
    <item>
      <title>Measure to count columns that have the same strings of text in a different order</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-count-columns-that-have-the-same-strings-of-text-in-a/m-p/3877928#M151405</link>
      <description>&lt;P&gt;Hey Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a column of data that contains a topic or multiple topics that are seperated by ";" that may be in a different order.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to count the times particular combinations of topics are put together, i.e.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As appears in regular table count&lt;/P&gt;&lt;P&gt;Topic 1;Topic 2;Topic 3 - 1&lt;/P&gt;&lt;P&gt;Topic 3;Topic 1;Topic 2 - 1&lt;/P&gt;&lt;P&gt;Topic 4 - 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output I'm trying to get to:&lt;/P&gt;&lt;P&gt;Topic 1;Topic 2;Topic 3 - 2&lt;/P&gt;&lt;P&gt;Topic 4 - 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found the following solution on Stack Overflow that seems to be exactly what I'm talking about, however the context is for other databases than PowerBI / Power Query.&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/70386104/group-strings-that-have-the-same-words-but-in-a-different-order" target="_blank"&gt;r - Group strings that have the same words but in a different order - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm hoping that this is something that can be acheived via a measure rather than within power query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already have a bridge table that lists all individual topics, so I'm wondering if its something I might be able to leverage as part of the meaure, but I'm very lost on this presently.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 06:12:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-count-columns-that-have-the-same-strings-of-text-in-a/m-p/3877928#M151405</guid>
      <dc:creator>cjbaguley</dc:creator>
      <dc:date>2024-04-30T06:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to count columns that have the same strings of text in a different order</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-count-columns-that-have-the-same-strings-of-text-in-a/m-p/3877939#M151406</link>
      <description>&lt;P&gt;The general approach is to reshape your data using Power Query before loading. Exactly how you do that really depends on your data. But in simplistic terms, if you just split the column based on delimiter selecting "to rows" as an advanced option, you end up with one row per item. Then you have a column you can count. Your source table now has more rows, of course. What to do about this really depends on your data and use cases.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 06:18:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-count-columns-that-have-the-same-strings-of-text-in-a/m-p/3877939#M151406</guid>
      <dc:creator>MattAllington</dc:creator>
      <dc:date>2024-04-30T06:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to count columns that have the same strings of text in a different order</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-count-columns-that-have-the-same-strings-of-text-in-a/m-p/3882285#M151524</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="558183" data-lia-user-login="cjbaguley" class="lia-mention lia-mention-user"&gt;cjbaguley&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;In order to aggregate by a Column you have to the have the column physically exists in the data model either as a column in the same table or as a column in a separate&amp;nbsp;table. Unless you want to present the result in card visual as a single string with different lines delimited with UNICHAR ( 10 ). That could be practical only if the result contains few number of lines which I don't think is the case, is it?&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 10:43:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-count-columns-that-have-the-same-strings-of-text-in-a/m-p/3882285#M151524</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-05-01T10:43:49Z</dc:date>
    </item>
  </channel>
</rss>

