<?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: how to make 3 columns added in dax with filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-make-3-columns-added-in-dax-with-filter/m-p/4838260#M184771</link>
    <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1082687" data-lia-user-login="krishna_murthy" class="lia-mention lia-mention-user"&gt;krishna_murthy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try the following code:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Order quantity =
CALCULATE(
    COUNTROWS(order_items),
    FILTER(
        order_items,
       
 NOT( outward_orders[event_type] in {"OUTWARD_ORDER_CANCEL", "OUTWARD_ORDER_COMPLETE" , "OUTWARD_ORDER_SHIPMENT_DISPATCH " })
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you are using the &amp;amp;&amp;amp; (and) syntax the values need to be the same I assume that each of your values have only one value so if you add them in a list you can get those rows, since you want to have the different values you need to use the NOT syntax. Since there is a relationship between both tables theres is no need to do the RELATED option&lt;/P&gt;</description>
    <pubDate>Mon, 29 Sep 2025 17:37:14 GMT</pubDate>
    <dc:creator>MFelix</dc:creator>
    <dc:date>2025-09-29T17:37:14Z</dc:date>
    <item>
      <title>how to make 3 columns added in dax with filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-make-3-columns-added-in-dax-with-filter/m-p/4838239#M184770</link>
      <description>&lt;P&gt;hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Requesting please check below concern and do the needful.&lt;/P&gt;&lt;P&gt;i have a Event_type fileld in that many classification but i need to add 3 columns to caclualte cont of orders&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Order quantity = event_type(OUTWARD_ORDER_CANCEL) +&amp;nbsp;event_type( OUTWARD_ORDER_COMPLETE) +&amp;nbsp;event_type( OUTWARD_ORDER_SHIPMENT_DISPATCH)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;is that possible make one dax expression ???? finaly i need all 3 columns should be added and show total orders&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Below DAX i have used but getting wrong count values&amp;nbsp; , please fix it is possible&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Order quantity =&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;CALCULATE(&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; COUNTROWS(order_items),&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; FILTER(&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; order_items,&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RELATED(outward_orders[event_type]) &amp;lt;&amp;gt; "OUTWARD_ORDER_CANCEL" &amp;amp;&amp;amp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RELATED(outward_orders[event_type]) &amp;lt;&amp;gt; "OUTWARD_ORDER_COMPLETE" &amp;amp;&amp;amp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RELATED(outward_orders[event_type]) &amp;lt;&amp;gt; "OUTWARD_ORDER_SHIPMENT_DISPATCH "&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; ))&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Sep 2025 16:58:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-make-3-columns-added-in-dax-with-filter/m-p/4838239#M184770</guid>
      <dc:creator>krishna_murthy</dc:creator>
      <dc:date>2025-09-29T16:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to make 3 columns added in dax with filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-make-3-columns-added-in-dax-with-filter/m-p/4838260#M184771</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1082687" data-lia-user-login="krishna_murthy" class="lia-mention lia-mention-user"&gt;krishna_murthy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try the following code:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Order quantity =
CALCULATE(
    COUNTROWS(order_items),
    FILTER(
        order_items,
       
 NOT( outward_orders[event_type] in {"OUTWARD_ORDER_CANCEL", "OUTWARD_ORDER_COMPLETE" , "OUTWARD_ORDER_SHIPMENT_DISPATCH " })
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you are using the &amp;amp;&amp;amp; (and) syntax the values need to be the same I assume that each of your values have only one value so if you add them in a list you can get those rows, since you want to have the different values you need to use the NOT syntax. Since there is a relationship between both tables theres is no need to do the RELATED option&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2025 17:37:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-make-3-columns-added-in-dax-with-filter/m-p/4838260#M184771</guid>
      <dc:creator>MFelix</dc:creator>
      <dc:date>2025-09-29T17:37:14Z</dc:date>
    </item>
  </channel>
</rss>

