<?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: Creating a Measure using different filtered values from the same column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Measure-using-different-filtered-values-from-the-same/m-p/2614789#M75933</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;=
VAR Actual =
    CALCULATE ( SUM ( [Amount] ), [Scenario] = "Actual" )
VAR Budget =
    CALCULATE ( SUM ( [Amount] ), [Scenario] = "Budget" )
RETURN
    DIVIDE ( Actual - Budget, Actual )&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 01 Jul 2022 18:37:13 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-07-01T18:37:13Z</dc:date>
    <item>
      <title>Creating a Measure using different filtered values from the same column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Measure-using-different-filtered-values-from-the-same/m-p/2610282#M75674</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am pretty new to Power BI and am not very experienced in creating measures using DAX commands so I apologize if my terminology is a bit off.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a measure that calculates the variance of Actual and Budget amounts from a table as seen below. I tried creating a quick measure to do the calculation, but it doesn't allow me to filter the "Amount" data by Actual or Budget so it just returns the same data. What DAX Commands can I use to filter the Amount by Scenario and create an equation to solve for variance&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 18:47:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Measure-using-different-filtered-values-from-the-same/m-p/2610282#M75674</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-29T18:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Measure using different filtered values from the same column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Measure-using-different-filtered-values-from-the-same/m-p/2610292#M75677</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the variance between which Actual and which Budget? Meaning what are you slicing by? Date?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 18:54:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Measure-using-different-filtered-values-from-the-same/m-p/2610292#M75677</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-29T18:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Measure using different filtered values from the same column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Measure-using-different-filtered-values-from-the-same/m-p/2610439#M75689</link>
      <description>&lt;P&gt;Hey&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;The "Actual" and "Budget" come from the scenario column. For example, using the chart above, the "Actual" values would be 5, 7, 3, 4, and 7, and the "Budget" values would be 8, 18, 8 , and 6. I am slicing by month, but I didn't include that column in the above example, as I didn't think it was needed to figure out the equation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To clarify, the equation would need to filter the Scenario column by either Actual or Budget and pull the amounts from the corresponding column. Please let me know if you need further clarifications via images or what not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 20:45:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Measure-using-different-filtered-values-from-the-same/m-p/2610439#M75689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-29T20:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Measure using different filtered values from the same column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Measure-using-different-filtered-values-from-the-same/m-p/2610486#M75694</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You ca use&lt;/P&gt;&lt;P&gt;CALCULATE (&amp;nbsp;&lt;/P&gt;&lt;P&gt;SUM ( [Amount] ),&lt;/P&gt;&lt;P&gt;[Scenario] = "Actual"&lt;/P&gt;&lt;P&gt;) -&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALCULATE (&amp;nbsp;&lt;/P&gt;&lt;P&gt;SUM ( [Amount] ),&lt;/P&gt;&lt;P&gt;[Scenario] = "Budget"&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 21:29:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Measure-using-different-filtered-values-from-the-same/m-p/2610486#M75694</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-29T21:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Measure using different filtered values from the same column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Measure-using-different-filtered-values-from-the-same/m-p/2614782#M75931</link>
      <description>&lt;P&gt;Perfect this works thanks so much. What would I need to add to the code in order to get % variance? I tried adding the below code to the end but it said my syntax is wrong.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/ &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Amount]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[Scenario]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"Actual"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks again&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 01 Jul 2022 18:30:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Measure-using-different-filtered-values-from-the-same/m-p/2614782#M75931</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-01T18:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Measure using different filtered values from the same column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Measure-using-different-filtered-values-from-the-same/m-p/2614789#M75933</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;=
VAR Actual =
    CALCULATE ( SUM ( [Amount] ), [Scenario] = "Actual" )
VAR Budget =
    CALCULATE ( SUM ( [Amount] ), [Scenario] = "Budget" )
RETURN
    DIVIDE ( Actual - Budget, Actual )&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 01 Jul 2022 18:37:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Measure-using-different-filtered-values-from-the-same/m-p/2614789#M75933</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-07-01T18:37:13Z</dc:date>
    </item>
  </channel>
</rss>

