<?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: placeholder error in measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-error-in-measure/m-p/2538189#M71412</link>
    <description>&lt;P&gt;ok, I found that the problem lies somewhere in the "last outputdate" - measure&lt;/P&gt;&lt;P&gt;because if I put in a hard value in measure 2, then it works correctly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;test = CALCULATE(MIN(fctArtikelposten[Posting_Date]),FILTER(fctArtikelposten,fctArtikelposten[Posting_Date]&amp;gt;=&lt;STRONG&gt;43830&lt;/STRONG&gt;))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will give me the first date there was activity on an article after 31-12-2019 (=43830)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;still no idea on how to fix it though, or why it wont accept the "last outputdate" instead&lt;/P&gt;</description>
    <pubDate>Wed, 25 May 2022 08:21:29 GMT</pubDate>
    <dc:creator>StefanH74</dc:creator>
    <dc:date>2022-05-25T08:21:29Z</dc:date>
    <item>
      <title>placeholder error in measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-error-in-measure/m-p/2536624#M71311</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 measures:&amp;nbsp;&lt;/P&gt;&lt;P&gt;- one to determine the last output-date of a product, this one works just fine, and does indeed return the correct date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;last outputdate = CALCULATE(MAX(fctArtikelposten[Posting_Date]),FILTER(fctArtikelposten,fctArtikelposten[Entry_Type]="Output"))&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;then I have a second measure to determine the first sales-date&amp;nbsp;&lt;STRONG&gt;after&lt;/STRONG&gt; the last outputdate (from measure 1)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;1e salesdate after last outputdate = &lt;/SPAN&gt;&lt;STRONG&gt;CALCULATE(CALCULATE(MIN(fctArtikelposten[Posting_Date]),fctArtikelposten[Entry_Type]="Sales"),fctArtikelposten[Posting_Date]&amp;gt;=[last outputdate])&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;on this last measure I get an error:&amp;nbsp;&lt;EM&gt;A function 'PLACEHOLDER' has been used in a True/False expression that is used as a table filter expression. This is not allowed.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;anyone know how to fix this??&lt;/DIV&gt;&lt;DIV&gt;Thanx, Stefan&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 May 2022 14:35:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-error-in-measure/m-p/2536624#M71311</guid>
      <dc:creator>StefanH74</dc:creator>
      <dc:date>2022-05-24T14:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: placeholder error in measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-error-in-measure/m-p/2537083#M71343</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="393479" data-lia-user-login="StefanH74" class="lia-mention lia-mention-user"&gt;StefanH74&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please try&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;2ndMeasure =
CALCULATE (
    CALCULATE (
        MIN ( fctArtikelposten[Posting_Date] ),
        fctArtikelposten[Entry_Type] = "Sales"
    ),
    FILTER ( fctArtikelposten, fctArtikelposten[Posting_Date] &amp;gt;= [last outputdate] )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 24 May 2022 17:39:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-error-in-measure/m-p/2537083#M71343</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-24T17:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: placeholder error in measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-error-in-measure/m-p/2537901#M71389</link>
      <description>&lt;P&gt;This does indeed remove the PLACEHOLDER error, only the measure is wrong, it returns the very first sales date, not the first after the last output-date. I looks like it doesnt apply the last filter:&lt;/P&gt;&lt;PRE&gt;FILTER ( fctArtikelposten, fctArtikelposten[Posting_Date] &amp;gt;= [last outputdate] &lt;/PRE&gt;</description>
      <pubDate>Wed, 25 May 2022 06:30:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-error-in-measure/m-p/2537901#M71389</guid>
      <dc:creator>StefanH74</dc:creator>
      <dc:date>2022-05-25T06:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: placeholder error in measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-error-in-measure/m-p/2537935#M71392</link>
      <description>&lt;P&gt;problem seems to be in this date-filter. this measure also ignores the filter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;test = CALCULATE(MIN(fctArtikelposten[Posting_Date]),FILTER(fctArtikelposten,fctArtikelposten[Posting_Date]&amp;gt;=[last outputdate]))&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;or&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;test2 =&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;MINX(CALCULATETABLE(fctArtikelposten,FILTER(fctArtikelposten,fctArtikelposten[Posting_Date]&amp;gt;=[last outputdate])),fctArtikelposten[Posting_Date])&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I'd love to hear it if somebody has an idea what I'm doing wrong.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 May 2022 07:26:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-error-in-measure/m-p/2537935#M71392</guid>
      <dc:creator>StefanH74</dc:creator>
      <dc:date>2022-05-25T07:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: placeholder error in measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-error-in-measure/m-p/2538189#M71412</link>
      <description>&lt;P&gt;ok, I found that the problem lies somewhere in the "last outputdate" - measure&lt;/P&gt;&lt;P&gt;because if I put in a hard value in measure 2, then it works correctly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;test = CALCULATE(MIN(fctArtikelposten[Posting_Date]),FILTER(fctArtikelposten,fctArtikelposten[Posting_Date]&amp;gt;=&lt;STRONG&gt;43830&lt;/STRONG&gt;))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will give me the first date there was activity on an article after 31-12-2019 (=43830)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;still no idea on how to fix it though, or why it wont accept the "last outputdate" instead&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 08:21:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-error-in-measure/m-p/2538189#M71412</guid>
      <dc:creator>StefanH74</dc:creator>
      <dc:date>2022-05-25T08:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: placeholder error in measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-error-in-measure/m-p/2538214#M71415</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="393479" data-lia-user-login="StefanH74" class="lia-mention lia-mention-user"&gt;StefanH74&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Perfect. Good job!&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 08:21:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-error-in-measure/m-p/2538214#M71415</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-25T08:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: placeholder error in measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-error-in-measure/m-p/2543199#M71694</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="393479" data-lia-user-login="StefanH74" class="lia-mention lia-mention-user"&gt;StefanH74&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check the formulas. ALLEXCEPT() is to do the calculation based on [product].&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;last outputdate =
CALCULATE (
    MAX ( fctArtikelposten[Posting_Date] ),
    FILTER (
        ALLEXCEPT ( fctArtikelposten, [product] ),
        fctArtikelposten[Entry_Type] = "Output"
    )
)
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;1e salesdate after last outputdate =
CALCULATE (
    MIN ( fctArtikelposten[Posting_Date] ),
    FILTER (
        ALLEXCEPT ( fctArtikelposten, [product] ),
        fctArtikelposten[Entry_Type] = "Sales"
            &amp;amp;&amp;amp; fctArtikelposten[Posting_Date] &amp;gt;= [last outputdate]
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jay&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 08:25:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-error-in-measure/m-p/2543199#M71694</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-27T08:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: placeholder error in measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-error-in-measure/m-p/2546953#M71959</link>
      <description>&lt;P&gt;Thanx to everyone for trying to help.&lt;/P&gt;&lt;P&gt;unfortunately your solutions did not work for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I managed to get the desired result, not by making a measure, but rather 2 calculated columns in my Item table&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 07:33:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-error-in-measure/m-p/2546953#M71959</guid>
      <dc:creator>StefanH74</dc:creator>
      <dc:date>2022-05-30T07:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: placeholder error in measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-error-in-measure/m-p/2547032#M71961</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="393479" data-lia-user-login="StefanH74" class="lia-mention lia-mention-user"&gt;StefanH74&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good job &lt;span class="lia-unicode-emoji" title=":clapping_hands:"&gt;👏&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 07:54:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-error-in-measure/m-p/2547032#M71961</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-30T07:54:42Z</dc:date>
    </item>
  </channel>
</rss>

