<?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: Group Terms and Count in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Terms-and-Count/m-p/3342725#M125473</link>
    <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="573509" data-lia-user-login="kl8818" class="lia-mention lia-mention-user"&gt;kl8818&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It seems like the formula include some syntax issue with if statement, I fixed those issues and you can try to use following codes if help:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    cleanedTerm = Text.Replace(Text.Replace(Text.Replace(Text.Lower([Search Term]), ".", ""), " ", ""), "-", "")
in
if Text.Contains(cleanedTerm,"tableu") then "Tableu"
else if Text.Contains(cleanedTerm,"excel") then "Excel"
else if Text.Contains(cleanedTerm,"powerbi") then "Power BI"
else if Text.Contains(cleanedTerm,"agile") then "Agile"
else if Text.Contains(cleanedTerm,"communication") then "Communication"
else 
"Others"&lt;/LI-CODE&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jul 2023 07:21:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-07-21T07:21:20Z</dc:date>
    <item>
      <title>Group Terms and Count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Terms-and-Count/m-p/3325661#M124529</link>
      <description>&lt;P&gt;Hi - does anyone have a way to automate the grouping of terms and recalculate the count? Below are a few examples of searches, and I would like to have them count for one common term, such as Excel, tableau, communication, agile, etc. I have about 4.5k terms in my spreadsheet, so I was trying to avoid using a search/replace feature as that would require more maintenance.&amp;nbsp;&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;P&gt;&lt;img /&gt;&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;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 15:24:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Terms-and-Count/m-p/3325661#M124529</guid>
      <dc:creator>kl8818</dc:creator>
      <dc:date>2023-07-11T15:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Group Terms and Count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Terms-and-Count/m-p/3327175#M124595</link>
      <description>&lt;P&gt;in power query (transform data)&lt;BR /&gt;&lt;BR /&gt;add a new custom column&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    cleanedTerm = Text.Replace(Text.Replace(Text.Replace(Text.Lower([Search Term]), ".", ""), " ", ""), "-", "")
in
if Text.Contains(cleanedTerm,"tableu") then "Tableu"
else if Text.Contains(cleanedTerm,"excel") then "Excel"
else if Text.Contains(cleanedTerm,"powerbi") then "Power BI"
else if if Text.Contains(cleanedTerm,"agile") then "Agile"
else if if Text.Contains(cleanedTerm,"communication") then "Communication"
else 
"Others"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;or if you are a premium user in powerbi desktop you can do Text Analysis and it will automatically analyse the rows kinda&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 11:00:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Terms-and-Count/m-p/3327175#M124595</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-07-12T11:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Group Terms and Count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Terms-and-Count/m-p/3331706#M124871</link>
      <description>&lt;P&gt;I am receiving this error...&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;</description>
      <pubDate>Fri, 14 Jul 2023 18:40:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Terms-and-Count/m-p/3331706#M124871</guid>
      <dc:creator>kl8818</dc:creator>
      <dc:date>2023-07-14T18:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Group Terms and Count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Terms-and-Count/m-p/3342725#M125473</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="573509" data-lia-user-login="kl8818" class="lia-mention lia-mention-user"&gt;kl8818&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It seems like the formula include some syntax issue with if statement, I fixed those issues and you can try to use following codes if help:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    cleanedTerm = Text.Replace(Text.Replace(Text.Replace(Text.Lower([Search Term]), ".", ""), " ", ""), "-", "")
in
if Text.Contains(cleanedTerm,"tableu") then "Tableu"
else if Text.Contains(cleanedTerm,"excel") then "Excel"
else if Text.Contains(cleanedTerm,"powerbi") then "Power BI"
else if Text.Contains(cleanedTerm,"agile") then "Agile"
else if Text.Contains(cleanedTerm,"communication") then "Communication"
else 
"Others"&lt;/LI-CODE&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 07:21:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Terms-and-Count/m-p/3342725#M125473</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-21T07:21:20Z</dc:date>
    </item>
  </channel>
</rss>

