<?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: Calculating daily increase where date has gap in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-daily-increase-where-date-has-gap/m-p/2503060#M69243</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for willing to help. Yes this is a table visual and I have a date table. I am trying to create a measure. But calculted column will help as well if we can get the accurate result. Please find the attached file.&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1euQWRuYiH7Svm2pR2-UstXP56YeooWGF/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1euQWRuYiH7Svm2pR2-UstXP56YeooWGF/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 May 2022 20:37:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-09T20:37:44Z</dc:date>
    <item>
      <title>Calculating daily increase where date has gap</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-daily-increase-where-date-has-gap/m-p/2502802#M69224</link>
      <description>&lt;P&gt;I have a table with Date and Sales. I want to calculate daily increase. Just want to know the previous day's sales. However my dates are not in order. There are lot of missing dates. I tried to use PREVIOUSDAY and DATEADD functions. But it is not helping because there is gap in my date. Please help me with the DAX formula.&lt;BR /&gt;ResultDailyIncreatse = PREVIOUSDAY(Date[Date])&lt;BR /&gt;DATEADD(Date[Date], -1, DAY)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 18:07:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-daily-increase-where-date-has-gap/m-p/2502802#M69224</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-09T18:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating daily increase where date has gap</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-daily-increase-where-date-has-gap/m-p/2502915#M69227</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess this is a table visual? Shall I assume that you have date table? Are the results summarized by sum? Are trying to create a measure or a calculated column&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 19:19:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-daily-increase-where-date-has-gap/m-p/2502915#M69227</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-09T19:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating daily increase where date has gap</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-daily-increase-where-date-has-gap/m-p/2503060#M69243</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for willing to help. Yes this is a table visual and I have a date table. I am trying to create a measure. But calculted column will help as well if we can get the accurate result. Please find the attached file.&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1euQWRuYiH7Svm2pR2-UstXP56YeooWGF/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1euQWRuYiH7Svm2pR2-UstXP56YeooWGF/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 20:37:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-daily-increase-where-date-has-gap/m-p/2503060#M69243</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-09T20:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating daily increase where date has gap</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-daily-increase-where-date-has-gap/m-p/2509103#M69556</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I cannot edit the Sales_Table in the Power Query. So I create a new table instead of Sales_Table. You can try my operations on Sales_Table.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Click Home&amp;gt;&amp;gt;Transform data&amp;gt;&amp;gt;Add column&amp;gt;&amp;gt; Add index column&amp;gt;&amp;gt; From 1. Like the following:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then create a measure on Sales_Table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
VAR _nextvalue =
    CALCULATE (
        MAX ( 'Table'[sales] ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[Index]
                = SELECTEDVALUE ( 'Table'[Index] ) + 1
        )
    )
VAR _noevalue =
    MAX ( 'Table'[sales] )
RETURN
    _nextvalue - _noevalue
&lt;/LI-CODE&gt;
&lt;P&gt;Or a column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column =
VAR _nextvalue =
    CALCULATE (
        MAX ( 'Table'[sales] ),
        FILTER ( ALL ( 'Table' ), 'Table'[Index] = EARLIER ( 'Table'[Index] ) + 1 )
    )
VAR _noevalue = 'Table'[sales]
RETURN
    _nextvalue - _noevalue
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team _ Polly&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 02:36:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-daily-increase-where-date-has-gap/m-p/2509103#M69556</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-12T02:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating daily increase where date has gap</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-daily-increase-where-date-has-gap/m-p/2517802#M70073</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;very much for your reply. It helped me a lot. I apprciate for your help&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 14:08:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-daily-increase-where-date-has-gap/m-p/2517802#M70073</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-16T14:08:42Z</dc:date>
    </item>
  </channel>
</rss>

