<?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: New table column with GenerateSeries() in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-table-column-with-GenerateSeries/m-p/1053347#M14441</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code creates a range of dates, take a look at the steps on Power Query. First it get the recurrence for each row and generate a list of dates based on it. After that it expands the list on new rows, so the first 3 columns will be repeated with the new dates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you need just the first date for each month or the range ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ricardo&lt;/P&gt;</description>
    <pubDate>Tue, 28 Apr 2020 10:33:36 GMT</pubDate>
    <dc:creator>camargos88</dc:creator>
    <dc:date>2020-04-28T10:33:36Z</dc:date>
    <item>
      <title>New table column with GenerateSeries()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-table-column-with-GenerateSeries/m-p/1051128#M14382</link>
      <description>&lt;P&gt;Hello eveyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm new with DAX and i face to a problem.&lt;/P&gt;&lt;P&gt;I have a table from my SQL Server database where I have 3 columns BillingDate;&amp;nbsp;&lt;SPAN&gt;Recurrence (Month / Year); periodicity (a number)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'd like to generate a billing forecast for the next 3 years.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For that, I want to create a table column for each rows which contain all my next billing date occurencies. Is it possible?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;----------------------------------------------------------------------------------------------------------&lt;BR /&gt;Ex:&lt;BR /&gt;Current billing date: 01/01/2020&lt;BR /&gt;Recurrence: Month&lt;BR /&gt;Periodicity: 3&lt;BR /&gt;&lt;BR /&gt;I would like to generate a table column for the next 3 years like that:&lt;BR /&gt;04/01/2020; 07/01/2020; 10/01/2020; 01/01/2021; 04/01/2021; 07/01/2021; 10/01/2021; ....&lt;BR /&gt;----------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For that, i've generated a first new column 'MonthRecurrency' which calculate how many month I have to add basing to my 'Recurrence' column and my 'Periodicity' column.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To finish, I used the DAX function GenerateSeries() like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;GENERATESERIES('MyTable'[BillingDate].[Date]; DATEADD('MyTable'[BillingDate].[Date]; 36; MONTH); MaTable[MonthRecurrency])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yet, I have an error: "GenerateSeries arguments cannont be empty"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Am I on the good way, and if 'Yes', can you help me to find my mistake plz?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 14:24:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-table-column-with-GenerateSeries/m-p/1051128#M14382</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-27T14:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: New table column with GenerateSeries()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-table-column-with-GenerateSeries/m-p/1051946#M14412</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created an example using Power Query, take a look on Advanced Editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;File:&amp;nbsp;&lt;A title="PBIX" href="https://drive.google.com/file/d/1gdTEv78FtYL2qjvZmD5pzkAxT97gsBLh/view?usp=sharing" target="_blank" rel="noopener"&gt;Download PBIX&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ricardo&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 20:57:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-table-column-with-GenerateSeries/m-p/1051946#M14412</guid>
      <dc:creator>camargos88</dc:creator>
      <dc:date>2020-04-27T20:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: New table column with GenerateSeries()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-table-column-with-GenerateSeries/m-p/1052830#M14425</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="215853" data-lia-user-login="camargos88" class="lia-mention lia-mention-user"&gt;camargos88&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, thank you for replying.&lt;/P&gt;&lt;P&gt;if I correctly understand what you have done, you generated a column DateTime type for the forecast date?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, in my case, I need to generate a list of date for each rows on a period.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;If I take one row of your example:&lt;/P&gt;&lt;P&gt;Billing date: 01/01/2020&lt;/P&gt;&lt;P&gt;Recurrence: Month&lt;/P&gt;&lt;P&gt;Periodicity: 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this row, i'm waiting for a ForecastDate like this (a table): {04/01/2020; 07/01/2020; 10/01/2020; 01/01/2021; 04/01/2021; ...}&lt;/P&gt;&lt;P&gt;Is is possible to generate something like this for each rows of my tab?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 07:12:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-table-column-with-GenerateSeries/m-p/1052830#M14425</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-28T07:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: New table column with GenerateSeries()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-table-column-with-GenerateSeries/m-p/1053347#M14441</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code creates a range of dates, take a look at the steps on Power Query. First it get the recurrence for each row and generate a list of dates based on it. After that it expands the list on new rows, so the first 3 columns will be repeated with the new dates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you need just the first date for each month or the range ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ricardo&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 10:33:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-table-column-with-GenerateSeries/m-p/1053347#M14441</guid>
      <dc:creator>camargos88</dc:creator>
      <dc:date>2020-04-28T10:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: New table column with GenerateSeries()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-table-column-with-GenerateSeries/m-p/1053361#M14443</link>
      <description>&lt;P&gt;Ok, i now understand what you did.&lt;/P&gt;&lt;P&gt;While doing a DateTime table column as I expect you duplicate each row with the forecast date I expected. It's clever.&lt;/P&gt;&lt;P&gt;I will try your adanced query on my project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will give you a feedback.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank again for the help&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 10:43:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-table-column-with-GenerateSeries/m-p/1053361#M14443</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-28T10:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: New table column with GenerateSeries()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-table-column-with-GenerateSeries/m-p/1053368#M14444</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Doesn't work if you have a date table with all you dates ?&lt;/P&gt;&lt;P&gt;What do you want as result ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ricardo&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 10:48:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-table-column-with-GenerateSeries/m-p/1053368#M14444</guid>
      <dc:creator>camargos88</dc:creator>
      <dc:date>2020-04-28T10:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: New table column with GenerateSeries()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-table-column-with-GenerateSeries/m-p/1053382#M14445</link>
      <description>&lt;P&gt;Your reply seems logic and should work in my case, so what I expected don't matter.&lt;/P&gt;&lt;P&gt;Your solution seems to be better than mine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I said i'm new in Dax language so my option was probably not the good way to do such a thing.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 10:55:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-table-column-with-GenerateSeries/m-p/1053382#M14445</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-28T10:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: New table column with GenerateSeries()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-table-column-with-GenerateSeries/m-p/1053456#M14450</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you consider it as a solution, please mark as a solution and kudos. So we can close this topic and help others.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ricardo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 11:39:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-table-column-with-GenerateSeries/m-p/1053456#M14450</guid>
      <dc:creator>camargos88</dc:creator>
      <dc:date>2020-04-28T11:39:40Z</dc:date>
    </item>
  </channel>
</rss>

