<?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: Use DAX to show dates without data with previous available record in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-DAX-to-show-dates-without-data-with-previous-available/m-p/1890066#M40716</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="272191" data-lia-user-login="Nomadexchris" class="lia-mention lia-mention-user"&gt;Nomadexchris&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check the below picture and the sample pbix file's link down below.&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;&lt;STRONG&gt;&lt;EM&gt;Price Update Measure =&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;IF (&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ISFILTERED ( Products[Product] ) &amp;amp;&amp;amp; ISFILTERED ( Dates[Date] ),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CALCULATE (&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;LASTNONBLANKVALUE ( 'Price'[Date], MAX ( 'Price'[Price] ) ),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;FILTER ( ALL ( Dates ), Dates[Date] &amp;lt;= MAX ( Dates[Date] ) )&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/s/yxrfqjs709fbcf4/nomadex.pbix?dl=0" target="_self"&gt;https://www.dropbox.com/s/yxrfqjs709fbcf4/nomadex.pbix?dl=0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;Hi, My name is Jihwan Kim. &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up. &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;Linkedin: linkedin.com/in/jihwankim1975/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;Twitter: twitter.com/Jihwan_JHKIM&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jun 2021 08:25:11 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2021-06-09T08:25:11Z</dc:date>
    <item>
      <title>Use DAX to show dates without data with previous available record</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-DAX-to-show-dates-without-data-with-previous-available/m-p/1889993#M40714</link>
      <description>&lt;P&gt;Hi guys, recently I was getting stuck on an issue that I would like to solve with DAX.&lt;/P&gt;&lt;P&gt;Let's say I have a sample sales data with two products each showing their respective price whenever there is a price change&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;As you could see, not all the dates between the earliest and latest date are included,&lt;/P&gt;&lt;P&gt;and I would like to show a DAX that basically shows all the data in between.&lt;/P&gt;&lt;P&gt;let's taking product 2 as an example, the earliest available date would be 1/5/2021 and there is no price change on 2/5/2021.&lt;/P&gt;&lt;P&gt;I would like to show in DAX/measure that on 2/5/2021, the price for product 2 is still 1,490. Same for all the date without data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this problem is easy to solve when the data size is small but it's hard to do it with millions of rows.&lt;/P&gt;&lt;P&gt;Any help is appreciated. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 08:00:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-DAX-to-show-dates-without-data-with-previous-available/m-p/1889993#M40714</guid>
      <dc:creator>Nomadexchris</dc:creator>
      <dc:date>2021-06-09T08:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Use DAX to show dates without data with previous available record</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-DAX-to-show-dates-without-data-with-previous-available/m-p/1890036#M40715</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="272191" data-lia-user-login="Nomadexchris" class="lia-mention lia-mention-user"&gt;Nomadexchris&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the desired output for this? A table? Do you need it in PQ or in DAX?&lt;/P&gt;
&lt;P&gt;Share a smaple of the input data in text-tabular format so that the contents can be copied&lt;/P&gt;
&lt;TABLE style="height: 100px; width: 100%; border-collapse: collapse; border-style: groove; border-color: #0c1c49; background-color: #00675f;" border="0" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15px;"&gt;
&lt;TD width="15.961305925030231%" style="width: 92px; height: 15px;"&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="84.03869407496977%" style="width: 485px; height: 15px; text-align: left;"&gt;&lt;FONT color="#FFFFFF"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Please accept the solution when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="#FFFFFF"&gt;&lt;SPAN style="color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;/FONT&gt;&lt;BR /&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4.5" color="#FF99CC"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 08:09:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-DAX-to-show-dates-without-data-with-previous-available/m-p/1890036#M40715</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2021-06-09T08:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Use DAX to show dates without data with previous available record</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-DAX-to-show-dates-without-data-with-previous-available/m-p/1890066#M40716</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="272191" data-lia-user-login="Nomadexchris" class="lia-mention lia-mention-user"&gt;Nomadexchris&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check the below picture and the sample pbix file's link down below.&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;&lt;STRONG&gt;&lt;EM&gt;Price Update Measure =&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;IF (&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ISFILTERED ( Products[Product] ) &amp;amp;&amp;amp; ISFILTERED ( Dates[Date] ),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CALCULATE (&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;LASTNONBLANKVALUE ( 'Price'[Date], MAX ( 'Price'[Price] ) ),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;FILTER ( ALL ( Dates ), Dates[Date] &amp;lt;= MAX ( Dates[Date] ) )&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/s/yxrfqjs709fbcf4/nomadex.pbix?dl=0" target="_self"&gt;https://www.dropbox.com/s/yxrfqjs709fbcf4/nomadex.pbix?dl=0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;Hi, My name is Jihwan Kim. &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up. &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;Linkedin: linkedin.com/in/jihwankim1975/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;Twitter: twitter.com/Jihwan_JHKIM&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 08:25:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-DAX-to-show-dates-without-data-with-previous-available/m-p/1890066#M40716</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-06-09T08:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Use DAX to show dates without data with previous available record</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-DAX-to-show-dates-without-data-with-previous-available/m-p/1890068#M40717</link>
      <description>&lt;P&gt;Hi AIB, thanks for the reply. The desired output would be DAX which shows all the empty dates with records from the previous date. Here is the input table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date Product Price&lt;/P&gt;&lt;P&gt;1/5/2021 Product_01 1990&lt;/P&gt;&lt;P&gt;2/5/2021 Product_01 1890&lt;/P&gt;&lt;P&gt;3/5/2021 Product_01 1790&lt;/P&gt;&lt;P&gt;1/5/2021 Product_02 1490&lt;/P&gt;&lt;P&gt;3/5/2021 Product_02 1290&lt;/P&gt;&lt;P&gt;7/6/2021 Product_02 1190&lt;/P&gt;&lt;P&gt;9/6/2021 Product_02 1290&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 08:25:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-DAX-to-show-dates-without-data-with-previous-available/m-p/1890068#M40717</guid>
      <dc:creator>Nomadexchris</dc:creator>
      <dc:date>2021-06-09T08:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Use DAX to show dates without data with previous available record</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-DAX-to-show-dates-without-data-with-previous-available/m-p/1890223#M40719</link>
      <description>&lt;P&gt;Dear Jihwan,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works like a charm. Thanks very much for the quick response. Never thought the answer is quick simple!!!!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 09:03:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-DAX-to-show-dates-without-data-with-previous-available/m-p/1890223#M40719</guid>
      <dc:creator>Nomadexchris</dc:creator>
      <dc:date>2021-06-09T09:03:05Z</dc:date>
    </item>
  </channel>
</rss>

