<?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: Categorize by one of the values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Categorize-by-one-of-the-values/m-p/2095008#M47744</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Maybe MIN([IsError])?&lt;/P&gt;</description>
    <pubDate>Thu, 23 Sep 2021 16:09:55 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2021-09-23T16:09:55Z</dc:date>
    <item>
      <title>Categorize by one of the values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Categorize-by-one-of-the-values/m-p/2094986#M47742</link>
      <description>&lt;P&gt;Hi all. Seemed simple one but got stuck here:&lt;/P&gt;&lt;P&gt;There is a list of devices (ID) which can send an error or informational event. Some ID's can have both status messages. What I would like to do is categorize them in a way so if there is an error and informational event for same ID, it would say 'error'. Kind of ranking.&lt;/P&gt;&lt;P&gt;Both M and Dax solutions are welcome. Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 15:56:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Categorize-by-one-of-the-values/m-p/2094986#M47742</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-23T15:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Categorize by one of the values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Categorize-by-one-of-the-values/m-p/2095008#M47744</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Maybe MIN([IsError])?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 16:09:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Categorize-by-one-of-the-values/m-p/2095008#M47744</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-09-23T16:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Categorize by one of the values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Categorize-by-one-of-the-values/m-p/2095989#M47774</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;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IsError is my desired output. So I used&amp;nbsp;&lt;SPAN&gt;MIN([Status]) and it creates a column with "Error" value only.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 05:25:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Categorize-by-one-of-the-values/m-p/2095989#M47774</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-24T05:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Categorize by one of the values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Categorize-by-one-of-the-values/m-p/2096051#M47776</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to add a column with this DAX code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;IsError = 
VAR _Error =
    CALCULATE (
        DISTINCTCOUNT ( 'Table'[Status] ),
        ALLEXCEPT ( 'Table', 'Table'[ID] )
    )
RETURN
    IF ( _Error &amp;gt; 1 || 'Table'[Status] = "Error", "Error", "Informational event" )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;SPAN&gt;, please consider&amp;nbsp;&lt;STRONG&gt;accepting&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;it as the solution&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;&lt;STRONG&gt;Appreciate your Kudos&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;span class="lia-unicode-emoji" title=":victory_hand:"&gt;✌️&lt;/span&gt;&lt;STRONG&gt;!!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 06:04:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Categorize-by-one-of-the-values/m-p/2096051#M47776</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-09-24T06:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Categorize by one of the values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Categorize-by-one-of-the-values/m-p/2097171#M47804</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;Yeah, my thought was a measure and you are correct, I meant MIN([Status]), If a column you could do:&lt;/P&gt;
&lt;P&gt;MINX(FILTER('Table',[ID]=EARLIER([ID])),[Status])&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 13:33:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Categorize-by-one-of-the-values/m-p/2097171#M47804</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-09-24T13:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Categorize by one of the values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Categorize-by-one-of-the-values/m-p/2109843#M48242</link>
      <description>&lt;P&gt;Thank you,&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;and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="315278" data-lia-user-login="VahidDM" class="lia-mention lia-mention-user"&gt;VahidDM&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;I applied the following and that seems to work:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;=CALCULATE(MIN('Table'[Status]) ,ALLEXCEPT('Table', 'Table'[ID]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 01 Oct 2021 06:21:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Categorize-by-one-of-the-values/m-p/2109843#M48242</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-01T06:21:31Z</dc:date>
    </item>
  </channel>
</rss>

