<?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: Modify DAX Formula to Include 2 Conditions in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Modify-DAX-Formula-to-Include-2-Conditions/m-p/3644638#M141122</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="667285" data-lia-user-login="jmetf150" class="lia-mention lia-mention-user"&gt;jmetf150&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;If I understand correctly, the issue is that you want to modify formula to include multiple conditions.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can modify the DAX formula to include the additional condition. Please try the following DAX formula and check&amp;nbsp;if can solve your problem:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total Orders by Vendor On Time = 
VAR OrdersPerVen = 'ZPSMGR'[Ven #]
RETURN
COUNTROWS(
    FILTER(
        ALL('ZPSMGR'),
        OrdersPerVen = 'ZPSMGR'[Ven #] &amp;amp;&amp;amp; 'ZPSMGR'[OTD] = "On Time"
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking forward to your reply.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wisdom Wu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jan 2024 01:43:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-01-18T01:43:06Z</dc:date>
    <item>
      <title>Modify DAX Formula to Include 2 Conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Modify-DAX-Formula-to-Include-2-Conditions/m-p/3643810#M141098</link>
      <description>&lt;LI-CODE lang="markup"&gt;Total Orders by Vendor = 
Var OrdersPerVen='ZPSMGR'[Ven #]
Return
Countrows(
    filter(
        All('ZPSMGR'),OrdersPerVen='ZPSMGR'[Ven #]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am making a dashboard for on time delivery metrics.&amp;nbsp; I figured out how to countrows for only a certain ven number to see how many orders were recieved from that vendor.&amp;nbsp; Now I need to add another column with the same code but with an additonal condition/pararmeter (that may be the wrong term) that will show me only rows with that [Ven #] &amp;amp;&amp;amp; were "On Time" from the [OTD] column.&amp;nbsp; &amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 17 Jan 2024 15:26:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Modify-DAX-Formula-to-Include-2-Conditions/m-p/3643810#M141098</guid>
      <dc:creator>jmetf150</dc:creator>
      <dc:date>2024-01-17T15:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Modify DAX Formula to Include 2 Conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Modify-DAX-Formula-to-Include-2-Conditions/m-p/3644638#M141122</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="667285" data-lia-user-login="jmetf150" class="lia-mention lia-mention-user"&gt;jmetf150&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;If I understand correctly, the issue is that you want to modify formula to include multiple conditions.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can modify the DAX formula to include the additional condition. Please try the following DAX formula and check&amp;nbsp;if can solve your problem:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total Orders by Vendor On Time = 
VAR OrdersPerVen = 'ZPSMGR'[Ven #]
RETURN
COUNTROWS(
    FILTER(
        ALL('ZPSMGR'),
        OrdersPerVen = 'ZPSMGR'[Ven #] &amp;amp;&amp;amp; 'ZPSMGR'[OTD] = "On Time"
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking forward to your reply.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wisdom Wu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 01:43:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Modify-DAX-Formula-to-Include-2-Conditions/m-p/3644638#M141122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-18T01:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Modify DAX Formula to Include 2 Conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Modify-DAX-Formula-to-Include-2-Conditions/m-p/3652540#M141501</link>
      <description>&lt;P&gt;That worked.&amp;nbsp; Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 21:52:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Modify-DAX-Formula-to-Include-2-Conditions/m-p/3652540#M141501</guid>
      <dc:creator>jmetf150</dc:creator>
      <dc:date>2024-01-22T21:52:25Z</dc:date>
    </item>
  </channel>
</rss>

