<?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 Error: A function 'PLACEHOLDER' has been used in a True/False expression that is used as a table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Error-A-function-PLACEHOLDER-has-been-used-in-a-True-False/m-p/2162605#M50006</link>
    <description>&lt;P&gt;Thank you! Im still searching for it too, will reply here if I found any&lt;/P&gt;</description>
    <pubDate>Fri, 29 Oct 2021 07:21:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-10-29T07:21:09Z</dc:date>
    <item>
      <title>DAX Error: A function 'PLACEHOLDER' has been used in a True/False expression that is used as a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Error-A-function-PLACEHOLDER-has-been-used-in-a-True-False/m-p/2162216#M49993</link>
      <description>&lt;P&gt;Hi, I am new to DAX. I have an assignment which requires me to convert all 3 steps tables to only one table using CALCULATETABLE function. When i tried to do for the first 2 steps, there is an error shown as below.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;Hereby I attach the 3 steps table for your reference:&lt;BR /&gt;&lt;BR /&gt;Table1:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;forecasting_uoa_payroll_step1 = 
    FILTER (  
        uoa_payslips_history_aggregated,
        DATEDIFF(uoa_payslips_history_aggregated[YearMonth],TODAY(),MONTH)&amp;lt;variable_uoa_per_cust_window[Variable_UoA_per_Cust_Window Value]+1
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 2:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;forecasting_uoa_payroll_step2 = 
    SUMMARIZE ( 
        forecasting_uoa_payroll_step1, 
        forecasting_uoa_payroll_step1[Country],
        "UoA Per Customer Average", AVERAGE(forecasting_uoa_payroll_step1[UoA_per_Customer])
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 3:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;forecasting_uoa_payroll_step3 = 
	SELECTCOLUMNS ( 
		customer_payroll_forecast,
		"Date", customer_payroll_forecast[YearMonth],
		"Country", customer_payroll_forecast[Country],
		"Customers", customer_payroll_forecast[Total Headcount]
	)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 04:12:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Error-A-function-PLACEHOLDER-has-been-used-in-a-True-False/m-p/2162216#M49993</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-29T04:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Error: A function 'PLACEHOLDER' has been used in a True/False expression that is used as a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Error-A-function-PLACEHOLDER-has-been-used-in-a-True-False/m-p/2162275#M49994</link>
      <description>&lt;P&gt;I just ran into the same error and found your question.&lt;BR /&gt;If I find the answer anywhere else, I'll post.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 04:56:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Error-A-function-PLACEHOLDER-has-been-used-in-a-True-False/m-p/2162275#M49994</guid>
      <dc:creator>elainepowell</dc:creator>
      <dc:date>2021-10-29T04:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Error: A function 'PLACEHOLDER' has been used in a True/False expression that is used as a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Error-A-function-PLACEHOLDER-has-been-used-in-a-True-False/m-p/2162605#M50006</link>
      <description>&lt;P&gt;Thank you! Im still searching for it too, will reply here if I found any&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 07:21:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Error-A-function-PLACEHOLDER-has-been-used-in-a-True-False/m-p/2162605#M50006</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-29T07:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Error: A function 'PLACEHOLDER' has been used in a True/False expression that is used as a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Error-A-function-PLACEHOLDER-has-been-used-in-a-True-False/m-p/2163056#M50028</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&amp;nbsp; I'm finding it hard to understand what you're trying to acheive.&amp;nbsp;&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;To help with your wider goal it would be useful if you can post a picture of your model and provide some sample data in table format, or share the .pbix if you can.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;A high-level description of what you're trying to do would help as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some general comments on the code that may help you:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Is the&amp;nbsp;uoa_payslips_history_aggregated[YearMonth] column a date or datetime type?&amp;nbsp; It needs to be to use the DATEDIFF function&lt;/LI&gt;
&lt;LI&gt;Best practice is to not use SUMMARIZE to add columns.&amp;nbsp; See&amp;nbsp;&lt;A href="https://www.sqlbi.com/articles/all-the-secrets-of-summarize/" target="_blank" rel="noopener"&gt;https://www.sqlbi.com/articles/all-the-secrets-of-summarize/&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;You could refactor step 2 as&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;forecasting_uoa_payroll_step2 = 
    ADDCOLUMNS( 
        VALUES(forecasting_uoa_payroll_step1[Country]),
        "UoA Per Customer Average", CALCULATE(AVERAGE(forecasting_uoa_payroll_step1[UoA_per_Customer]))
    )&lt;/LI-CODE&gt;
&lt;UL&gt;
&lt;LI&gt;However, I don't understand why you're doing that step.&amp;nbsp; Using this as a filter in CALCULATE/CALCULATETABLE isn't going to have any effect.&amp;nbsp; You calculate an average but then do nothing with it.&amp;nbsp; What are you trying to do here?&lt;/LI&gt;
&lt;LI&gt;It also references this:&amp;nbsp;forecasting_uoa_payroll_step1.&amp;nbsp; Does that exist now you've combined step1 and step 2 together?&lt;/LI&gt;
&lt;LI&gt;You say the ultimate aim is to create one table, but I don't see how Step 2 and Step 3 are in any way related&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 29 Oct 2021 10:40:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Error-A-function-PLACEHOLDER-has-been-used-in-a-True-False/m-p/2163056#M50028</guid>
      <dc:creator>PaulOlding</dc:creator>
      <dc:date>2021-10-29T10:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Error: A function 'PLACEHOLDER' has been used in a True/False expression that is used as a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Error-A-function-PLACEHOLDER-has-been-used-in-a-True-False/m-p/2223150#M52838</link>
      <description>&lt;P&gt;I don't know if this issue was solved or not, but just to keep in mind for these kind of situations,&amp;nbsp; we can not use both measures to check the boolean condition in the filter argument.&lt;/P&gt;&lt;P&gt;The following article explains the issue in detail.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://p3adaptive.com/2012/06/filter-when-why-how-to-use-it/" target="_blank"&gt;https://p3adaptive.com/2012/06/filter-when-why-how-to-use-it/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 15:00:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Error-A-function-PLACEHOLDER-has-been-used-in-a-True-False/m-p/2223150#M52838</guid>
      <dc:creator>mgb-nav-pbi</dc:creator>
      <dc:date>2021-12-06T15:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Error: A function 'PLACEHOLDER' has been used in a True/False expression that is used as a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Error-A-function-PLACEHOLDER-has-been-used-in-a-True-False/m-p/2367971#M60676</link>
      <description>&lt;P&gt;I'm having the same issue.&amp;nbsp; I'm guessing there hasn't been a fix found?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 17:24:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Error-A-function-PLACEHOLDER-has-been-used-in-a-True-False/m-p/2367971#M60676</guid>
      <dc:creator>KramGemm</dc:creator>
      <dc:date>2022-03-01T17:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Error: A function 'PLACEHOLDER' has been used in a True/False expression that is used as a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Error-A-function-PLACEHOLDER-has-been-used-in-a-True-False/m-p/2425570#M64408</link>
      <description>&lt;P&gt;Thanks "mgb-nav-pbi", your linked article has solved my issue,&lt;BR /&gt;whereby I got the same error, when uing a measure in a CALCULATE expression as a filter,&lt;BR /&gt;e.g. measure &amp;lt; 155.&lt;BR /&gt;Just putting the FILTER function in front of the measure has solved my issue,&lt;BR /&gt;e.g. FILTER(measure &amp;lt; 155)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rooms &amp;lt; $155&amp;nbsp;= CALCULATE(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM('Invoice'[Room Count]),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Invoice Line'[Item Group]="HOTEL",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &lt;FONT color="#FF6600"&gt;FILTER&lt;/FONT&gt; ([measure] &amp;lt; 155)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 02:06:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Error-A-function-PLACEHOLDER-has-been-used-in-a-True-False/m-p/2425570#M64408</guid>
      <dc:creator>Data-Rainer</dc:creator>
      <dc:date>2022-03-30T02:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Error: A function 'PLACEHOLDER' has been used in a True/False expression that is used as a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Error-A-function-PLACEHOLDER-has-been-used-in-a-True-False/m-p/2508620#M69542</link>
      <description>&lt;P&gt;This worked for me inside a calculate statment, anyone know the logic as to why this works? what is filter doing behind the scenes?&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 19:34:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Error-A-function-PLACEHOLDER-has-been-used-in-a-True-False/m-p/2508620#M69542</guid>
      <dc:creator>kjmusser4635678</dc:creator>
      <dc:date>2022-05-11T19:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Error: A function 'PLACEHOLDER' has been used in a True/False expression that is used as a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Error-A-function-PLACEHOLDER-has-been-used-in-a-True-False/m-p/2620699#M76306</link>
      <description>&lt;P&gt;Thank you &lt;SPAN class=""&gt;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/261748" target="_self"&gt;&lt;SPAN class=""&gt;mgb-nav-pbi&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt; for sharing this link!&lt;BR /&gt;It solved a simialr issue I have been facing!&lt;BR /&gt;Kudos to you!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 18:47:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Error-A-function-PLACEHOLDER-has-been-used-in-a-True-False/m-p/2620699#M76306</guid>
      <dc:creator>Rambo789</dc:creator>
      <dc:date>2022-07-05T18:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Error: A function 'PLACEHOLDER' has been used in a True/False expression that is used as a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Error-A-function-PLACEHOLDER-has-been-used-in-a-True-False/m-p/3058617#M105598</link>
      <description>&lt;P&gt;This is great, I was stuck with this issue for some days and this solution (FILTER) actually worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 17:42:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Error-A-function-PLACEHOLDER-has-been-used-in-a-True-False/m-p/3058617#M105598</guid>
      <dc:creator>Luiggo07</dc:creator>
      <dc:date>2023-02-02T17:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Error: A function 'PLACEHOLDER' has been used in a True/False expression that is used as a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Error-A-function-PLACEHOLDER-has-been-used-in-a-True-False/m-p/3293790#M122667</link>
      <description>&lt;P&gt;FILTER() works. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 17:49:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Error-A-function-PLACEHOLDER-has-been-used-in-a-True-False/m-p/3293790#M122667</guid>
      <dc:creator>SDittmannFleet</dc:creator>
      <dc:date>2023-06-20T17:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Error: A function 'PLACEHOLDER' has been used in a True/False expression that is used as a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Error-A-function-PLACEHOLDER-has-been-used-in-a-True-False/m-p/3740134#M145826</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="261748" data-lia-user-login="mgb-nav-pbi" class="lia-mention lia-mention-user"&gt;mgb-nav-pbi&lt;/a&gt;, mine issue also got resolved because of above link.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 13:11:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Error-A-function-PLACEHOLDER-has-been-used-in-a-True-False/m-p/3740134#M145826</guid>
      <dc:creator>ramdasanudas</dc:creator>
      <dc:date>2024-03-04T13:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Error: A function 'PLACEHOLDER' has been used in a True/False expression that is used as a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Error-A-function-PLACEHOLDER-has-been-used-in-a-True-False/m-p/4020815#M158633</link>
      <description>&lt;P&gt;Worked for me too, thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 15:02:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Error-A-function-PLACEHOLDER-has-been-used-in-a-True-False/m-p/4020815#M158633</guid>
      <dc:creator>swarren</dc:creator>
      <dc:date>2024-07-02T15:02:59Z</dc:date>
    </item>
  </channel>
</rss>

