<?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: Matrix row and column totals with excluded measure values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-row-and-column-totals-with-excluded-measure-values/m-p/3564708#M137424</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="654830" data-lia-user-login="irukandjix" class="lia-mention lia-mention-user"&gt;irukandjix&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest a measure along these lines (replace table/column references as needed):&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CellSum Modified = 
VAR Threshold = 4
RETURN
    IF (
        AND ( ISINSCOPE ( Number[Number] ), ISINSCOPE ( Color[Color] ) ),
        [CellSum],
        SUMX (
            SUMMARIZE ( YourTable, Color[Color], Number[Number] ),
            VAR CellSum = [CellSum] RETURN IF ( CellSum &amp;gt;= Threshold, CellSum )
        )
    )&lt;/LI-CODE&gt;
&lt;P&gt;ISINSCOPE is used to detect whether you are in an individual Color/Number cell.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does something like this work for you?&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Sun, 03 Dec 2023 04:10:14 GMT</pubDate>
    <dc:creator>OwenAuger</dc:creator>
    <dc:date>2023-12-03T04:10:14Z</dc:date>
    <item>
      <title>Matrix row and column totals with excluded measure values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-row-and-column-totals-with-excluded-measure-values/m-p/3563272#M137355</link>
      <description>&lt;P&gt;Table without restirictions has two dimensions Color and Number. Value cells has values from a measure (we can call it CellSum) that sums up values with these dimensions. I want to exclude all values below 4 from counted totals, but want to see these values in the matrix. See example. How can we achive this with dax code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table without restrictions:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Desired table (red lines just to show which values we want to exclude from totals):&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 14:38:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-row-and-column-totals-with-excluded-measure-values/m-p/3563272#M137355</guid>
      <dc:creator>irukandjix</dc:creator>
      <dc:date>2023-12-01T14:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix row and column totals with excluded measure values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-row-and-column-totals-with-excluded-measure-values/m-p/3564708#M137424</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="654830" data-lia-user-login="irukandjix" class="lia-mention lia-mention-user"&gt;irukandjix&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest a measure along these lines (replace table/column references as needed):&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CellSum Modified = 
VAR Threshold = 4
RETURN
    IF (
        AND ( ISINSCOPE ( Number[Number] ), ISINSCOPE ( Color[Color] ) ),
        [CellSum],
        SUMX (
            SUMMARIZE ( YourTable, Color[Color], Number[Number] ),
            VAR CellSum = [CellSum] RETURN IF ( CellSum &amp;gt;= Threshold, CellSum )
        )
    )&lt;/LI-CODE&gt;
&lt;P&gt;ISINSCOPE is used to detect whether you are in an individual Color/Number cell.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does something like this work for you?&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sun, 03 Dec 2023 04:10:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-row-and-column-totals-with-excluded-measure-values/m-p/3564708#M137424</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2023-12-03T04:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix row and column totals with excluded measure values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-row-and-column-totals-with-excluded-measure-values/m-p/3564909#M137441</link>
      <description>&lt;P&gt;Very nice solution, thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="6799" data-lia-user-login="OwenAuger" class="lia-mention lia-mention-user"&gt;OwenAuger&lt;/a&gt;&amp;nbsp;! Your magic does exactly what is wanted!&lt;/P&gt;</description>
      <pubDate>Sun, 03 Dec 2023 15:56:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-row-and-column-totals-with-excluded-measure-values/m-p/3564909#M137441</guid>
      <dc:creator>irukandjix</dc:creator>
      <dc:date>2023-12-03T15:56:40Z</dc:date>
    </item>
  </channel>
</rss>

