<?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: Time Intelligence:  Previous Month Value is Incorrect in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Intelligence-Previous-Month-Value-is-Incorrect/m-p/2426808#M64475</link>
    <description>&lt;P&gt;Looks good.&amp;nbsp; I am going to try it out tonight.&amp;nbsp; Have a great day.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Mar 2022 12:31:07 GMT</pubDate>
    <dc:creator>VikrantC</dc:creator>
    <dc:date>2022-03-30T12:31:07Z</dc:date>
    <item>
      <title>Time Intelligence:  Previous Month Value is Incorrect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Intelligence-Previous-Month-Value-is-Incorrect/m-p/2409592#M63413</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have 3 month daily data for 4 players (X1, X2, X3 and Y1).&amp;nbsp; The data is arranged in 3 columns (Date, Player, Score).&amp;nbsp; All the players have data for each date (no gaps).&amp;nbsp; &amp;nbsp;There is no score on weekend (no rows for weekend).&amp;nbsp; I am able to get Score for end of the month (specific date).&amp;nbsp; However, I am unable to get Data for the previous month (end of the month).&amp;nbsp; I would like to see scores for X1, X2, X3 and Y1 on 2/28, 1/31, 12/31 in one column and calculate % change from the previous month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second problem I am having is I want to Filter X1 and X2 (on date) and use variable to calculate Sum of X1, or (X1*Y1^2).&amp;nbsp; Please see the sample data in the file below.&lt;/P&gt;&lt;P&gt;PBI_Data (file://DESKTOP-47L4URJ/PBI_Data)&lt;A title="PBI File" href="http://PBI_Data (file://DESKTOP-47L4URJ/PBI_Data)" target="_self"&gt;PBI_Data (file://DESKTOP-47L4URJ/PBI_Data)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure how to attach PBI file.&amp;nbsp; Pease let me know if the folder cannot be open (Dropbox).&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 13:46:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Intelligence-Previous-Month-Value-is-Incorrect/m-p/2409592#M63413</guid>
      <dc:creator>VikrantC</dc:creator>
      <dc:date>2022-03-22T13:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Time Intelligence:  Previous Month Value is Incorrect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Intelligence-Previous-Month-Value-is-Incorrect/m-p/2413011#M63640</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="364109" data-lia-user-login="VikrantC" class="lia-mention lia-mention-user"&gt;VikrantC&lt;/a&gt; , Based on what I got last date of the month &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MTD Sales = CALCULATE(lastnonblankvalues('Date'[Date],SUM(Sales[Sales Amount])),DATESMTD('Date'[Date]))&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 16:39:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Intelligence-Previous-Month-Value-is-Incorrect/m-p/2413011#M63640</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-23T16:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Time Intelligence:  Previous Month Value is Incorrect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Intelligence-Previous-Month-Value-is-Incorrect/m-p/2413175#M63654</link>
      <description>&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;Thank you very much.&amp;nbsp; I used a similar formula.&amp;nbsp; However, I am still stuck with "&lt;SPAN&gt;The second problem I am having is I want to Filter X1 and X2 (on date) and use variable to calculate Sum of X1, or (X1*Y1^2).&amp;nbsp; Please see the sample data in the file below".&amp;nbsp; &amp;nbsp; The X1 and X2 have same dates and values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I have two variables (X1 and X2) with dates and values (3 columns total).&amp;nbsp; How do I manipulate the formula.&amp;nbsp; For example, I want to SUM (X1^2*X2).&amp;nbsp; Basically, for each specific dates I want to calculate X1square and multiply it with X2,&amp;nbsp; Ideally, I want this to be a variable so that I can use it as part of other DAX formula.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 17:53:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Intelligence-Previous-Month-Value-is-Incorrect/m-p/2413175#M63654</guid>
      <dc:creator>VikrantC</dc:creator>
      <dc:date>2022-03-23T17:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Time Intelligence:  Previous Month Value is Incorrect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Intelligence-Previous-Month-Value-is-Incorrect/m-p/2414780#M63746</link>
      <description>&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;Your formula did not work.&amp;nbsp; I am more interested in the second problem.&amp;nbsp; Any idea?.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 10:50:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Intelligence-Previous-Month-Value-is-Incorrect/m-p/2414780#M63746</guid>
      <dc:creator>VikrantC</dc:creator>
      <dc:date>2022-03-24T10:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Time Intelligence:  Previous Month Value is Incorrect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Intelligence-Previous-Month-Value-is-Incorrect/m-p/2416734#M63839</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="364109" data-lia-user-login="VikrantC" class="lia-mention lia-mention-user"&gt;VikrantC&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not have access to the link you shared, please use &lt;A href="https://support.microsoft.com/office/share-sharepoint-files-or-folders-1fe37332-0f9a-4719-970e-d2578da4941c" target="_self"&gt;SharePoint Online&lt;/A&gt; or other tools to share your file.&lt;/P&gt;
&lt;P&gt;Based on my understanding, I created the following example data.&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;1. Then create the measure to calculate the month end score value and compare it to the previous month end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MonthEndScore = 
CALCULATE (
    SUM ( 'Table'[Score] ),
    FILTER ( 'Table', 'Table'[Date] = EOMONTH ( 'Table'[Date], 0 ) )
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Score% = 
IF (
    [MonthEndScore] &amp;lt;&amp;gt; BLANK (),
    DIVIDE (
        [MonthEndScore],
        CALCULATE (
            [MonthEndScore],
            FILTER (
                ALLSELECTED ( 'Table' ),
                'Table'[Date] = EOMONTH ( MAX ( 'Table'[Date] ), -1 )
                    &amp;amp;&amp;amp; 'Table'[Player] = MAX ( 'Table'[Player] )
            )
        ),
        1
    ) - 1
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;Create the measure to calculate&amp;nbsp;X1*Y1^2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;X1*Y1^2 = 
CALCULATE ( SUM ( 'Table'[Score] ), 'Table'[Player] = "X1" )
    * CALCULATE ( POWER ( SUM ( 'Table'[Score] ), 2 ), 'Table'[Player] = "Y1" )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.&lt;BR /&gt;Best Regards,&lt;BR /&gt;Winniz&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 05:16:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Intelligence-Previous-Month-Value-is-Incorrect/m-p/2416734#M63839</guid>
      <dc:creator>v-kkf-msft</dc:creator>
      <dc:date>2022-03-25T05:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Time Intelligence:  Previous Month Value is Incorrect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Intelligence-Previous-Month-Value-is-Incorrect/m-p/2418325#M63924</link>
      <description>&lt;P&gt;Thank you very much.&amp;nbsp; This is working.&amp;nbsp; &amp;nbsp; I have one question.&amp;nbsp; Regarding X1*Y12.&amp;nbsp; How do I use the Measure Score%.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eventually, I was to use a Variable for (X1*Y1^2) using the Score% (% change over month for X1 and Y1).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, thank you very much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;VC&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 15:39:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Intelligence-Previous-Month-Value-is-Incorrect/m-p/2418325#M63924</guid>
      <dc:creator>VikrantC</dc:creator>
      <dc:date>2022-03-25T15:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Time Intelligence:  Previous Month Value is Incorrect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Intelligence-Previous-Month-Value-is-Incorrect/m-p/2418410#M63930</link>
      <description>&lt;P&gt;One more question to add to the earlier question.&amp;nbsp; How about I used % of change per month (instead of each date).&amp;nbsp; Would it be easier to summarize X1, Y1 in columns?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 16:20:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Intelligence-Previous-Month-Value-is-Incorrect/m-p/2418410#M63930</guid>
      <dc:creator>VikrantC</dc:creator>
      <dc:date>2022-03-25T16:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Time Intelligence:  Previous Month Value is Incorrect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Intelligence-Previous-Month-Value-is-Incorrect/m-p/2418412#M63931</link>
      <description>&lt;P&gt;Thanks Amit.&amp;nbsp; For some reason it did not work.&amp;nbsp; I did get it.&amp;nbsp; Again, thank you very much for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 16:20:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Intelligence-Previous-Month-Value-is-Incorrect/m-p/2418412#M63931</guid>
      <dc:creator>VikrantC</dc:creator>
      <dc:date>2022-03-25T16:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Time Intelligence:  Previous Month Value is Incorrect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Intelligence-Previous-Month-Value-is-Incorrect/m-p/2425736#M64416</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="364109" data-lia-user-login="VikrantC" class="lia-mention lia-mention-user"&gt;VikrantC&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the late reply. Please try the following formula:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
CALCULATE ( [Score%], 'Table'[Player] = "X1" )
    * CALCULATE ( POWER ( [Score%], 2 ), 'Table'[Player] = "Y1" )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Winniz&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 03:21:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Intelligence-Previous-Month-Value-is-Incorrect/m-p/2425736#M64416</guid>
      <dc:creator>v-kkf-msft</dc:creator>
      <dc:date>2022-03-30T03:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Time Intelligence:  Previous Month Value is Incorrect</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Intelligence-Previous-Month-Value-is-Incorrect/m-p/2426808#M64475</link>
      <description>&lt;P&gt;Looks good.&amp;nbsp; I am going to try it out tonight.&amp;nbsp; Have a great day.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 12:31:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Intelligence-Previous-Month-Value-is-Incorrect/m-p/2426808#M64475</guid>
      <dc:creator>VikrantC</dc:creator>
      <dc:date>2022-03-30T12:31:07Z</dc:date>
    </item>
  </channel>
</rss>

