<?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: Generate rows conditionally in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generate-rows-conditionally/m-p/1849311#M39497</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Could you please provide some sample data for the same.?&lt;/P&gt;</description>
    <pubDate>Tue, 18 May 2021 16:57:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-05-18T16:57:33Z</dc:date>
    <item>
      <title>Generate rows conditionally</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generate-rows-conditionally/m-p/1849194#M39491</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'am working in a calculated table with the following fields:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ContractID (numerical value)&lt;/LI&gt;&lt;LI&gt;Accounting period (always the first of the month, e.g. 1-1-2021, 1-2-2021 and so on).&lt;/LI&gt;&lt;LI&gt;Contract end date (can be any date value)&lt;/LI&gt;&lt;LI&gt;Recurring charge&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example is:&lt;/P&gt;&lt;P&gt;ContractID - AccountingPeriod - ContractEndDate - MonthlyRecurringCharge&lt;/P&gt;&lt;P&gt;3001 - 1-1-2021 - 31-12-2021 - 30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data consists of around 70000 rows per month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal is that it generates rows for every accounting period within the contract end date a row with the recurring charge, for example:&lt;/P&gt;&lt;P&gt;ContractID - AccountingPeriod - ContractEndDate - MonthlyRecurringCharge&lt;/P&gt;&lt;P&gt;3001 - 1-1-2021 - 31-12-2021 - 30&lt;/P&gt;&lt;P&gt;3001 - 1-2-2021 - 31-12-2021 - 30&lt;/P&gt;&lt;P&gt;3001 - 1-3-2021 - 31-12-2021 - 30&lt;/P&gt;&lt;P&gt;3001 - 1-4-2021 - 31-12-2021 - 30&lt;/P&gt;&lt;P&gt;3001 - 1-5-2021 - 31-12-2021 - 30&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;3001 - 1-12-2021 - 31-12-2021 - 30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have come upon some coding in M, but I cant figure out how that works within a calculated table (seems not working as query editor is not available?).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope there is a solution for this within DAX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thom&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 16:05:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generate-rows-conditionally/m-p/1849194#M39491</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-18T16:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Generate rows conditionally</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generate-rows-conditionally/m-p/1849311#M39497</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Could you please provide some sample data for the same.?&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 16:57:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generate-rows-conditionally/m-p/1849311#M39497</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-18T16:57:33Z</dc:date>
    </item>
  </channel>
</rss>

