<?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 The Syntax for... is incorrect in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-Syntax-for-is-incorrect/m-p/3028527#M103382</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I cannot for the life of me determine what is wrong with this statement.&amp;nbsp; Any help appreciated&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jan 2023 11:56:04 GMT</pubDate>
    <dc:creator>Maybrick1046</dc:creator>
    <dc:date>2023-01-18T11:56:04Z</dc:date>
    <item>
      <title>The Syntax for... is incorrect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-Syntax-for-is-incorrect/m-p/3028527#M103382</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I cannot for the life of me determine what is wrong with this statement.&amp;nbsp; Any help appreciated&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 11:56:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-Syntax-for-is-incorrect/m-p/3028527#M103382</guid>
      <dc:creator>Maybrick1046</dc:creator>
      <dc:date>2023-01-18T11:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: The Syntax for... is incorrect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-Syntax-for-is-incorrect/m-p/3028537#M103383</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;var needs return in the end and then you can refer to the variable.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;E.g. measure = var _a = 1&lt;BR /&gt;return&amp;nbsp;&lt;BR /&gt;_a&lt;BR /&gt;&lt;BR /&gt;So add: "return" and "data" and you are good&lt;BR /&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 12:01:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-Syntax-for-is-incorrect/m-p/3028537#M103383</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2023-01-18T12:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: The Syntax for... is incorrect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-Syntax-for-is-incorrect/m-p/3028688#M103393</link>
      <description>&lt;P&gt;Not working with the return&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 13:05:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-Syntax-for-is-incorrect/m-p/3028688#M103393</guid>
      <dc:creator>Maybrick1046</dc:creator>
      <dc:date>2023-01-18T13:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: The Syntax for... is incorrect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-Syntax-for-is-incorrect/m-p/3028704#M103396</link>
      <description>&lt;P&gt;Hi, At a quick glance it seems you are missing closing ')' from your data variable.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 13:09:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-Syntax-for-is-incorrect/m-p/3028704#M103396</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2023-01-18T13:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: The Syntax for... is incorrect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-Syntax-for-is-incorrect/m-p/3028711#M103398</link>
      <description>&lt;P&gt;There are many variables, and if you notice, in the data table itself it's not finding the field name.&amp;nbsp; Can&amp;nbsp; I hire you to help me get this right?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 13:11:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-Syntax-for-is-incorrect/m-p/3028711#M103398</guid>
      <dc:creator>Maybrick1046</dc:creator>
      <dc:date>2023-01-18T13:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: The Syntax for... is incorrect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-Syntax-for-is-incorrect/m-p/3028805#M103412</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;The reference is greyd out if the rest of the table syntax is not working. E.g. Here I tested some similar syntax in my machine:&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Measure 29 = &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;SELECTCOLUMNS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table (15)'&lt;/SPAN&gt;&lt;SPAN&gt;[Column1]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;"x"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/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https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-Syntax-for-is-incorrect/m-p/3028805#M103412</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2023-01-18T13:42:14Z</dc:date>
    </item>
  </channel>
</rss>

