<?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 How to sum multiple values if selected by slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-multiple-values-if-selected-by-slicer/m-p/3235717#M157208</link>
    <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 10 suppliers which are evaluated by 10 different categories, in a 0 to 1 scale, and I'm trying to add their evaluations in each category based on a multiple selection slicer, to show and compare that addition into a stacked column chart. It's given me a lot of trouble to try and figure out how to do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to do it in a little scale using binary values in a table, and a measure which defines the sum for the values&amp;nbsp; (for example, "Capacity" = 1, "Cash" = 2, "Clean" = 4, "Commitment" = 8, ando so on), combining it with a Var and Switch functions, as follows:&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;It worked, in a way. But for all 10 categories, the final code had 1024 lines for the SWITCH function, and that is too much memory used for most computers in which I tried to do it.&lt;BR /&gt;&lt;BR /&gt;My question is: Is there another way to do the same thing, but through other functions? Or can I do something like that in a way that needs less memory?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 15 May 2023 13:00:10 GMT</pubDate>
    <dc:creator>Galvones</dc:creator>
    <dc:date>2023-05-15T13:00:10Z</dc:date>
    <item>
      <title>How to sum multiple values if selected by slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-multiple-values-if-selected-by-slicer/m-p/3235717#M157208</link>
      <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 10 suppliers which are evaluated by 10 different categories, in a 0 to 1 scale, and I'm trying to add their evaluations in each category based on a multiple selection slicer, to show and compare that addition into a stacked column chart. It's given me a lot of trouble to try and figure out how to do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to do it in a little scale using binary values in a table, and a measure which defines the sum for the values&amp;nbsp; (for example, "Capacity" = 1, "Cash" = 2, "Clean" = 4, "Commitment" = 8, ando so on), combining it with a Var and Switch functions, as follows:&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;It worked, in a way. But for all 10 categories, the final code had 1024 lines for the SWITCH function, and that is too much memory used for most computers in which I tried to do it.&lt;BR /&gt;&lt;BR /&gt;My question is: Is there another way to do the same thing, but through other functions? Or can I do something like that in a way that needs less memory?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 13:00:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-multiple-values-if-selected-by-slicer/m-p/3235717#M157208</guid>
      <dc:creator>Galvones</dc:creator>
      <dc:date>2023-05-15T13:00:10Z</dc:date>
    </item>
  </channel>
</rss>

