<?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: Add more years to a table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-more-years-to-a-table/m-p/3055363#M105377</link>
    <description>&lt;P&gt;You could do it in the SQL. Depending on the flavour of SQL you could take the query which currently pulls data for 2022 and use that to define a CTE. Then the query which returns data could be a union of the base data and as many copies as you need, adding values to the year column and changing the data values.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2023 14:13:01 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2023-02-01T14:13:01Z</dc:date>
    <item>
      <title>Add more years to a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-more-years-to-a-table/m-p/3055004#M105348</link>
      <description>&lt;P&gt;Hi everyone!&lt;/P&gt;&lt;P&gt;I have a table from SQL with some data by years/months that stops at December 2023.&lt;/P&gt;&lt;P&gt;I want to add more years with the same data as previous year, where Value is multiplied by 5%.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example for 2024, I need to have the same number of rows with the same data, except culmun Value which will be = Value * 5%.&lt;/P&gt;&lt;P&gt;Is it possible? Maybe in power query?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 11:32:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-more-years-to-a-table/m-p/3055004#M105348</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-01T11:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Add more years to a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-more-years-to-a-table/m-p/3055043#M105352</link>
      <description>&lt;P&gt;In Power Query you could duplicate the query for 2023, switch to the transform ribbon and use the Standard section from the Number column section to add 1 to the year and multiply the value by 1.05. Then append the 2 queries.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 11:46:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-more-years-to-a-table/m-p/3055043#M105352</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-02-01T11:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Add more years to a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-more-years-to-a-table/m-p/3055355#M105376</link>
      <description>&lt;P&gt;Thank You, but maybe there is a more automated solution?&lt;/P&gt;&lt;P&gt;I will need at least 3 more years to replicate and append, this will have an impact on performance.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 14:08:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-more-years-to-a-table/m-p/3055355#M105376</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-01T14:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Add more years to a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-more-years-to-a-table/m-p/3055363#M105377</link>
      <description>&lt;P&gt;You could do it in the SQL. Depending on the flavour of SQL you could take the query which currently pulls data for 2022 and use that to define a CTE. Then the query which returns data could be a union of the base data and as many copies as you need, adding values to the year column and changing the data values.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 14:13:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-more-years-to-a-table/m-p/3055363#M105377</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-02-01T14:13:01Z</dc:date>
    </item>
  </channel>
</rss>

