<?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: Finding the difference between date values in the same row of different column within a Matrix in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-difference-between-date-values-in-the-same-row-of/m-p/3847633#M150368</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="707963" data-lia-user-login="Joe_Barry" class="lia-mention lia-mention-user"&gt;Joe_Barry&lt;/a&gt;&amp;nbsp;Thanks for your contribution on this thread.&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="443206" data-lia-user-login="Merle" class="lia-mention lia-mention-user"&gt;Merle&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can create a measure as below to get it, please find the details in &lt;EM&gt;&lt;STRONG&gt;the attachment&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;WOW = 
VAR _pcdate =
    SELECTEDVALUE ( 'Table'[Purchase Complete] )
VAR _category =
    SELECTEDVALUE ( 'Table'[Category] )
VAR _predate =
    CALCULATE (
        MAX ( 'Table'[Purchase Complete] ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            'Table'[Category] = _category
                &amp;amp;&amp;amp; 'Table'[Purchase Complete] &amp;lt; _pcdate
        )
    )
VAR _prevalue =
    CALCULATE (
        SUM ( 'Table'[Sales] ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            'Table'[Category] = _category
                &amp;amp;&amp;amp; 'Table'[Purchase Complete] = _predate
        )
    )
RETURN
    DIVIDE ( SUM ( 'Table'[Sales] ) - _prevalue, _prevalue )  &lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Thu, 18 Apr 2024 05:39:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-04-18T05:39:12Z</dc:date>
    <item>
      <title>Finding the difference between date values in the same row of different column within a Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-difference-between-date-values-in-the-same-row-of/m-p/3836688#M150003</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I will greatly appreciate help in finding the difference between dates values within a matrix inorder to determine WoW%.&lt;/P&gt;&lt;P&gt;Desired out put in screen shot below.&lt;/P&gt;&lt;P&gt;This visual was obtain using the new tool New Calculation(fx) but has limitation of not being able to export data with these calculations.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;These are the calculation used.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Versus previous =&lt;/SPAN&gt; &lt;SPAN&gt;[Purchase Complete]&lt;/SPAN&gt;&lt;SPAN&gt; - &lt;/SPAN&gt;&lt;SPAN&gt;PREVIOUS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Purchase Complete]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;COLUMNS&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;WOW =&lt;/SPAN&gt; &lt;SPAN&gt;FORMAT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Versus previous]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;PREVIOUS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Purchase Complete]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;COLUMNS&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;"#,#0%"&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 02:24:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-difference-between-date-values-in-the-same-row-of/m-p/3836688#M150003</guid>
      <dc:creator>Merle</dc:creator>
      <dc:date>2024-04-15T02:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the difference between date values in the same row of different column within a Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-difference-between-date-values-in-the-same-row-of/m-p/3838352#M150051</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="443206" data-lia-user-login="Merle" class="lia-mention lia-mention-user"&gt;Merle&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe this will help?&amp;nbsp;&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/WoW-trend-calculation/m-p/533645/highlight/true#M250226" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/WoW-trend-calculation/m-p/533645/highlight/true#M250226&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If you found my answer helpful and it solved your issue, please accept as solution&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 12:47:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-difference-between-date-values-in-the-same-row-of/m-p/3838352#M150051</guid>
      <dc:creator>Joe_Barry</dc:creator>
      <dc:date>2024-04-15T12:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the difference between date values in the same row of different column within a Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-difference-between-date-values-in-the-same-row-of/m-p/3841448#M150174</link>
      <description>&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;Thanks for your response. Dax Formula used is giving the same value as the date column not the difference between the column dates of the previous. Is there a different way to format this formula? Thank you.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 12:20:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-difference-between-date-values-in-the-same-row-of/m-p/3841448#M150174</guid>
      <dc:creator>Merle</dc:creator>
      <dc:date>2024-04-16T12:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the difference between date values in the same row of different column within a Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-difference-between-date-values-in-the-same-row-of/m-p/3847633#M150368</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="707963" data-lia-user-login="Joe_Barry" class="lia-mention lia-mention-user"&gt;Joe_Barry&lt;/a&gt;&amp;nbsp;Thanks for your contribution on this thread.&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="443206" data-lia-user-login="Merle" class="lia-mention lia-mention-user"&gt;Merle&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can create a measure as below to get it, please find the details in &lt;EM&gt;&lt;STRONG&gt;the attachment&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;WOW = 
VAR _pcdate =
    SELECTEDVALUE ( 'Table'[Purchase Complete] )
VAR _category =
    SELECTEDVALUE ( 'Table'[Category] )
VAR _predate =
    CALCULATE (
        MAX ( 'Table'[Purchase Complete] ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            'Table'[Category] = _category
                &amp;amp;&amp;amp; 'Table'[Purchase Complete] &amp;lt; _pcdate
        )
    )
VAR _prevalue =
    CALCULATE (
        SUM ( 'Table'[Sales] ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            'Table'[Category] = _category
                &amp;amp;&amp;amp; 'Table'[Purchase Complete] = _predate
        )
    )
RETURN
    DIVIDE ( SUM ( 'Table'[Sales] ) - _prevalue, _prevalue )  &lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 05:39:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-difference-between-date-values-in-the-same-row-of/m-p/3847633#M150368</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-18T05:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the difference between date values in the same row of different column within a Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-difference-between-date-values-in-the-same-row-of/m-p/3850256#M150437</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;Thank you very much&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/196136" target="_self"&gt;&lt;SPAN class=""&gt;v-yiruan-msft&lt;/SPAN&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;H2&gt;Solution works.&lt;/H2&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Apr 2024 13:54:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-difference-between-date-values-in-the-same-row-of/m-p/3850256#M150437</guid>
      <dc:creator>Merle</dc:creator>
      <dc:date>2024-04-18T13:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the difference between date values in the same row of different column within a Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-difference-between-date-values-in-the-same-row-of/m-p/3863685#M150936</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you again for your solution to my previous question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have encountered an issue in finding the Conversion rate (CR) of two measures between dates. Can you please assist me with this?&lt;/P&gt;&lt;P&gt;CR Formula = Upgrade / Signups&lt;/P&gt;&lt;P&gt;Expected results:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried your dax formula with a slight modification:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my result, it is only calculating the first date between Upgrade and Signups.&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 00:09:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-difference-between-date-values-in-the-same-row-of/m-p/3863685#M150936</guid>
      <dc:creator>Merle</dc:creator>
      <dc:date>2024-04-24T00:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the difference between date values in the same row of different column within a Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-difference-between-date-values-in-the-same-row-of/m-p/3866615#M151043</link>
      <description>&lt;P&gt;Found a solution to this.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 21:53:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-difference-between-date-values-in-the-same-row-of/m-p/3866615#M151043</guid>
      <dc:creator>Merle</dc:creator>
      <dc:date>2024-04-24T21:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the difference between date values in the same row of different column within a Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-difference-between-date-values-in-the-same-row-of/m-p/3866616#M151044</link>
      <description>&lt;P&gt;Found a Solution to this&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 21:53:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-difference-between-date-values-in-the-same-row-of/m-p/3866616#M151044</guid>
      <dc:creator>Merle</dc:creator>
      <dc:date>2024-04-24T21:53:46Z</dc:date>
    </item>
  </channel>
</rss>

