<?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 Measure to calculate delta between selected planning version in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-calculate-delta-between-selected-planning-version/m-p/2550218#M72129</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a measure that will calculate the delta between selected planning version. My simplified datamodel is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Version&lt;/TD&gt;&lt;TD&gt;value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Planning_1&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Planning_2&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Planning_3&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Planning_4&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result should be usable in a matrix visual:&lt;/P&gt;&lt;P&gt;column1: planning version A&lt;/P&gt;&lt;P&gt;column2: planning version b&lt;/P&gt;&lt;P&gt;column 3: delta&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks you very much for your respons!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Paul Theunissen&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 31 May 2022 12:02:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-31T12:02:52Z</dc:date>
    <item>
      <title>Measure to calculate delta between selected planning version</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-calculate-delta-between-selected-planning-version/m-p/2550218#M72129</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a measure that will calculate the delta between selected planning version. My simplified datamodel is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Version&lt;/TD&gt;&lt;TD&gt;value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Planning_1&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Planning_2&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Planning_3&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Planning_4&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result should be usable in a matrix visual:&lt;/P&gt;&lt;P&gt;column1: planning version A&lt;/P&gt;&lt;P&gt;column2: planning version b&lt;/P&gt;&lt;P&gt;column 3: delta&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks you very much for your respons!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Paul Theunissen&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 31 May 2022 12:02:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-calculate-delta-between-selected-planning-version/m-p/2550218#M72129</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-31T12:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to calculate delta between selected planning version</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-calculate-delta-between-selected-planning-version/m-p/2550334#M72136</link>
      <description>&lt;P&gt;Hi Paul:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you give sme examples of expected results? I'm not sure what you want to compare your selected value to? Thanks..&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 12:42:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-calculate-delta-between-selected-planning-version/m-p/2550334#M72136</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-05-31T12:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to calculate delta between selected planning version</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-calculate-delta-between-selected-planning-version/m-p/2550347#M72138</link>
      <description>&lt;P&gt;In the matrix the expected result shoud be:&lt;/P&gt;&lt;P&gt;when planing_1 and planning_2 are selected:&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;</description>
      <pubDate>Tue, 31 May 2022 12:45:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-calculate-delta-between-selected-planning-version/m-p/2550347#M72138</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-31T12:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to calculate delta between selected planning version</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-calculate-delta-between-selected-planning-version/m-p/2550501#M72154</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;I looked up a potential solution for you. Please check out this previous answer and I hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Compare-Data-based-on-2-selected-values-in-1-column/td-p/1502679" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Compare-Data-based-on-2-selected-values-in-1-column/td-p/1502679&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 14:00:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-calculate-delta-between-selected-planning-version/m-p/2550501#M72154</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-05-31T14:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to calculate delta between selected planning version</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-calculate-delta-between-selected-planning-version/m-p/2552257#M72267</link>
      <description>&lt;P&gt;Thanks for your help. Unfortunately this solution doesn't work for me... I get the message that I want to compare text with numbers&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 08:22:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-calculate-delta-between-selected-planning-version/m-p/2552257#M72267</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-01T08:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to calculate delta between selected planning version</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-calculate-delta-between-selected-planning-version/m-p/2557418#M72649</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One idea,&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;create the measure&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
var _count= COUNTX(ALLSELECTED('Table'[Version]),[Version])
var _max= IF(_count=2,MAXX(ALLSELECTED('Table'),'Table'[value]))
var _min= IF(_count=2,MINX(ALLSELECTED('Table'),'Table'[value]))
return
IF(HASONEVALUE('Table'[Version]),SUM('Table'[value]),_max-_min)&lt;/LI-CODE&gt;
&lt;P style="background: white;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN&gt;Community Support Team _Tang&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 09:11:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-calculate-delta-between-selected-planning-version/m-p/2557418#M72649</guid>
      <dc:creator>v-xiaotang</dc:creator>
      <dc:date>2022-06-03T09:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to calculate delta between selected planning version</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-calculate-delta-between-selected-planning-version/m-p/2582508#M74143</link>
      <description>&lt;P&gt;Thanks! This helps a lot. One more question. Is it also possible to create a measure that calculates a difference for multiple dimension: Version, cost center and year, quarter and month?&lt;/P&gt;&lt;P&gt;example:&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>Thu, 16 Jun 2022 08:35:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-calculate-delta-between-selected-planning-version/m-p/2582508#M74143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-16T08:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to calculate delta between selected planning version</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-calculate-delta-between-selected-planning-version/m-p/2582514#M74144</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 08:36:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-calculate-delta-between-selected-planning-version/m-p/2582514#M74144</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-16T08:36:09Z</dc:date>
    </item>
  </channel>
</rss>

