<?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 difference per row with initial row filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-difference-per-row-with-initial-row-filter/m-p/2654350#M78361</link>
    <description>&lt;P&gt;Here is a link to a zip file containing the PB Desktop file and the sample data:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/s/k9oenqbds1gxqdv/Demo.zip?dl=0" target="_blank" rel="noopener"&gt;Sample files&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jul 2022 22:28:58 GMT</pubDate>
    <dc:creator>zself</dc:creator>
    <dc:date>2022-07-21T22:28:58Z</dc:date>
    <item>
      <title>Calculating difference per row with initial row filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-difference-per-row-with-initial-row-filter/m-p/2639681#M77471</link>
      <description>&lt;P&gt;I don't know how to ask this question properly, but here's my quick measure and a screen shot showing what I want.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Investment % difference from 2019 = 
IF(
	NOT ISBLANK(SUM('tbl_ConsolidatedYears'[Investment A])),
			SUM('tbl_ConsolidatedYears'[Investment A]) - CALCULATE(
			SUM('tbl_ConsolidatedYears'[Investment A]),
			'tbl_ConsolidatedYears'[Transaction Year] = "2019"
		),
		CALCULATE(
			SUM('tbl_ConsolidatedYears'[Investment A]),
			'tbl_ConsolidatedYears'[Transaction Year] = "2019"
		)
)&lt;/LI-CODE&gt;&lt;P&gt;I'm trying to create a visual of the difference of a measure by year, with a set year (filtered) as the base. Here's a screen shot that includes the PowerBI results and the Excel mock-up of what I want. What's inside the red box is what I want, the green box is what I'm getting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help! I'm pulling my hair out.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 20:51:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-difference-per-row-with-initial-row-filter/m-p/2639681#M77471</guid>
      <dc:creator>zself</dc:creator>
      <dc:date>2022-07-14T20:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating difference per row with initial row filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-difference-per-row-with-initial-row-filter/m-p/2639685#M77472</link>
      <description>&lt;P&gt;I think I pasted wrong code. Here's my most recent attempt at the measure:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Investment A difference from 2019 = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;__BASELINE_VALUE&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'tbl_ConsolidatedYears'[Investment A]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;n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t;</description>
      <pubDate>Thu, 14 Jul 2022 20:55:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-difference-per-row-with-initial-row-filter/m-p/2639685#M77472</guid>
      <dc:creator>zself</dc:creator>
      <dc:date>2022-07-14T20:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating difference per row with initial row filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-difference-per-row-with-initial-row-filter/m-p/2647002#M77889</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="412981" data-lia-user-login="zself" class="lia-mention lia-mention-user"&gt;zself&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I know whether your issue has been resolved? If you still have problems, could you please provide some sample data of your tables and let me know the relationships between them and how you create your Table visual in Power BI? Thanks in advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post helps, then please consider&lt;STRONG&gt; Accept it as the solution&lt;/STRONG&gt; to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please let me know. Thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _ Caiyun&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 08:31:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-difference-per-row-with-initial-row-filter/m-p/2647002#M77889</guid>
      <dc:creator>v-cazheng-msft</dc:creator>
      <dc:date>2022-07-19T08:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating difference per row with initial row filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-difference-per-row-with-initial-row-filter/m-p/2653862#M78319</link>
      <description>&lt;P&gt;Thank you for the reply. No, my issue remains. I will provide some sample data and such in a separate reply.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 16:33:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-difference-per-row-with-initial-row-filter/m-p/2653862#M78319</guid>
      <dc:creator>zself</dc:creator>
      <dc:date>2022-07-21T16:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating difference per row with initial row filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-difference-per-row-with-initial-row-filter/m-p/2654347#M78359</link>
      <description>&lt;P&gt;How do I provide sample data?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here are screen shots of the PB pages that include a table of the summarized data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 22:26:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-difference-per-row-with-initial-row-filter/m-p/2654347#M78359</guid>
      <dc:creator>zself</dc:creator>
      <dc:date>2022-07-21T22:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating difference per row with initial row filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-difference-per-row-with-initial-row-filter/m-p/2654350#M78361</link>
      <description>&lt;P&gt;Here is a link to a zip file containing the PB Desktop file and the sample data:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/s/k9oenqbds1gxqdv/Demo.zip?dl=0" target="_blank" rel="noopener"&gt;Sample files&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 22:28:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-difference-per-row-with-initial-row-filter/m-p/2654350#M78361</guid>
      <dc:creator>zself</dc:creator>
      <dc:date>2022-07-21T22:28:58Z</dc:date>
    </item>
  </channel>
</rss>

