<?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: How to calculate a variation of a measure depending on a slicer selection? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/746703#M2524</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="507" data-lia-user-login="parry2k" class="lia-mention lia-mention-user"&gt;parry2k&lt;/a&gt;. We are getting there. The problem with that solution is that it doesn´t allow me to do a monthly bar chart. Since I have to measures as values it doesn´t allow me to add a legend, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jul 2019 12:17:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-23T12:17:31Z</dc:date>
    <item>
      <title>How to calculate a variation of a measure depending on a slicer selection?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/745228#M2467</link>
      <description>&lt;P&gt;I have a Database with 2 columns: Scenario &amp;amp; Gross Sales.&lt;/P&gt;&lt;P&gt;I´ve created a Total Gross Sales Measure that is only the sum of those gross sales and I can compare Gross Sales by scenario if I create a bar chart for example.&lt;/P&gt;&lt;P&gt;I created a slicer so I can choose the scenarios that I want to see on the charts/Matrix&lt;/P&gt;&lt;P&gt;Now I want to add a card or a Matrix that shows the Gross sales difference between the selected scenarios on the slicer but that the value changes as I change my selection in the slicer.&lt;/P&gt;&lt;P&gt;I´ve tried different DAX but couldn´t get the result I wanted...and it seems that this should be pretty easy to achieve because it is so basic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 00:07:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/745228#M2467</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-22T00:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a variation of a measure depending on a slicer selection?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/745250#M2468</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; you should have seperate table scenario for slicer so that it doesn't filter your main table.&amp;nbsp;Please share data in excel using onedrive/google drive to get your answer quickly. Remove any sensitive information before sharing.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 01:13:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/745250#M2468</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-07-22T01:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a variation of a measure depending on a slicer selection?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/745257#M2469</link>
      <description>&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;TD&gt;Version&lt;/TD&gt;&lt;TD&gt;Gross Sales&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jan&lt;/TD&gt;&lt;TD&gt;Scenario 1&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jan&lt;/TD&gt;&lt;TD&gt;Scenario 2&lt;/TD&gt;&lt;TD&gt;110&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jan&lt;/TD&gt;&lt;TD&gt;Scenario 3&lt;/TD&gt;&lt;TD&gt;130&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jan&lt;/TD&gt;&lt;TD&gt;Scenario 4&lt;/TD&gt;&lt;TD&gt;180&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Feb&lt;/TD&gt;&lt;TD&gt;Scenario 1&lt;/TD&gt;&lt;TD&gt;110&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Feb&lt;/TD&gt;&lt;TD&gt;Scenario 2&lt;/TD&gt;&lt;TD&gt;130&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Feb&lt;/TD&gt;&lt;TD&gt;Scenario 3&lt;/TD&gt;&lt;TD&gt;180&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Feb&lt;/TD&gt;&lt;TD&gt;Scenario 4&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 22 Jul 2019 01:26:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/745257#M2469</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-22T01:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a variation of a measure depending on a slicer selection?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/745261#M2470</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; attached, you can tweak it as per your need. I guess this will get you started.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 01:37:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/745261#M2470</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-07-22T01:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a variation of a measure depending on a slicer selection?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/746180#M2508</link>
      <description>&lt;P&gt;Thanks for your quick answer&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="507" data-lia-user-login="parry2k" class="lia-mention lia-mention-user"&gt;parry2k&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;I wanted to attached a revised version of the file you kindly shared with me, but I don´t even know how to do that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To your report I added a monthly bar chart. I would basically need the bar chart to always show the Scenario 1 Gross Sales and compare it to whichever the selection is in the slicer.&lt;/P&gt;&lt;P&gt;And a Card also that shows the Diff measure you created but always comparing the Scenario 1 vs. the one that is selected in the slicer.&lt;/P&gt;&lt;P&gt;Is there a way to do that?&lt;/P&gt;&lt;P&gt;Thanks again for your help...I feel we are really close.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 00:37:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/746180#M2508</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-23T00:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a variation of a measure depending on a slicer selection?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/746198#M2509</link>
      <description>&lt;P&gt;How about creating the measures like below in the .pbix file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Scenario1Val = CALCULATE( [Total Gross Sales], 'Table'[Version] = "Scenario 1" )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DiffOfScenario1AndSelectedScenario = [Scenario1Val] - [Total Gross Sales Selected Scenario]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am new here and also would like to know how to attach files with the post.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Jul 2019 01:21:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/746198#M2509</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-23T01:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a variation of a measure depending on a slicer selection?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/746262#M2511</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; if the ask is to always compare against scenario 1 then it is much easier. Here is updated file, check page 2&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 02:51:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/746262#M2511</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-07-23T02:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a variation of a measure depending on a slicer selection?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/746703#M2524</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="507" data-lia-user-login="parry2k" class="lia-mention lia-mention-user"&gt;parry2k&lt;/a&gt;. We are getting there. The problem with that solution is that it doesn´t allow me to do a monthly bar chart. Since I have to measures as values it doesn´t allow me to add a legend, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 12:17:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/746703#M2524</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-23T12:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a variation of a measure depending on a slicer selection?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/746871#M2526</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; well the solution was based on your original post, if you have other things to achieve, please explain in details and then we can look into it.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 15:13:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/746871#M2526</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-07-23T15:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a variation of a measure depending on a slicer selection?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/750596#M2700</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="507" data-lia-user-login="parry2k" class="lia-mention lia-mention-user"&gt;parry2k&lt;/a&gt;&amp;nbsp;sorry to keep adding things to the request. I´m new to PowerBi so it is not that easy for me to explain what I need. And I try to use what you share with me to get to where I need to go.&lt;/P&gt;&lt;P&gt;I have a lot of information for 4 different scenarios and I would need to be able to compare any two scenarios I want in different monthly charts (Bar &amp;amp; Lines), but at the same time to be able to add tables and cards with % Var between the two selected scenarios in the slicer.&lt;/P&gt;&lt;P&gt;If it is easier to always have a fixed scenario and only change the scenario that I compare the first scenario to...I could live with that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do all of that? I think it is sort of a combinatio of the two solutions that you already shared with me in this post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, thanks for helping&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jul 2019 23:43:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/750596#M2700</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-27T23:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a variation of a measure depending on a slicer selection?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/750701#M2714</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; isn't it page 2 in my previous attachment doing that. once scenario is fixed and you compare other scenario against it.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jul 2019 14:17:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/750701#M2714</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-07-28T14:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a variation of a measure depending on a slicer selection?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/750797#M2725</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="507" data-lia-user-login="parry2k" class="lia-mention lia-mention-user"&gt;parry2k&lt;/a&gt;&amp;nbsp;The one you sent lets you compare the two variables, but you cannot have a bar chart, for example comparing the monthly evolution of the two variables, because they are two different measures.&lt;/P&gt;&lt;P&gt;I don´t know if what I´m trying to do is even possible.&lt;/P&gt;&lt;P&gt;Maybe it cannot be done in the same report and I have to have two different reports to show these information cuts.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jul 2019 19:47:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/750797#M2725</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-28T19:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a variation of a measure depending on a slicer selection?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/750805#M2726</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; you can month on x -axis and both those measure on values and you should able to get you are looking for. I'm trying to help without knowing full details.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jul 2019 20:06:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/750805#M2726</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-07-28T20:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a variation of a measure depending on a slicer selection?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/750825#M2729</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="507" data-lia-user-login="parry2k" class="lia-mention lia-mention-user"&gt;parry2k&lt;/a&gt;&amp;nbsp;Thanks! It all worked.&lt;/P&gt;&lt;P&gt;Apologies for the back and forth...it´s hard to explain with words so many variables and I couldn´t find a way to attach the .pbx so you could see my problem.&lt;/P&gt;&lt;P&gt;But it is working now!&lt;/P&gt;&lt;P&gt;So thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jul 2019 23:10:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-a-variation-of-a-measure-depending-on-a-slicer/m-p/750825#M2729</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-28T23:10:57Z</dc:date>
    </item>
  </channel>
</rss>

