<?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 How to display current year and prior year in a line chart in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-current-year-and-prior-year-in-a-line-chart/m-p/3300702#M157415</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to plot a line on this line chart for Prior Year (same month previous year). But it doesn’t work on this chart. I just get 1 dot for the filter i choose. It is suppost to exclude the month filter and give the whole year plot. My Expense &amp;amp; Budget data is aggregated monthly, i do not have daily data.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use table, i should get the whole list but i didn't.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My formula are chart are&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Current Year = CALCULATE([Expenses MTD],REMOVEFILTERS('BIDWH BC_DIM_BFIN_FISCAL_PERIOD'[PERIOD_NAME_SHORT]))&lt;/LI&gt;&lt;/OL&gt;&lt;OL&gt;&lt;LI&gt;Budget Year = CALCULATE([Budget MTD],REMOVEFILTERS('BIDWH BC_DIM_BFIN_FISCAL_PERIOD'[PERIOD_NAME_SHORT]))&lt;/LI&gt;&lt;/OL&gt;&lt;OL&gt;&lt;LI&gt;Prior Year = CALCULATE([Expenses MTD], PARALLELPERIOD('BIDWH BC_DIM_DATE'[DATE],-12,MONTH), REMOVEFILTERS('BIDWH BC_DIM_BFIN_FISCAL_PERIOD'[PERIOD_NAME_SHORT]), 'BIDWH BC_DIM_BFIN_FISCAL_PERIOD'[FISCAL_YEAR] = SELECTEDVALUE('BIDWH BC_DIM_BFIN_FISCAL_PERIOD'[FISCAL_YEAR]) - 1)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Other related formula are&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Expenses = SUM('BIDWH BFIN_FACT_GL_ACCOUNT'[ACCOUNT_AMOUNT])&lt;/LI&gt;&lt;LI&gt;Expenses MTD = TOTALMTD([Expenses],'BIDWH BC_DIM_DATE'[DATE])&lt;/LI&gt;&lt;LI&gt;Budget = SUM('BIDWH BFIN_FACT_GL_ACCOUNT'[BUDGET_AMOUNT])&lt;/LI&gt;&lt;LI&gt;Budget MTD = TOTALMTD([Budget],'BIDWH BC_DIM_DATE'[DATE])&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This is the design of the data model&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Sat, 24 Jun 2023 10:56:35 GMT</pubDate>
    <dc:creator>ctaishah</dc:creator>
    <dc:date>2023-06-24T10:56:35Z</dc:date>
    <item>
      <title>How to display current year and prior year in a line chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-current-year-and-prior-year-in-a-line-chart/m-p/3300702#M157415</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to plot a line on this line chart for Prior Year (same month previous year). But it doesn’t work on this chart. I just get 1 dot for the filter i choose. It is suppost to exclude the month filter and give the whole year plot. My Expense &amp;amp; Budget data is aggregated monthly, i do not have daily data.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use table, i should get the whole list but i didn't.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My formula are chart are&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Current Year = CALCULATE([Expenses MTD],REMOVEFILTERS('BIDWH BC_DIM_BFIN_FISCAL_PERIOD'[PERIOD_NAME_SHORT]))&lt;/LI&gt;&lt;/OL&gt;&lt;OL&gt;&lt;LI&gt;Budget Year = CALCULATE([Budget MTD],REMOVEFILTERS('BIDWH BC_DIM_BFIN_FISCAL_PERIOD'[PERIOD_NAME_SHORT]))&lt;/LI&gt;&lt;/OL&gt;&lt;OL&gt;&lt;LI&gt;Prior Year = CALCULATE([Expenses MTD], PARALLELPERIOD('BIDWH BC_DIM_DATE'[DATE],-12,MONTH), REMOVEFILTERS('BIDWH BC_DIM_BFIN_FISCAL_PERIOD'[PERIOD_NAME_SHORT]), 'BIDWH BC_DIM_BFIN_FISCAL_PERIOD'[FISCAL_YEAR] = SELECTEDVALUE('BIDWH BC_DIM_BFIN_FISCAL_PERIOD'[FISCAL_YEAR]) - 1)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Other related formula are&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Expenses = SUM('BIDWH BFIN_FACT_GL_ACCOUNT'[ACCOUNT_AMOUNT])&lt;/LI&gt;&lt;LI&gt;Expenses MTD = TOTALMTD([Expenses],'BIDWH BC_DIM_DATE'[DATE])&lt;/LI&gt;&lt;LI&gt;Budget = SUM('BIDWH BFIN_FACT_GL_ACCOUNT'[BUDGET_AMOUNT])&lt;/LI&gt;&lt;LI&gt;Budget MTD = TOTALMTD([Budget],'BIDWH BC_DIM_DATE'[DATE])&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This is the design of the data model&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2023 10:56:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-current-year-and-prior-year-in-a-line-chart/m-p/3300702#M157415</guid>
      <dc:creator>ctaishah</dc:creator>
      <dc:date>2023-06-24T10:56:35Z</dc:date>
    </item>
  </channel>
</rss>

