<?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 How do you calculate the difference between two 100% stacked bar charts in DAX? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-you-calculate-the-difference-between-two-100-stacked-bar/m-p/1247443#M20483</link>
    <description>&lt;P&gt;I've got two charts 100% bar charts, one of which is just pulling a stated percentage for each activity, the other is summing the time spent on each activity and then it obviously splits it out to give a percentage of total.&lt;/P&gt;&lt;P&gt;However, I'm looking to provide a Clustered bar chart that will show the difference between the two numbers for each activity. I just can't get it to add up at all...&lt;/P&gt;&lt;P&gt;I managed to get within a few hundredths of a percent accuracy wise but clearly it's still wrong.. The column formula I used to get this was as follows:&lt;/P&gt;&lt;PRE&gt;Percentage Difference = CALCULATE(SUM('Response Data'[Time]),FILTER('Response Data','Response Data'[Clean Activity]=EARLIER('Response Data'[Clean Activity])))/CALCULATE(SUMX(ALL('Response Data'),'Response Data'[Time]),FILTER('Response Data','Response Data'[Clean Activity]=EARLIER('Response Data'[Clean Activity]))) - 'Response Data'[Target]&lt;/PRE&gt;&lt;P&gt;Clean Category is the activity&lt;/P&gt;&lt;P&gt;Time is Time spent doing activity&lt;/P&gt;&lt;P&gt;Target is the targeted percent of total time spent on said activity&lt;/P&gt;&lt;P&gt;Any advice is much appreciated.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jul 2020 07:50:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-07-24T07:50:08Z</dc:date>
    <item>
      <title>How do you calculate the difference between two 100% stacked bar charts in DAX?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-you-calculate-the-difference-between-two-100-stacked-bar/m-p/1247443#M20483</link>
      <description>&lt;P&gt;I've got two charts 100% bar charts, one of which is just pulling a stated percentage for each activity, the other is summing the time spent on each activity and then it obviously splits it out to give a percentage of total.&lt;/P&gt;&lt;P&gt;However, I'm looking to provide a Clustered bar chart that will show the difference between the two numbers for each activity. I just can't get it to add up at all...&lt;/P&gt;&lt;P&gt;I managed to get within a few hundredths of a percent accuracy wise but clearly it's still wrong.. The column formula I used to get this was as follows:&lt;/P&gt;&lt;PRE&gt;Percentage Difference = CALCULATE(SUM('Response Data'[Time]),FILTER('Response Data','Response Data'[Clean Activity]=EARLIER('Response Data'[Clean Activity])))/CALCULATE(SUMX(ALL('Response Data'),'Response Data'[Time]),FILTER('Response Data','Response Data'[Clean Activity]=EARLIER('Response Data'[Clean Activity]))) - 'Response Data'[Target]&lt;/PRE&gt;&lt;P&gt;Clean Category is the activity&lt;/P&gt;&lt;P&gt;Time is Time spent doing activity&lt;/P&gt;&lt;P&gt;Target is the targeted percent of total time spent on said activity&lt;/P&gt;&lt;P&gt;Any advice is much appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 07:50:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-you-calculate-the-difference-between-two-100-stacked-bar/m-p/1247443#M20483</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-24T07:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the difference between two 100% stacked bar charts in DAX?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-you-calculate-the-difference-between-two-100-stacked-bar/m-p/1259462#M20905</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;could you provide a copy of your report? Or create sample report with the issue recreated, and share that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;BR /&gt;Sturla&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 14:05:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-you-calculate-the-difference-between-two-100-stacked-bar/m-p/1259462#M20905</guid>
      <dc:creator>sturlaws</dc:creator>
      <dc:date>2020-07-29T14:05:39Z</dc:date>
    </item>
  </channel>
</rss>

