<?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 Field Parameters Difference Total in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Field-Parameters-Difference-Total/m-p/3263015#M120722</link>
    <description>&lt;P&gt;Hi All, just asking for help on how can I create a Total but instead of sum it should be difference of the two selected measure in the Field Parameters. See below and attached sample PBI file on how it looks like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here is the download link for the sample pbix file:&amp;nbsp;&lt;A href="https://www.dropbox.com/s/6qrb5seyty1d2l4/sample.pbix?dl=0" target="_blank"&gt;https://www.dropbox.com/s/6qrb5seyty1d2l4/sample.pbix?dl=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jun 2023 03:59:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-06-01T03:59:38Z</dc:date>
    <item>
      <title>Field Parameters Difference Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Field-Parameters-Difference-Total/m-p/3263015#M120722</link>
      <description>&lt;P&gt;Hi All, just asking for help on how can I create a Total but instead of sum it should be difference of the two selected measure in the Field Parameters. See below and attached sample PBI file on how it looks like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here is the download link for the sample pbix file:&amp;nbsp;&lt;A href="https://www.dropbox.com/s/6qrb5seyty1d2l4/sample.pbix?dl=0" target="_blank"&gt;https://www.dropbox.com/s/6qrb5seyty1d2l4/sample.pbix?dl=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 03:59:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Field-Parameters-Difference-Total/m-p/3263015#M120722</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-01T03:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Field Parameters Difference Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Field-Parameters-Difference-Total/m-p/3263326#M120731</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Please refer to attached sample file with the proposed solution.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 07:48:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Field-Parameters-Difference-Total/m-p/3263326#M120731</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-01T07:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Field Parameters Difference Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Field-Parameters-Difference-Total/m-p/3263337#M120732</link>
      <description>&lt;P&gt;Thank you&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;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, what if I selected more than 2 months in it? What it should do actually is add the 3 months for both parameters and then do the difference.&lt;BR /&gt;&lt;BR /&gt;The output should be like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 07:59:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Field-Parameters-Difference-Total/m-p/3263337#M120732</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-01T07:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Field Parameters Difference Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Field-Parameters-Difference-Total/m-p/3263555#M120746</link>
      <description>&lt;P&gt;Hi, not sure if this is possible, the top most what i could achieve is something like that&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;you just create a switch measure =&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SwitchMeasure = &lt;/SPAN&gt;&lt;SPAN&gt;SWITCH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;min&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Right Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Right Table Order]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt; [&lt;/SPAN&gt;&lt;SPAN&gt;2 Revenue],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN&gt;[2&lt;/SPAN&gt;&lt;SPAN&gt; Cost],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;2 &lt;/SPAN&gt;&lt;SPAN&gt;Gross])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;Every&amp;nbsp; measure with 1 you have to remake like this:&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;1 Cost = &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;isfiltered&lt;/SPAN&gt;&lt;SPAN&gt;(test_data[Month]), &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(test_data[Cost]), &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(test_data[Cost])-[SwitchMeasure])&lt;BR /&gt;Every Measure with 2.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;isfiltered&lt;/SPAN&gt;&lt;SPAN&gt;(test_data[Month]), &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(test_data[Revenue]))&lt;BR /&gt;&lt;BR /&gt;Afterwards depending on your data may be you can play how to hide that column in the end.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 01 Jun 2023 09:30:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Field-Parameters-Difference-Total/m-p/3263555#M120746</guid>
      <dc:creator>olgad</dc:creator>
      <dc:date>2023-06-01T09:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Field Parameters Difference Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Field-Parameters-Difference-Total/m-p/3263607#M120748</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You need to hide the non total [Difference] column(s) manually.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 09:48:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Field-Parameters-Difference-Total/m-p/3263607#M120748</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-01T09:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Field Parameters Difference Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Field-Parameters-Difference-Total/m-p/3264755#M120828</link>
      <description>&lt;P&gt;Awesome this works! Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 23:27:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Field-Parameters-Difference-Total/m-p/3264755#M120828</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-01T23:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Field Parameters Difference Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Field-Parameters-Difference-Total/m-p/3264757#M120829</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="254062" data-lia-user-login="olgad" class="lia-mention lia-mention-user"&gt;olgad&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 23:27:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Field-Parameters-Difference-Total/m-p/3264757#M120829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-01T23:27:54Z</dc:date>
    </item>
  </channel>
</rss>

