<?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: Copied DAX expression does not work in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Copied-DAX-expression-does-not-work/m-p/2849352#M91265</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Did you paste this into a calculated Table expression instead of a measure expression?&lt;/P&gt;</description>
    <pubDate>Tue, 18 Oct 2022 14:47:53 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2022-10-18T14:47:53Z</dc:date>
    <item>
      <title>Copied DAX expression does not work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Copied-DAX-expression-does-not-work/m-p/2849348#M91264</link>
      <description>&lt;P&gt;Dear community, hopefully one of you can help me out with the issue I am currently dealing with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;first a bit of context;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am recreating a power BI report from an example, that contains a data table, a date table, and a measures table.&lt;/P&gt;&lt;P&gt;the data table contains personnel information, and consists of "closing" count of employees and "opening" count of employees. It shows at a given month what the amount of personnel was at the start of the month (opening), versus at the end of the month (closing).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the measures table will consist of 2 measures; how many "opening" workers vs. how many "closing" workers. In the example the formulas are;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;U&gt;ClosingWorkers = CALCULATE(count('Headcount development and turnover (2)'[Person Number]), 'Headcount development and turnover (2)'[Status] = "Closing")&lt;/U&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;and&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;U&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;OpeningWorkers = CALCULATE(count('Headcount development and turnover (2)'[Person Number]), 'Headcount development and turnover (2)'[Status] = "Opening")&lt;/FONT&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;All went well untill I tried to copy the DAX formula from the measures table. I receive the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"The expression specified in the query is not a valid table expression."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which is strange, because everything is correct according to the example file. and CALCULATE and COUNT are both expressions accepted by Power BI. Does anyone know why this error might occur? My suspision is that it has something to do with the difference in settings or installations, but I am far from an expert.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking forward to your replies, many thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 14:45:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Copied-DAX-expression-does-not-work/m-p/2849348#M91264</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-18T14:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Copied DAX expression does not work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Copied-DAX-expression-does-not-work/m-p/2849352#M91265</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Did you paste this into a calculated Table expression instead of a measure expression?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 14:47:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Copied-DAX-expression-does-not-work/m-p/2849352#M91265</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-10-18T14:47:53Z</dc:date>
    </item>
  </channel>
</rss>

