<?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: DAX: PLACEHOLDER ERROR in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-PLACEHOLDER-ERROR/m-p/3556427#M136901</link>
    <description>&lt;P&gt;hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="636377" data-lia-user-login="LABrowne" class="lia-mention lia-mention-user"&gt;LABrowne&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try below&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CALCULATE (
    COUNTROWS(Orders),
    NOT(CONTAINSSTRING(Orders[OrderId], "Cancel")),
    NOT(CONTAINSSTRING(Orders[OrderId], "Under Review")),
    FILTER(
       VALUES(Orders[OrderId]),
      [OrderFil (%)] &amp;gt;= 1
    )
  )&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 28 Nov 2023 12:16:44 GMT</pubDate>
    <dc:creator>Dangar332</dc:creator>
    <dc:date>2023-11-28T12:16:44Z</dc:date>
    <item>
      <title>DAX: PLACEHOLDER ERROR</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-PLACEHOLDER-ERROR/m-p/3556387#M136894</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the below code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;No&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt; of Orders = &lt;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&lt;SPAN&gt;Any help would be great thanks very much.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Nov 2023 12:00:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-PLACEHOLDER-ERROR/m-p/3556387#M136894</guid>
      <dc:creator>LABrowne</dc:creator>
      <dc:date>2023-11-28T12:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: DAX: PLACEHOLDER ERROR</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-PLACEHOLDER-ERROR/m-p/3556396#M136896</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Assuming that you want to count the number of orders where the order ID does not contain "Cancel" or "Under Review" and the corresponding order fill percentage is greater than or equal to 1%, you can use the following modified code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;No. of Orders =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;COUNTROWS(Orders),&lt;BR /&gt;NOT(CONTAINSSTRING(Orders[OrderId], "Cancel")),&lt;BR /&gt;NOT(CONTAINSSTRING(Orders[OrderId], "Under Review")),&lt;BR /&gt;Orders[OrderFil (%)] &amp;gt;= 1&lt;BR /&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this modified code, I removed the unnecessary FILTER function and simplified the conditions within the CALCULATE function. The conditions for "Cancel" and "Under Review" are applied using the NOT(CONTAINSSTRING(...)) functions, and the condition for the order fill percentage is applied directly.&lt;/P&gt;&lt;P&gt;Make sure to replace "Orders" and "OrderId" with your actual table and column names if they are different in your dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;Accepting it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In case there is still a problem, please feel free and explain your issue in detail,&amp;nbsp;It will be my pleasure to assist you in any way I can.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 12:03:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-PLACEHOLDER-ERROR/m-p/3556396#M136896</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2023-11-28T12:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: DAX: PLACEHOLDER ERROR</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-PLACEHOLDER-ERROR/m-p/3556406#M136898</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry I am still getting the error I should have mentioned that&amp;nbsp;&lt;SPAN&gt;[OrderFil (%)] is a measure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Luke&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 12:08:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-PLACEHOLDER-ERROR/m-p/3556406#M136898</guid>
      <dc:creator>LABrowne</dc:creator>
      <dc:date>2023-11-28T12:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: DAX: PLACEHOLDER ERROR</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-PLACEHOLDER-ERROR/m-p/3556427#M136901</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="636377" data-lia-user-login="LABrowne" class="lia-mention lia-mention-user"&gt;LABrowne&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try below&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CALCULATE (
    COUNTROWS(Orders),
    NOT(CONTAINSSTRING(Orders[OrderId], "Cancel")),
    NOT(CONTAINSSTRING(Orders[OrderId], "Under Review")),
    FILTER(
       VALUES(Orders[OrderId]),
      [OrderFil (%)] &amp;gt;= 1
    )
  )&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 28 Nov 2023 12:16:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-PLACEHOLDER-ERROR/m-p/3556427#M136901</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-11-28T12:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: DAX: PLACEHOLDER ERROR</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-PLACEHOLDER-ERROR/m-p/3556441#M136903</link>
      <description>&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 12:26:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-PLACEHOLDER-ERROR/m-p/3556441#M136903</guid>
      <dc:creator>LABrowne</dc:creator>
      <dc:date>2023-11-28T12:26:54Z</dc:date>
    </item>
  </channel>
</rss>

