<?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: DAX – Accumulated days between two datekeys in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-days-between-two-datekeys/m-p/3128400#M111209</link>
    <description>&lt;P&gt;Thank you for your replay, yes im connected to the tabular model live . And as for the date, its an old soulution, and the way they set it up is so that date key is 99999999. Its to big of a soulution to start rebuilding alot of logic using today() so i just have to go with the flow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I managed to solve this problem using SQL View that i added to my Model.&lt;BR /&gt;With a crossjoin i had to specify all the dates that a project contains wich resulted in a table with 821 rows became a 160.000 rows view.&lt;BR /&gt;&lt;BR /&gt;Not the best soulution but it works for now.&lt;BR /&gt;&lt;BR /&gt;Thank you for the response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Mar 2023 14:59:52 GMT</pubDate>
    <dc:creator>NoccoLoco</dc:creator>
    <dc:date>2023-03-13T14:59:52Z</dc:date>
    <item>
      <title>DAX – Accumulated days between two datekeys</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-days-between-two-datekeys/m-p/3103766#M109238</link>
      <description>&lt;P&gt;I’ve got a Tabular data model that contains information about projects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The project table “FaktProjects” include “&lt;STRONG&gt;StartDate&lt;/STRONG&gt;”, “&lt;STRONG&gt;EndDate&lt;/STRONG&gt;”, “&lt;STRONG&gt;ProjectName&lt;/STRONG&gt;”, “&lt;STRONG&gt;Organisation&lt;/STRONG&gt;” and some ID’s to connect to other Dimension tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My “&lt;STRONG&gt;DimDate&lt;/STRONG&gt;” table have some general date values and are connected to the “&lt;STRONG&gt;FaktProject&lt;/STRONG&gt;” table through &lt;U&gt;FaktProjects[StartDate] * &amp;lt;- 1 DimDate[DateKey]&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both “&lt;STRONG&gt;StartDate&lt;/STRONG&gt;” and “&lt;STRONG&gt;EndDate&lt;/STRONG&gt;” are in the Datekey format (“&lt;STRONG&gt;YYYYDDMM&lt;/STRONG&gt;”) and where a project is ongoing (They don’t have a &lt;STRONG&gt;EndDate&lt;/STRONG&gt;) the “&lt;STRONG&gt;EndDate&lt;/STRONG&gt;” values is set to “99999999”.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to calculate the days between “&lt;STRONG&gt;StartDate&lt;/STRONG&gt;” and “&lt;STRONG&gt;EndDate&lt;/STRONG&gt;” and the sum needs to be visualized in a matrix where the value should accumulated over selected Year and shown for each month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example: Project 1 has “StartDate” 20220101 and “EndDate” 20220205.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In the matrix the value for January should be 31 since the project has been active throughout January.&lt;/P&gt;&lt;P&gt;In February the value for the same project should be 36 since the project were still going for 5 days in February.&lt;/P&gt;&lt;P&gt;In Mars, the value should still be 36 since the project is no longer active and no more days should be added.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 13:38:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-days-between-two-datekeys/m-p/3103766#M109238</guid>
      <dc:creator>NoccoLoco</dc:creator>
      <dc:date>2023-02-28T13:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: DAX – Accumulated days between two datekeys</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-days-between-two-datekeys/m-p/3112899#M110079</link>
      <description>&lt;LI-CODE lang="markup"&gt;They don’t have a EndDate) the “EndDate” values is set to “99999999”.&lt;/LI-CODE&gt;
&lt;P&gt;Make sure you don't use CALENDARAUTO or auto date/time hierarchies. This will result in ginormous date tables.&amp;nbsp; Better to replace with null or TODAY().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you connecting live to the tabular model, or with mixed mode?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 02:42:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-days-between-two-datekeys/m-p/3112899#M110079</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-03-06T02:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: DAX – Accumulated days between two datekeys</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-days-between-two-datekeys/m-p/3128400#M111209</link>
      <description>&lt;P&gt;Thank you for your replay, yes im connected to the tabular model live . And as for the date, its an old soulution, and the way they set it up is so that date key is 99999999. Its to big of a soulution to start rebuilding alot of logic using today() so i just have to go with the flow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I managed to solve this problem using SQL View that i added to my Model.&lt;BR /&gt;With a crossjoin i had to specify all the dates that a project contains wich resulted in a table with 821 rows became a 160.000 rows view.&lt;BR /&gt;&lt;BR /&gt;Not the best soulution but it works for now.&lt;BR /&gt;&lt;BR /&gt;Thank you for the response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 14:59:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-days-between-two-datekeys/m-p/3128400#M111209</guid>
      <dc:creator>NoccoLoco</dc:creator>
      <dc:date>2023-03-13T14:59:52Z</dc:date>
    </item>
  </channel>
</rss>

