<?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: Measure calculation using different columns based on a value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculation-using-different-columns-based-on-a-value/m-p/2684889#M80557</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="418631" data-lia-user-login="aallman" class="lia-mention lia-mention-user"&gt;aallman&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OK.&amp;nbsp; Hopefully I understand correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Create measure "01 Selected Value".&lt;/P&gt;&lt;P&gt;This measure determines which value is selected for the "Ship Complete" slicer:&lt;/P&gt;&lt;P&gt;- Yes, No or (Blank)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Create measure "02 Sum EXCLUDE Filters".&lt;/P&gt;&lt;P&gt;This will SUM all values &lt;EM&gt;while ignoring the filter selection&lt;/EM&gt;, as you requested.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) Create measure "03 Sum INCLUDE Filters".&lt;/P&gt;&lt;P&gt;This will SUM all values &lt;EM&gt;within the current FC (Filter Context)&lt;/EM&gt;, as you requested.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4) Create measure "04 Decision".&lt;/P&gt;&lt;P&gt;This is where the magic happens.&lt;/P&gt;&lt;P&gt;IF Ship Complete = Yes&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;THEN it returns the SUM of everything (excluding filters)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;ELSE it returns the SUM of everything (within the current FC)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can, of course, put all 4 of these measures into VARS, and combine them into a single measure if you wish.&lt;/P&gt;&lt;P&gt;However, for testing purposes, I like to place each one of them in a card to see what happens when I select values within a slicer, as follows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scenario 1 - Ship Complete = (Blank)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scenario 2 - Ship Complete = Yes&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scenario 3 - Ship Complete = No&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully this is helpful to you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;</description>
    <pubDate>Fri, 05 Aug 2022 21:26:10 GMT</pubDate>
    <dc:creator>WinterMist</dc:creator>
    <dc:date>2022-08-05T21:26:10Z</dc:date>
    <item>
      <title>Measure calculation using different columns based on a value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculation-using-different-columns-based-on-a-value/m-p/2684832#M80548</link>
      <description>&lt;P&gt;This is going to be confusing, I apologize in advance. I will try to be as clear as possible.&lt;/P&gt;&lt;P&gt;I am trying to create a measure I can use in a visual table that can be filtered by the user. I want that visual to look something like this where $Value is the measure I am trying to create:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;OrderNbr&lt;/TD&gt;&lt;TD&gt;ShipComplete&lt;/TD&gt;&lt;TD&gt;$Value&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12345&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;$12,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;67891&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;TD&gt;$2,000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is, is it possible to have the measure sum different column values based on if the order is ShipComplete=Yes or No? In my raw data, each order will have several lines all with differnent $LineValues. In my visual, I want the measure to Sumx(ALL( $LineValues)) IF the order is&amp;nbsp;ShipComplete=Yes regardless of any filters the user applies.&amp;nbsp; If the order is ShipComplete=No I want the measure to only sum the $LineValues of lines that the user filters for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The filters will usually only apply to certain line items on an order so if a filter is applied, the order could get split up in my visual. For example, if the filters result in only 2 of the 5 line items on an order and the order is&amp;nbsp;ShipComplete=Yes then I want the visual to show the sum of all 5 line item values but if the order is&amp;nbsp;ShipComplete=No then I want the visual to show the sum of only the 2 line item values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;UPDATE:&lt;/STRONG&gt;&lt;/U&gt; This is even more complex than I originally thought. My data has 3 levels to it: Order, TopLevel, Item. Each Item has a price associated with it and also have the values which the user will be filtering based on in my data. I want the resulting visual to show a sum on the Order level (as seen in above table). If the order is ship complete I want to see the sum of all Item values in that order regardless of filters. If the order is not ship complete but the item has a TopLevel, I want to see the sum of all Item values in that TopLevel. Otherwise I only want to see the sum of Item values that the user has filtered for. Below is a better example of my raw data set where Color is what the user will filter the visual on.&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Order#&lt;/TD&gt;&lt;TD&gt;TopLevel#&lt;/TD&gt;&lt;TD&gt;Item#&lt;/TD&gt;&lt;TD&gt;Ship Complete&lt;/TD&gt;&lt;TD&gt;Item$&lt;/TD&gt;&lt;TD&gt;Color&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;101&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;red&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;102&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;green&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;103&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;green&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;104&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;red&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;105&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;green&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;106&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;red&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;107&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;green&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;201&lt;/TD&gt;&lt;TD&gt;108&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;red&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;201&lt;/TD&gt;&lt;TD&gt;109&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;green&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;110&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;green&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;From this data I want a visual that results in exactly the following (assuming the user filters for "red")&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Order#&lt;/TD&gt;&lt;TD&gt;Ship Complete&lt;/TD&gt;&lt;TD&gt;Total Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;TD&gt;17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this even possible??&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 23:49:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculation-using-different-columns-based-on-a-value/m-p/2684832#M80548</guid>
      <dc:creator>aallman</dc:creator>
      <dc:date>2022-11-10T23:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Measure calculation using different columns based on a value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculation-using-different-columns-based-on-a-value/m-p/2684889#M80557</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="418631" data-lia-user-login="aallman" class="lia-mention lia-mention-user"&gt;aallman&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OK.&amp;nbsp; Hopefully I understand correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Create measure "01 Selected Value".&lt;/P&gt;&lt;P&gt;This measure determines which value is selected for the "Ship Complete" slicer:&lt;/P&gt;&lt;P&gt;- Yes, No or (Blank)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Create measure "02 Sum EXCLUDE Filters".&lt;/P&gt;&lt;P&gt;This will SUM all values &lt;EM&gt;while ignoring the filter selection&lt;/EM&gt;, as you requested.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) Create measure "03 Sum INCLUDE Filters".&lt;/P&gt;&lt;P&gt;This will SUM all values &lt;EM&gt;within the current FC (Filter Context)&lt;/EM&gt;, as you requested.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4) Create measure "04 Decision".&lt;/P&gt;&lt;P&gt;This is where the magic happens.&lt;/P&gt;&lt;P&gt;IF Ship Complete = Yes&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;THEN it returns the SUM of everything (excluding filters)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;ELSE it returns the SUM of everything (within the current FC)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can, of course, put all 4 of these measures into VARS, and combine them into a single measure if you wish.&lt;/P&gt;&lt;P&gt;However, for testing purposes, I like to place each one of them in a card to see what happens when I select values within a slicer, as follows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scenario 1 - Ship Complete = (Blank)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scenario 2 - Ship Complete = Yes&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scenario 3 - Ship Complete = No&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully this is helpful to you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 21:26:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculation-using-different-columns-based-on-a-value/m-p/2684889#M80557</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2022-08-05T21:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Measure calculation using different columns based on a value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculation-using-different-columns-based-on-a-value/m-p/2697687#M81487</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="418631" data-lia-user-login="aallman" class="lia-mention lia-mention-user"&gt;aallman&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Were you able to get things working?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not, please let me know.&lt;/P&gt;&lt;P&gt;If so, please consider marking this as a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Nathan&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 15:04:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculation-using-different-columns-based-on-a-value/m-p/2697687#M81487</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2022-08-12T15:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Measure calculation using different columns based on a value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculation-using-different-columns-based-on-a-value/m-p/2898690#M94329</link>
      <description>&lt;P&gt;This is super helpful but it didn't quite work for me. I still need each order's line values summed separately to get the order's total for each order in the visual. I then would like to be able to see all those values in one column so I can get a grand total.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does that make sense?&lt;/P&gt;&lt;P&gt;I added additional info to the original post!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 23:50:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculation-using-different-columns-based-on-a-value/m-p/2898690#M94329</guid>
      <dc:creator>aallman</dc:creator>
      <dc:date>2022-11-10T23:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Measure calculation using different columns based on a value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculation-using-different-columns-based-on-a-value/m-p/2900772#M94467</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="418631" data-lia-user-login="aallman" class="lia-mention lia-mention-user"&gt;aallman&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding the UPDATE to requirements, I believe I am close.&amp;nbsp; For summary, I have outlined the 3 scenarios here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTES:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;SC = Ship Complete&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;FC = Filter Context&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Only Scenario #3 should be affected by the Color slicer&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; since it is the only scenario affected by FC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;S1) IF SC = Yes&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;THEN SUM Item$ values per Order# (EXCLUDE FC)&lt;/P&gt;&lt;P&gt;S2) IF (SC = No) AND (TopLevel# exists)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;THEN SUM Item$ values per TopLevel# (EXCLUDE FC)&lt;BR /&gt;S3) ELSE&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;SUM Item$ values (INCLUDE FC)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a calculated column [Item CC] which calculates the sum of [Item$] for each [Order#] &amp;amp; [TopLevel#]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add the calculated column to the visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: In the "Desired Result" visual, you will notice I have added "TopLevel#", which was not present in your UPDATED requirements.&amp;nbsp; As long as this is present, the visual seems to work.&amp;nbsp; But if it is removed, undesired behavior occurs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see that Item CC is calculating correctly for each Order# &amp;amp; TopLevel# when no slicer value is selected.&amp;nbsp; (Screenshot above)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF slicer Color = green THEN the 3 requirement scenarios are satisfied.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;S1) For Order #2, SC = Yes.&amp;nbsp; Therefore, the sum of values for Order #2 is displayed, ignoring the FC.&amp;nbsp; Result = 14.&amp;nbsp;&lt;/P&gt;&lt;P&gt;S2) For Order #1 &amp;amp; #3, SC = No AND TopLevel# exists (partial for #3).&amp;nbsp; Therefore, the sum of values for Order #1 &amp;amp; #3 is displayed per each TopLevel#, ignoring the FC.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- RESULT for Order #1 &amp;amp; TopLevel# 100 = 17&lt;/P&gt;&lt;P&gt;- RESULT for Order #3 &amp;amp; TopLevel# 200 = 8&lt;/P&gt;&lt;P&gt;- RESULT for Order #3 &amp;amp; TopLevel# 201 = 8&lt;/P&gt;&lt;P&gt;S3) There is only 1 row which meets Scenario 3, where SC = No &amp;amp; TopLevel# does NOT exist.&amp;nbsp; For this row, the requirement states that it should SUM item values WITHIN THE CURRENT FC.&amp;nbsp; Since Color currently is set to Green, and this row is Green, this row should appear &amp;amp; it does.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF slicer Color = red THEN the 3 requirement scenarios are satisfied as well.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;S1) Order #2 remains at 14, ignoring FC.&lt;/P&gt;&lt;P&gt;S2) Multiple items:&lt;/P&gt;&lt;P&gt;Order #1 &amp;amp; TopLevel# 100 remain at 17, ignoring FC.&lt;/P&gt;&lt;P&gt;Order #3 &amp;amp; TopLevel# 200 remain at 8, ignoring FC.&lt;/P&gt;&lt;P&gt;Order #3 &amp;amp; TopLevel# 201 remain at 8, ignoring FC.&lt;/P&gt;&lt;P&gt;S3) The single row where SC = No AND TopLevel# is NULL has now disappeared correctly, because it is green and should be affected by the slicer (FC), which it is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully this is helpful for you &amp;amp; adding TopLevel# to the "Desired Result" visual is not a problem for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 18:02:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculation-using-different-columns-based-on-a-value/m-p/2900772#M94467</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2022-11-11T18:02:45Z</dc:date>
    </item>
  </channel>
</rss>

