<?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 Need help with DAX logic in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-logic/m-p/2753889#M85051</link>
    <description>&lt;P&gt;Hello Everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with Students being out for certain days in a week as shown below:&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;I would like to create a DAX expression to get similar result.&lt;/P&gt;&lt;P&gt;If you have any idea pls share, thank you in advance.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Sep 2022 20:28:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-07T20:28:04Z</dc:date>
    <item>
      <title>Need help with DAX logic</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-logic/m-p/2753889#M85051</link>
      <description>&lt;P&gt;Hello Everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with Students being out for certain days in a week as shown below:&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;I would like to create a DAX expression to get similar result.&lt;/P&gt;&lt;P&gt;If you have any idea pls share, thank you in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 20:28:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-logic/m-p/2753889#M85051</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-07T20:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX logic</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-logic/m-p/2754157#M85072</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Do you have any date?&lt;/P&gt;
&lt;P&gt;else try like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;new column =&lt;/P&gt;
&lt;P&gt;var _1 = countx(filter(Table, [Day] =earlier([Day]) &amp;amp;&amp;amp; [Student] = earlier([Student]) ), [Student])&lt;/P&gt;
&lt;P&gt;var _2 = countx(filter(Table, [Day] =earlier([Day]) &amp;amp;&amp;amp; [Student] = earlier([Student]) &amp;amp;&amp;amp; [Status] ="Out"), [Student])&lt;/P&gt;
&lt;P&gt;Var _3 = distinctcount(Table[Day])&lt;/P&gt;
&lt;P&gt;return&lt;/P&gt;
&lt;P&gt;Switch(True() ,&lt;/P&gt;
&lt;P&gt;_2 =_3, "High",&lt;/P&gt;
&lt;P&gt;_2 =1, "Low",&lt;/P&gt;
&lt;P&gt;"Medium"&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 02:40:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-logic/m-p/2754157#M85072</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-09-08T02:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX logic</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-logic/m-p/2754249#M85079</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like this?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;You just need to create a cloumn:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Rate = var _count=CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[Student]=EARLIER('Table'[Student])))
return IF(_count=5,"High",IF(_count&amp;gt;1,"Medium",IF(_count=1,"Low")))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And then through conditonal formatting to get the color you want.&lt;/P&gt;
&lt;P&gt;Refer my pbix file for better understanding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Community Support Team&amp;nbsp;&lt;STRONG&gt;Selina&amp;nbsp;zhu&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 03:29:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-logic/m-p/2754249#M85079</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-08T03:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX logic</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-logic/m-p/2755906#M85201</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the solution, it very close to what I was looking for.&lt;/P&gt;&lt;P&gt;I do have date column, where to use it if I want to see year to date (YTD) data?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 14:57:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-logic/m-p/2755906#M85201</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-08T14:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX logic</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-logic/m-p/2765790#M85890</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;Have you seen my reply? Can it meet your needs?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Community Support Team&amp;nbsp;&lt;STRONG&gt;Selina&amp;nbsp;zhu&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 02:27:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-logic/m-p/2765790#M85890</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-14T02:27:23Z</dc:date>
    </item>
  </channel>
</rss>

