<?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: Date list with active projects based on start and enddate in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-list-with-active-projects-based-on-start-and-enddate/m-p/3146950#M112596</link>
    <description>&lt;P&gt;Oh, I see. You would need to generate a list of dates and merge to the table somehow to fill the gaps. Depending on what you want to do, there might be a better way to get the dates without having to materialize them. E.g. use a detatched calendar and dax if you want to count or sumarize within periods. This way you can drag the Date column from the Calendar table and the measure from the project table into a visual:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count projects = 
CALCULATE (
    sumx(
        DISTINCT('I have this data'[Project]),1
    ),
        FILTER (
            'I have this data',
            'I have this data'[dEnd] &amp;gt; MAX ( Calendar[Date] )&amp;amp;&amp;amp;
            'I have this data'[dStart] &amp;lt;= MAX ( Calendar[Date])
        )
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Mar 2023 11:04:29 GMT</pubDate>
    <dc:creator>tt_and</dc:creator>
    <dc:date>2023-03-22T11:04:29Z</dc:date>
    <item>
      <title>Date list with active projects based on start and enddate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-list-with-active-projects-based-on-start-and-enddate/m-p/3146824#M112588</link>
      <description>&lt;P&gt;Hello PBI community,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have this table:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Project dStart&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dEnd&lt;BR /&gt;001&amp;nbsp; &amp;nbsp; &amp;nbsp; 24-01-2023 10-02-2023&lt;BR /&gt;002&amp;nbsp; &amp;nbsp; &amp;nbsp; 25-01-2023 31-01-2023&lt;BR /&gt;003&amp;nbsp; &amp;nbsp; &amp;nbsp; 05-02-2022 11-02-2023&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a long date-list of it. With all the dates that have active projects. This would mean that dates should be added multiple time if there are multiple active projects on that date. It should look something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Project&lt;BR /&gt;24-01-2023&amp;nbsp; 001&lt;BR /&gt;25-01-2023&amp;nbsp; 001&lt;BR /&gt;25-01-2023&amp;nbsp; 002&lt;BR /&gt;26-01-2023&amp;nbsp; 001&lt;BR /&gt;26-01-2023&amp;nbsp; 002&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 09:56:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-list-with-active-projects-based-on-start-and-enddate/m-p/3146824#M112588</guid>
      <dc:creator>Lucht</dc:creator>
      <dc:date>2023-03-22T09:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Date list with active projects based on start and enddate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-list-with-active-projects-based-on-start-and-enddate/m-p/3146872#M112591</link>
      <description>&lt;P&gt;Have you considered doing this with Power Query?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Source = #"I have this data",
    #"Unpivoted Columns" = Table.UnpivotOtherColumns(Source, {"Project"}, "Attribute", "Value"),
    #"Renamed Columns" = Table.RenameColumns(#"Unpivoted Columns",{{"Attribute", "dName"}})
in
    #"Renamed Columns"&lt;/LI-CODE&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;</description>
      <pubDate>Wed, 22 Mar 2023 10:30:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-list-with-active-projects-based-on-start-and-enddate/m-p/3146872#M112591</guid>
      <dc:creator>tt_and</dc:creator>
      <dc:date>2023-03-22T10:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Date list with active projects based on start and enddate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-list-with-active-projects-based-on-start-and-enddate/m-p/3146896#M112593</link>
      <description>&lt;P&gt;I've tried this. But it will only provide me a list with all the start and end dates. I'm trying to find a solution that also adds all the in between dates.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 10:41:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-list-with-active-projects-based-on-start-and-enddate/m-p/3146896#M112593</guid>
      <dc:creator>Lucht</dc:creator>
      <dc:date>2023-03-22T10:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Date list with active projects based on start and enddate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-list-with-active-projects-based-on-start-and-enddate/m-p/3146950#M112596</link>
      <description>&lt;P&gt;Oh, I see. You would need to generate a list of dates and merge to the table somehow to fill the gaps. Depending on what you want to do, there might be a better way to get the dates without having to materialize them. E.g. use a detatched calendar and dax if you want to count or sumarize within periods. This way you can drag the Date column from the Calendar table and the measure from the project table into a visual:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count projects = 
CALCULATE (
    sumx(
        DISTINCT('I have this data'[Project]),1
    ),
        FILTER (
            'I have this data',
            'I have this data'[dEnd] &amp;gt; MAX ( Calendar[Date] )&amp;amp;&amp;amp;
            'I have this data'[dStart] &amp;lt;= MAX ( Calendar[Date])
        )
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 11:04:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-list-with-active-projects-based-on-start-and-enddate/m-p/3146950#M112596</guid>
      <dc:creator>tt_and</dc:creator>
      <dc:date>2023-03-22T11:04:29Z</dc:date>
    </item>
  </channel>
</rss>

