<?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: Create missing records for missing dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-missing-records-for-missing-dates/m-p/2302663#M56909</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Even if this is not the solution to my problem, thanks to your suggested links, I refreshed a bit my knowledge on join types. Very interesting the article on DAX join with related or not related tables!&lt;/P&gt;&lt;P&gt;For my situation the CROSSJOIN (cartesian product of 2 tables) is the only solution to avoid losing "date" records.&lt;/P&gt;&lt;P&gt;Thank you for your input, you deserve a Kudo!&lt;/P&gt;&lt;P&gt;maclura&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jan 2022 09:16:39 GMT</pubDate>
    <dc:creator>maclura</dc:creator>
    <dc:date>2022-01-26T09:16:39Z</dc:date>
    <item>
      <title>Create missing records for missing dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-missing-records-for-missing-dates/m-p/2300868#M56824</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I know there are many questions like this, but I don't have enough DAX to customize them to solve my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In short,&lt;/P&gt;&lt;P&gt;I have this daily summary table&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;and I need to transform it like this&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Until now I am just able to create a table which is the cartesian product of [ID] and my calendar [Date] with CROSSJOIN.&lt;BR /&gt;But I don't know how to associate the existing Val 1,2 and 3 to the proper record and populate the missing values with zeroes.&lt;BR /&gt;&lt;BR /&gt;Thanks for any help.&lt;/P&gt;&lt;P&gt;maclura&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 11:11:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-missing-records-for-missing-dates/m-p/2300868#M56824</guid>
      <dc:creator>maclura</dc:creator>
      <dc:date>2022-01-25T11:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create missing records for missing dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-missing-records-for-missing-dates/m-p/2301121#M56834</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="182199" data-lia-user-login="maclura" class="lia-mention lia-mention-user"&gt;maclura&lt;/a&gt; , Do a left join in power query( Date table should be first or on left) , create a date table in power query&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/" target="_blank" rel="noopener"&gt;https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.mssqltips.com/sqlservertip/6756/power-bi-calendar-table/" target="_blank" rel="noopener"&gt;https://www.mssqltips.com/sqlservertip/6756/power-bi-calendar-table/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DAX Joines. or related columns&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/" target="_blank"&gt;https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 13:41:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-missing-records-for-missing-dates/m-p/2301121#M56834</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-01-25T13:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create missing records for missing dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-missing-records-for-missing-dates/m-p/2301863#M56871</link>
      <description>&lt;P&gt;Once you have the cross join, one option to populate the columns is with a LOOKUPVALUE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;Val1 =
LOOKUPVALUE (
    Summary[Val1],
    Summary[ID], Transform[ID],
    Summary[Date], Transform[Date],
    0
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 25 Jan 2022 21:22:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-missing-records-for-missing-dates/m-p/2301863#M56871</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2022-01-25T21:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create missing records for missing dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-missing-records-for-missing-dates/m-p/2302647#M56907</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="39298" data-lia-user-login="AlexisOlson" class="lia-mention lia-mention-user"&gt;AlexisOlson&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;LOOKUPVALUE just works great! It's the solution to my problem.&lt;/P&gt;&lt;P&gt;It also allows me to avoid to SUMMARIZE duplicate entries in the source table. This is great!&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;maclura&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 09:10:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-missing-records-for-missing-dates/m-p/2302647#M56907</guid>
      <dc:creator>maclura</dc:creator>
      <dc:date>2022-01-26T09:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create missing records for missing dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-missing-records-for-missing-dates/m-p/2302663#M56909</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Even if this is not the solution to my problem, thanks to your suggested links, I refreshed a bit my knowledge on join types. Very interesting the article on DAX join with related or not related tables!&lt;/P&gt;&lt;P&gt;For my situation the CROSSJOIN (cartesian product of 2 tables) is the only solution to avoid losing "date" records.&lt;/P&gt;&lt;P&gt;Thank you for your input, you deserve a Kudo!&lt;/P&gt;&lt;P&gt;maclura&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 09:16:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-missing-records-for-missing-dates/m-p/2302663#M56909</guid>
      <dc:creator>maclura</dc:creator>
      <dc:date>2022-01-26T09:16:39Z</dc:date>
    </item>
  </channel>
</rss>

