<?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: Help creating a classifier from columns using RANKX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-creating-a-classifier-from-columns-using-RANKX/m-p/3130887#M111411</link>
    <description>&lt;P&gt;Please provide sample data that covers your issue or question completely.&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Mar 2023 13:42:56 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2023-03-14T13:42:56Z</dc:date>
    <item>
      <title>Help creating a classifier from columns using RANKX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-creating-a-classifier-from-columns-using-RANKX/m-p/3121835#M110743</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am currently trying to create a custom column in Power BI to classify email campaigns based on certain criteria. The column is called "CRITERIO" and I am using the SWITCH function to assign values to each campaign based on its name and the number of emails sent.&lt;/P&gt;&lt;P&gt;Here is the formula I am using:&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;&lt;P&gt;The formula is supposed to assign values of "AURIS" or "TEST" to campaigns whose names contain those words, and "TOP 5", "TOP 6-10", or "TOP 11-15" to campaigns whose email volumes rank within those thresholds. All other campaigns should be assigned a value of "OTHER".&lt;/P&gt;&lt;P&gt;Here's and data's example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;RECIPIENT_ID&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;EVENT_TYPE&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;NOMBRE&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;EMAIL&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;607227625501&lt;/TD&gt;&lt;TD&gt;Sent&lt;/TD&gt;&lt;TD&gt;LPR&lt;/TD&gt;&lt;TD&gt;xxxxxxx@gmail.com&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;579440932400&lt;/TD&gt;&lt;TD&gt;Open&lt;/TD&gt;&lt;TD&gt;[AURIS] SIN CONTACTO API&lt;/TD&gt;&lt;TD&gt;yyyyyy@icloud.com&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;579440932952&lt;/TD&gt;&lt;TD&gt;Sent&lt;/TD&gt;&lt;TD&gt;[TEST] LISTO PARA RETIRO API&lt;/TD&gt;&lt;TD&gt;zzzzzzz@hotmail.com&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;579440957813&lt;/TD&gt;&lt;TD&gt;Sent&lt;/TD&gt;&lt;TD&gt;ENCUESTA&lt;/TD&gt;&lt;TD&gt;aaaaaaa@email.com&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;618127727620&lt;/TD&gt;&lt;TD&gt;Sent&lt;/TD&gt;&lt;TD&gt;POLL&lt;/TD&gt;&lt;TD&gt;bbbbb@email.com&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;565900248891&lt;/TD&gt;&lt;TD&gt;Sent&lt;/TD&gt;&lt;TD&gt;WELCOME&lt;/TD&gt;&lt;TD&gt;ccccccc@email.com&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="Sample" href="https://drive.google.com/file/d/1Ag0zNkoojsaRC60iKzpuEROYAIEZxylB/view?usp=share_link" target="_self"&gt;Data Base Sample&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am running into a few issues. First, the formula is not correctly filtering the "TOP 5" campaigns, and is instead assigning that value to all campaigns that are not "AURIS" or "TEST". Second, occasionally the formula is creating a circular dependency that prevents me from using the "COUNT" function instead "DISTINCTCOUNT".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried a few different variations of the formula, including using COUNTROWS instead of DISTINCTCOUNT, and using a different column as the first argument of the RANKX function, but I have not been able to resolve the issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or suggestions would be greatly appreciated. Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 13:09:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-creating-a-classifier-from-columns-using-RANKX/m-p/3121835#M110743</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-14T13:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help creating a classifier from columns using RANKX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-creating-a-classifier-from-columns-using-RANKX/m-p/3126573#M111065</link>
      <description>&lt;P&gt;Please provide sample data that covers all your scenarios.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 01:12:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-creating-a-classifier-from-columns-using-RANKX/m-p/3126573#M111065</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-03-13T01:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help creating a classifier from columns using RANKX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-creating-a-classifier-from-columns-using-RANKX/m-p/3130775#M111401</link>
      <description>&lt;P&gt;I just added a sample to use!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 13:10:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-creating-a-classifier-from-columns-using-RANKX/m-p/3130775#M111401</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-14T13:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help creating a classifier from columns using RANKX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-creating-a-classifier-from-columns-using-RANKX/m-p/3130887#M111411</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question completely.&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 13:42:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-creating-a-classifier-from-columns-using-RANKX/m-p/3130887#M111411</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-03-14T13:42:56Z</dc:date>
    </item>
  </channel>
</rss>

