<?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 prior year calculion in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-prior-year-calculion/m-p/3528522#M135590</link>
    <description>&lt;P&gt;In Tabular editor i get&amp;nbsp;&lt;STRONG&gt;&lt;U&gt;Error&amp;nbsp; Syntax error near Total_Sales_Prior_Year. Expected EOF / DEFINE / EVALUATE&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Nov 2023 21:06:24 GMT</pubDate>
    <dc:creator>jeannier2022</dc:creator>
    <dc:date>2023-11-10T21:06:24Z</dc:date>
    <item>
      <title>Dax prior year calculion</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-prior-year-calculion/m-p/3528515#M135587</link>
      <description>&lt;P&gt;I have a dax calculation that errors out. i am very new to dax and trying to figure out what i did wrong.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Total_Sales_Prior_Year =
VAR InventoryTypeFilter =
    FILTER (
        'SALES ORDER, SHIPMENT, &amp;amp; INVOICE DATA',
        [INVENTORY TYPE] = "GROWER"
    )
VAR SalesOrderStatusFilter =
    FILTER (
        'SALES ORDER STATUSES LUT',
        [SALES ORDER STATUS] = "SHIPPED"
    )
VAR StyleFilter =
    FILTER (
        'STYLE LUT',
        [INCLUDE/EXCLUDE] = "INCLUDE"
    )
VAR GradeFilter =
    FILTER (
        'GRADE LUT',
        [INCLUDE/EXCLUDE] = "INCLUDE"
    )
VAR v_Current_Year = MAX ( 'DATE LUT'[CROP YEAR] )
RETURN
    CALCULATE(
        SUM( 'SALES ORDER, SHIPMENT, &amp;amp; INVOICE DATA'[EQUIVALENT QUANTITY]),
        InventoryTypeFilter,
        SalesOrderStatusFilter,
        StyleFilter,
        GradeFilter,
        'Table'[Year Number] = v_Current_Year - 1
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Not sure where to start with the troubleshooting&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 20:49:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-prior-year-calculion/m-p/3528515#M135587</guid>
      <dc:creator>jeannier2022</dc:creator>
      <dc:date>2023-11-10T20:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dax prior year calculion</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-prior-year-calculion/m-p/3528516#M135588</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="620732" data-lia-user-login="jeannier2022" class="lia-mention lia-mention-user"&gt;jeannier2022&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what error do you get?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 20:53:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-prior-year-calculion/m-p/3528516#M135588</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-11-10T20:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dax prior year calculion</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-prior-year-calculion/m-p/3528519#M135589</link>
      <description>&lt;P&gt;In Dax Studios&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 21:00:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-prior-year-calculion/m-p/3528519#M135589</guid>
      <dc:creator>jeannier2022</dc:creator>
      <dc:date>2023-11-10T21:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dax prior year calculion</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-prior-year-calculion/m-p/3528522#M135590</link>
      <description>&lt;P&gt;In Tabular editor i get&amp;nbsp;&lt;STRONG&gt;&lt;U&gt;Error&amp;nbsp; Syntax error near Total_Sales_Prior_Year. Expected EOF / DEFINE / EVALUATE&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 21:06:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-prior-year-calculion/m-p/3528522#M135590</guid>
      <dc:creator>jeannier2022</dc:creator>
      <dc:date>2023-11-10T21:06:24Z</dc:date>
    </item>
  </channel>
</rss>

