<?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: If condition Using Then in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-condition-Using-Then/m-p/2378323#M61363</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="347737" data-lia-user-login="SIBI1998" class="lia-mention lia-mention-user"&gt;SIBI1998&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:-&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
Switch(true(),
Sum(Act Ucc Cnt) &amp;gt;= 5,"Greater than 5", 
Sum(Act Ucc Cnt) &amp;lt; 5 &amp;amp;&amp;amp; Sum(Act Ucc Cnt) &amp;gt;=1,"Less than 5"
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Samarth&lt;/P&gt;</description>
    <pubDate>Mon, 07 Mar 2022 09:49:24 GMT</pubDate>
    <dc:creator>Samarth_18</dc:creator>
    <dc:date>2022-03-07T09:49:24Z</dc:date>
    <item>
      <title>If condition Using Then</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-condition-Using-Then/m-p/2378294#M61362</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If Sum(Act Ucc Cnt) &amp;gt;= 5 then I need an Output as&amp;nbsp;&lt;STRONG&gt;Greater than 5 ,&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;If Sum(Act Ucc Cnt) &amp;lt; 5 and Sum(Act Ucc Cnt) &amp;gt;=1 then I need an Output as&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Less&amp;nbsp;than 5 .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I got the Solution.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 09:44:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-condition-Using-Then/m-p/2378294#M61362</guid>
      <dc:creator>SIBI1998</dc:creator>
      <dc:date>2022-03-07T09:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: If condition Using Then</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-condition-Using-Then/m-p/2378323#M61363</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="347737" data-lia-user-login="SIBI1998" class="lia-mention lia-mention-user"&gt;SIBI1998&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:-&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
Switch(true(),
Sum(Act Ucc Cnt) &amp;gt;= 5,"Greater than 5", 
Sum(Act Ucc Cnt) &amp;lt; 5 &amp;amp;&amp;amp; Sum(Act Ucc Cnt) &amp;gt;=1,"Less than 5"
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Samarth&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 09:49:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-condition-Using-Then/m-p/2378323#M61363</guid>
      <dc:creator>Samarth_18</dc:creator>
      <dc:date>2022-03-07T09:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: If condition Using Then</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-condition-Using-Then/m-p/2378327#M61364</link>
      <description>&lt;P&gt;Hello there&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="347737" data-lia-user-login="SIBI1998" class="lia-mention lia-mention-user"&gt;SIBI1998&lt;/a&gt;&amp;nbsp;! Try the following:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure_Name =
VAR _act_ucc_cnt =
    SUM ( 'Table_name'[Act Ucc Cnt] )
RETURN
    SWITCH (
        TRUE (),
        _act_ucc_cnt &amp;gt;= 5, "Greater than 5",
        _act_ucc_cnt &amp;lt; 5
            &amp;amp;&amp;amp; _act_ucc_cnt &amp;gt;= 1, "Less than 5"
    )&lt;/LI-CODE&gt;
&lt;P&gt;Hope this answer solves your problem!&lt;BR /&gt;If you need any additional help please &lt;SPAN&gt;@&lt;/SPAN&gt; me in your reply.&lt;BR /&gt;If my reply provided you with a solution, please consider marking it as a solution &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt; or giving it a kudoe &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/gon%C3%A7alo-costa-b32253159" target="_blank"&gt;You can also check out my LinkedIn!&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Gonçalo Geraldes&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 09:51:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-condition-Using-Then/m-p/2378327#M61364</guid>
      <dc:creator>goncalogeraldes</dc:creator>
      <dc:date>2022-03-07T09:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: If condition Using Then</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-condition-Using-Then/m-p/2378336#M61366</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="347737" data-lia-user-login="SIBI1998" class="lia-mention lia-mention-user"&gt;SIBI1998&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try the below DAX to create a measure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Result = 
    SWITCH(
        TRUE(),
        SUM('Table'[Act Ucc Cnt]) &amp;gt;= 5,"Greater than 5", 
        SUM('Table'[Act Ucc Cnt]) &amp;lt; 5 &amp;amp;&amp;amp; SUM('Table'[Act Ucc Cnt]) &amp;gt;=1,"Less than 5"
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 09:55:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-condition-Using-Then/m-p/2378336#M61366</guid>
      <dc:creator>apatwal</dc:creator>
      <dc:date>2022-03-07T09:55:18Z</dc:date>
    </item>
  </channel>
</rss>

