<?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: Difference between two sliced visuals, displayed as a visual in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-sliced-visuals-displayed-as-a-visual/m-p/3248159#M119762</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="564142" data-lia-user-login="FloK" class="lia-mention lia-mention-user"&gt;FloK&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;only if you have two date tables one for eeach slicer.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 May 2023 16:43:16 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-05-22T16:43:16Z</dc:date>
    <item>
      <title>Difference between two sliced visuals, displayed as a visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-sliced-visuals-displayed-as-a-visual/m-p/3247893#M119731</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried finding the solution to my problem for a while now, but simply can't figure out a way. Finally decided that the only way forward is signing up here and ask for help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data looks roughly like this:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Product&lt;/TD&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;TD&gt;profit&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;apple&lt;/TD&gt;&lt;TD&gt;01-31-2023&lt;/TD&gt;&lt;TD&gt;1750&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;orange&lt;/TD&gt;&lt;TD&gt;01-31-2023&lt;/TD&gt;&lt;TD&gt;-4000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;apple&lt;/TD&gt;&lt;TD&gt;02-28-2023&lt;/TD&gt;&lt;TD&gt;1500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;orange&lt;/TD&gt;&lt;TD&gt;02-28-2023&lt;/TD&gt;&lt;TD&gt;-3900&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;apple&lt;/TD&gt;&lt;TD&gt;03-31-2023&lt;/TD&gt;&lt;TD&gt;1600&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;orange&lt;/TD&gt;&lt;TD&gt;03-31-2023&lt;/TD&gt;&lt;TD&gt;-2500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;apple&lt;/TD&gt;&lt;TD&gt;04-30-2023&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1100&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;orange&lt;/TD&gt;&lt;TD&gt;04-30-2023&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;500&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created two visuals with a slicer each. The slicer is assigned to each visual using Format --&amp;gt; Edit interactions&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Below this, there should be another visual that displays - in the same format - the difference between the two chosen months for each product.&lt;/P&gt;&lt;P&gt;E.g. for January 2023 vs. February 2023 that visual should display a bar of -250 for apple and +100 for orange.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 14:24:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-sliced-visuals-displayed-as-a-visual/m-p/3247893#M119731</guid>
      <dc:creator>FloK</dc:creator>
      <dc:date>2023-05-22T14:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two sliced visuals, displayed as a visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-sliced-visuals-displayed-as-a-visual/m-p/3248159#M119762</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="564142" data-lia-user-login="FloK" class="lia-mention lia-mention-user"&gt;FloK&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;only if you have two date tables one for eeach slicer.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 16:43:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-sliced-visuals-displayed-as-a-visual/m-p/3248159#M119762</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-22T16:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two sliced visuals, displayed as a visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-sliced-visuals-displayed-as-a-visual/m-p/3249135#M119826</link>
      <description>&lt;P&gt;Hi&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the hint. I have now created two tables (table slicer 1 / table slicer 2) and assigned them to the two visuals.&lt;/P&gt;&lt;P&gt;Unfortunately I'm still having trouble displaying the difference. I have set up the following measure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Difference3 = 
VAR SelectedMonth1 = SELECTEDVALUE('Table slicer 1'[Date])
VAR SelectedMonth2 = SELECTEDVALUE('Table slicer 2'[Date])

return
    CALCULATE(SUM('Table slicer 1'[Value]),
    'Table slicer 1'[Date]=SelectedMonth1
    ) -

    CALCULATE(SUM('Table slicer 2'[Value]),
    'Table slicer 2'[Date]=SelectedMonth2
    )&lt;/LI-CODE&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;And displayed it as a stacked column chart:&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The third visual displays the same values as the first visual but not the difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me adjust the the measure 'Difference3' (or the visual), so that it displays the actual difference?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks!!!&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 May 2023 07:17:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-sliced-visuals-displayed-as-a-visual/m-p/3249135#M119826</guid>
      <dc:creator>FloK</dc:creator>
      <dc:date>2023-05-23T07:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two sliced visuals, displayed as a visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-sliced-visuals-displayed-as-a-visual/m-p/3249197#M119837</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="564142" data-lia-user-login="FloK" class="lia-mention lia-mention-user"&gt;FloK&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not 100% like this but it should also work. Make sure interaction is active between all visuals&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 17:34:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-sliced-visuals-displayed-as-a-visual/m-p/3249197#M119837</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-23T17:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two sliced visuals, displayed as a visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-sliced-visuals-displayed-as-a-visual/m-p/3250245#M119900</link>
      <description>&lt;P&gt;It was indeed the interaction settings that prevented proper calculations&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_rolling_eyes:"&gt;🙄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 06:28:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-two-sliced-visuals-displayed-as-a-visual/m-p/3250245#M119900</guid>
      <dc:creator>FloK</dc:creator>
      <dc:date>2023-05-24T06:28:32Z</dc:date>
    </item>
  </channel>
</rss>

