<?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 with if Function in DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-if-Function-in-DAX/m-p/1804432#M38095</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291363" data-lia-user-login="ERD" class="lia-mention lia-mention-user"&gt;ERD&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One more question regarding the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How should I mofidy the measure if I want to add more conditions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just as an example:&lt;/P&gt;&lt;P&gt;All the previous conditions + action needed when Handler = Jake? or ID = 578344&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to add conditions to the measure as below, but it is giving error.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;COALESCE(
COUNTAX(FILTER(T, T[Status] IN {"Pending","Open","Cancelled","Closed"} &amp;amp;&amp;amp; OR(T[InfStatus] = "Waiting", T[Group] = "Sales", T[Handler] = "Jake", T[ID] = "578344")), T[ID]),
0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jere&lt;/P&gt;</description>
    <pubDate>Sun, 25 Apr 2021 18:56:26 GMT</pubDate>
    <dc:creator>jereaallikko</dc:creator>
    <dc:date>2021-04-25T18:56:26Z</dc:date>
    <item>
      <title>Help with if Function in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-if-Function-in-DAX/m-p/1795583#M37833</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to show number of actions needed for my team. The idea is to create a DAX (or custom column if needed) to show number of items where some actions are needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data table illustrated as 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;Here are the rules:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Main rule is:&amp;nbsp;Only from items where&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Status = "Open" or "Cancelled" or "Pending"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Additionally:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Information Request Status = "Waiting"&lt;/LI&gt;&lt;LI&gt;Group = "Sales"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So based on the table below, the measure should show&amp;nbsp;&lt;STRONG&gt;3&lt;/STRONG&gt; actions needed:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;(On 1st row no action needed, because "Status" does not match the main rule)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any tips for the issue? If more information is needed, don't hesitate to ask.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jere Aallikko&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 16:44:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-if-Function-in-DAX/m-p/1795583#M37833</guid>
      <dc:creator>jereaallikko</dc:creator>
      <dc:date>2021-04-20T16:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help with if Function in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-if-Function-in-DAX/m-p/1797090#M37861</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="237748" data-lia-user-login="jereaallikko" class="lia-mention lia-mention-user"&gt;jereaallikko&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Try this measure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#CountItems = 
COUNTAX(FILTER(T, T[Status] IN {"Pending","Open","Cancelled","Closed"} &amp;amp;&amp;amp; OR(T[InfStatus] = "Waiting", T[Group] = "Sales")), T[ID])&lt;/LI-CODE&gt;&lt;P&gt;&lt;FONT size="2" color="#333399"&gt;&lt;EM&gt;If this post helps, then please consider &lt;U&gt;Accept it as the solution&lt;/U&gt; &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;to help the other members find it more quickly.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 08:51:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-if-Function-in-DAX/m-p/1797090#M37861</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2021-04-21T08:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help with if Function in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-if-Function-in-DAX/m-p/1797908#M37874</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291363" data-lia-user-login="ERD" class="lia-mention lia-mention-user"&gt;ERD&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That worked out well! One more question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to modify the measure, that if there are no actions needed, the result will show as &lt;STRONG&gt;0&lt;/STRONG&gt;? Now it shows as "&lt;STRONG&gt;blank&lt;/STRONG&gt;". I am using Card as a visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Jere&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 14:02:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-if-Function-in-DAX/m-p/1797908#M37874</guid>
      <dc:creator>jereaallikko</dc:creator>
      <dc:date>2021-04-21T14:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help with if Function in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-if-Function-in-DAX/m-p/1797950#M37877</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="237748" data-lia-user-login="jereaallikko" class="lia-mention lia-mention-user"&gt;jereaallikko&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#CountItems = 
COALESCE(
COUNTAX(FILTER(T, T[Status] IN {"Pending","Open","Cancelled","Closed"} &amp;amp;&amp;amp; OR(T[InfStatus] = "Waiting", T[Group] = "Sales")), T[ID]),
0)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 21 Apr 2021 14:20:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-if-Function-in-DAX/m-p/1797950#M37877</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2021-04-21T14:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help with if Function in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-if-Function-in-DAX/m-p/1804432#M38095</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291363" data-lia-user-login="ERD" class="lia-mention lia-mention-user"&gt;ERD&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One more question regarding the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How should I mofidy the measure if I want to add more conditions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just as an example:&lt;/P&gt;&lt;P&gt;All the previous conditions + action needed when Handler = Jake? or ID = 578344&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to add conditions to the measure as below, but it is giving error.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;COALESCE(
COUNTAX(FILTER(T, T[Status] IN {"Pending","Open","Cancelled","Closed"} &amp;amp;&amp;amp; OR(T[InfStatus] = "Waiting", T[Group] = "Sales", T[Handler] = "Jake", T[ID] = "578344")), T[ID]),
0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jere&lt;/P&gt;</description>
      <pubDate>Sun, 25 Apr 2021 18:56:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-if-Function-in-DAX/m-p/1804432#M38095</guid>
      <dc:creator>jereaallikko</dc:creator>
      <dc:date>2021-04-25T18:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help with if Function in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-if-Function-in-DAX/m-p/1805035#M38115</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="237748" data-lia-user-login="jereaallikko" class="lia-mention lia-mention-user"&gt;jereaallikko&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You need to use Or (||) operator in this case.&amp;nbsp;&lt;A href="https://dax.guide/op/or/" target="_blank"&gt;https://dax.guide/op/or/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 06:36:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-if-Function-in-DAX/m-p/1805035#M38115</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2021-04-26T06:36:47Z</dc:date>
    </item>
  </channel>
</rss>

