<?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 Using &amp;quot;WhatIf&amp;quot; Parameters in a Dax Measure.  Need Help with Totals in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-quot-WhatIf-quot-Parameters-in-a-Dax-Measure-Need-Help/m-p/905415#M8484</link>
    <description>&lt;P&gt;I created 3 WhatIf Parameters and joined them to a table in my dataset to project forecasted information.&amp;nbsp; When I joined the 3 WhatIf Parameters to the table, I needed to make sure I apply the Whatif Value to the correct record in the table.&amp;nbsp; &amp;nbsp;Below are two screen shots to help illustrate my problem.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Screen Shot 1 is marked with the three values I am trying to re-compute the wages using the WhatIf parameters.&amp;nbsp; The information is correct for all 3 parameters but you will notice the total for the Rate Forecast column is the same as the Wages.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why does the Rate Forecast total equal the Wages when you can clearly see changes were made to each line item in the Rate Forecast Column.&amp;nbsp; &amp;nbsp;Screen Shot 2 illusrates the Dax Measure I used to populate the Rate Forecast values.&amp;nbsp; Any Advice?&amp;nbsp; Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Screen Shot 1:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Screen Shot 2:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jan 2020 16:12:16 GMT</pubDate>
    <dc:creator>DuaneDLB</dc:creator>
    <dc:date>2020-01-20T16:12:16Z</dc:date>
    <item>
      <title>Using "WhatIf" Parameters in a Dax Measure.  Need Help with Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-quot-WhatIf-quot-Parameters-in-a-Dax-Measure-Need-Help/m-p/905415#M8484</link>
      <description>&lt;P&gt;I created 3 WhatIf Parameters and joined them to a table in my dataset to project forecasted information.&amp;nbsp; When I joined the 3 WhatIf Parameters to the table, I needed to make sure I apply the Whatif Value to the correct record in the table.&amp;nbsp; &amp;nbsp;Below are two screen shots to help illustrate my problem.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Screen Shot 1 is marked with the three values I am trying to re-compute the wages using the WhatIf parameters.&amp;nbsp; The information is correct for all 3 parameters but you will notice the total for the Rate Forecast column is the same as the Wages.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why does the Rate Forecast total equal the Wages when you can clearly see changes were made to each line item in the Rate Forecast Column.&amp;nbsp; &amp;nbsp;Screen Shot 2 illusrates the Dax Measure I used to populate the Rate Forecast values.&amp;nbsp; Any Advice?&amp;nbsp; Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Screen Shot 1:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Screen Shot 2:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 16:12:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-quot-WhatIf-quot-Parameters-in-a-Dax-Measure-Need-Help/m-p/905415#M8484</guid>
      <dc:creator>DuaneDLB</dc:creator>
      <dc:date>2020-01-20T16:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using "WhatIf" Parameters in a Dax Measure.  Need Help with Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-quot-WhatIf-quot-Parameters-in-a-Dax-Measure-Need-Help/m-p/905579#M8491</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="59543" data-lia-user-login="DuaneDLB" class="lia-mention lia-mention-user"&gt;DuaneDLB&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Measures are evaluated in every context it is visualized. To be more specific; if you have a measure like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = SUM(Table[SalesAmount])&lt;/LI-CODE&gt;&lt;P&gt;and you create a card of it, it will sum the SalesAmount column that is currently in the context. The context is modified by slicers, filters &lt;STRONG&gt;or by visuals&lt;/STRONG&gt;. If you have a table (or matrix), every occurence of the measure is a seperate evaluation of said measure in that context. In the example of above, if I would create a table with in the first column all months, en then in the second column the above measure, the measure would be evaluated against a context that is modified by the first column. In other words, the dataset this measure is calculated on is filtered on the specific month. So far, so good.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your measure, you use SELECTEDVALUE(). This will be true if the whole column you are referencing is having only one distinct value. If it has multiple values, the statement &lt;EM&gt;IF(SELECTEDVALUE(&amp;lt;column&amp;gt;) = "xxx"... &amp;nbsp;&lt;/EM&gt;will always be false because there simply isn't a SELECTEDVALUE, there are multiple. I mention this because you might think that what you are currently seeing is the SUM of every subline under "Pay Description" rows, but it really is not. It is the measure evaluated in a context where the data is filtered on "Pay Description".&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, a common misconception is that the Total row in tables and matrixes are simple sums of the columns in the visual. &lt;STRONG&gt;They are&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;NOT&lt;/STRONG&gt; in the case of Measures. The measure is simply re-evaluated on a dataset unfiltered by the columns in your visual. Since your measure checks multiple times for SELECTEDVALUE()="xxx", which always results in FALSE in a unfiltered dataset with multiple values in pyt_itemcode, only the last part is evaluated (SUM(pyd_ammount)).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps. If you do want your measure to evaluate differently for different levels in your visual, you might need to create a bit more complex measure and use ISINSCOPE(). I found &lt;A href="https://xxlbi.com/blog/new-dax-function-isinscope/" target="_blank" rel="noopener"&gt;this&lt;/A&gt; to be a fantastic tutorial on that. Let me know if you have any questions &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Djerro123&lt;/P&gt;&lt;P&gt;-------------------------------&lt;/P&gt;&lt;P&gt;If this answered your question, please &lt;STRONG&gt;mark it as the Solution&lt;/STRONG&gt;. This also helps others to find what they are looking for.&lt;/P&gt;&lt;P&gt;Keep those &lt;STRONG&gt;thumbs up&lt;/STRONG&gt; coming! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 19:35:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-quot-WhatIf-quot-Parameters-in-a-Dax-Measure-Need-Help/m-p/905579#M8491</guid>
      <dc:creator>JarroVGIT</dc:creator>
      <dc:date>2020-01-20T19:35:13Z</dc:date>
    </item>
  </channel>
</rss>

