<?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: How to add a category column based on existing Title column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-add-a-category-column-based-on-existing-Title-column/m-p/3381463#M127392</link>
    <description>&lt;P&gt;What if your text matches multiple categories?&amp;nbsp; Do you have a preferred matching order?&lt;/P&gt;</description>
    <pubDate>Wed, 16 Aug 2023 00:15:18 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2023-08-16T00:15:18Z</dc:date>
    <item>
      <title>How to add a category column based on existing Title column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-add-a-category-column-based-on-existing-Title-column/m-p/3379363#M127301</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I would like to add a category column based on an existing text column in my table. I have the text column as shown below, and I have provided the desired result that I aim to achieve:&lt;/P&gt;&lt;P&gt;Text Column:&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Title&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Books and notebooks logistic order#12646484 is in Exception State and its ETA is 10 Days&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mismatch in Production and load delivery&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ordered item is not matching with origiinal order&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;I have found few mismatch in the ordered plant and received plant&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Desired Result:&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Title&lt;/TD&gt;&lt;TD&gt;Category&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Books and notebooks logistic order#12646484 is in Exception State and its ETA is 10 Days&lt;/TD&gt;&lt;TD&gt;Books and Notebooks Order Issue&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mismatch in Production and load delivery&lt;/TD&gt;&lt;TD&gt;Mismatch in production &amp;amp; Load&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ordered item is not matching with origiinal order&lt;/TD&gt;&lt;TD&gt;Order Mismatch&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;I have found few mismatch in the ordered plant and received plant&lt;/TD&gt;&lt;TD&gt;Plant micmatch Issue&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me with the Dax query to achive this result if possible any hlep in this regard is much appreciated&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="480607" data-lia-user-login="member" class="lia-mention lia-mention-user"&gt;member&lt;/a&gt;&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 15:59:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-add-a-category-column-based-on-existing-Title-column/m-p/3379363#M127301</guid>
      <dc:creator>Premlatapandey9</dc:creator>
      <dc:date>2023-08-14T15:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a category column based on existing Title column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-add-a-category-column-based-on-existing-Title-column/m-p/3381463#M127392</link>
      <description>&lt;P&gt;What if your text matches multiple categories?&amp;nbsp; Do you have a preferred matching order?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 00:15:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-add-a-category-column-based-on-existing-Title-column/m-p/3381463#M127392</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-08-16T00:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a category column based on existing Title column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-add-a-category-column-based-on-existing-Title-column/m-p/3381615#M127424</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="442188" data-lia-user-login="Premlatapandey9" class="lia-mention lia-mention-user"&gt;Premlatapandey9&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can create a calculated column.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Category = 
SWITCH (
    TRUE (),
    CONTAINSSTRING ( TableName[Title], "Books and notebooks" ), "Books and Notebooks Order Issue",
    CONTAINSSTRING ( TableName[Title], "Mismatch in Production" ), "Mismatch in production &amp;amp; Load",
    CONTAINSSTRING ( TableName[Title], "ordered item" ), "Order Mismatch",
    CONTAINSSTRING ( TableName[Title], "mismatch in the ordered plant" ), "Plant mismatch Issue",
    "Other"
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 01:44:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-add-a-category-column-based-on-existing-Title-column/m-p/3381615#M127424</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-16T01:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a category column based on existing Title column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-add-a-category-column-based-on-existing-Title-column/m-p/3381952#M127433</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp; This is amazing&amp;nbsp;&lt;SPAN&gt;I am incredibly grateful for your time and expertise. Your willingness to help is awesom, and I wanted to express my sincere appreciation. Kudos to you for your outstanding efforts!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 05:27:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-add-a-category-column-based-on-existing-Title-column/m-p/3381952#M127433</guid>
      <dc:creator>Premlatapandey9</dc:creator>
      <dc:date>2023-08-16T05:27:16Z</dc:date>
    </item>
  </channel>
</rss>

