<?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: How to exclude single cell from a column to calculate total in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exclude-single-cell-from-a-column-to-calculate-total/m-p/2656885#M78596</link>
    <description>&lt;P&gt;I think that&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="410103" data-lia-user-login="jesusbritog" class="lia-mention lia-mention-user"&gt;jesusbritog&lt;/a&gt;&amp;nbsp;means blank value and don't mean Products 2.&lt;/P&gt;</description>
    <pubDate>Sat, 23 Jul 2022 14:20:21 GMT</pubDate>
    <dc:creator>technolog</dc:creator>
    <dc:date>2022-07-23T14:20:21Z</dc:date>
    <item>
      <title>How to exclude single cell from a column to calculate total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exclude-single-cell-from-a-column-to-calculate-total/m-p/2656860#M78591</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;Before starting thanks for the support. I have these tables: sales, products, stores, and one table with exceptions, which means a product is not going to be sold in a particular store, below the structure:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;My question is, how can I in a matrix don't take the value for Product 2, and store 4 (an exception)&amp;nbsp; to calculate the Avg total, in this case, the result must be 28, not 19 because product 2 is not for sale at the store 4, is it possible in the matrix? or using DAX?.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for the support and time,&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jul 2022 12:57:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exclude-single-cell-from-a-column-to-calculate-total/m-p/2656860#M78591</guid>
      <dc:creator>jesusbritog</dc:creator>
      <dc:date>2022-07-23T12:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude single cell from a column to calculate total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exclude-single-cell-from-a-column-to-calculate-total/m-p/2656864#M78592</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;You can try create measure like this:&lt;/P&gt;&lt;P&gt;Store4Average = AVERAGEX( 'Table', DIVIDE (SUM('Table'[store4] ) , COUNTROWS( FILTER( 'Table' , 'Table'[store 4] &amp;lt;&amp;gt; BLANK () ) ) )&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jul 2022 13:23:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exclude-single-cell-from-a-column-to-calculate-total/m-p/2656864#M78592</guid>
      <dc:creator>technolog</dc:creator>
      <dc:date>2022-07-23T13:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude single cell from a column to calculate total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exclude-single-cell-from-a-column-to-calculate-total/m-p/2656869#M78593</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&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;LI-CODE lang="markup"&gt;Sales avg: =
VAR _alltable =
    ADDCOLUMNS (
        SUMMARIZE ( Sales, 'Product'[Product], Store[Store] ),
        "@salesavg", CALCULATE ( AVERAGE ( Sales[Sales] ) )
    )
VAR _exceptiontable =
    ADDCOLUMNS (
        FILTER (
            SUMMARIZE ( Sales, 'Product'[Product], Store[Store] ),
            'Product'[Product] = "Product2"
                &amp;amp;&amp;amp; Store[Store] = "Store4"
        ),
        "@salesavg", CALCULATE ( AVERAGE ( Sales[Sales] ) )
    )
VAR _returntable =
    EXCEPT ( _alltable, _exceptiontable )
RETURN
    AVERAGEX ( _returntable, [@salesavg] )
&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 23 Jul 2022 13:41:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exclude-single-cell-from-a-column-to-calculate-total/m-p/2656869#M78593</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-07-23T13:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude single cell from a column to calculate total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exclude-single-cell-from-a-column-to-calculate-total/m-p/2656885#M78596</link>
      <description>&lt;P&gt;I think that&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="410103" data-lia-user-login="jesusbritog" class="lia-mention lia-mention-user"&gt;jesusbritog&lt;/a&gt;&amp;nbsp;means blank value and don't mean Products 2.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jul 2022 14:20:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exclude-single-cell-from-a-column-to-calculate-total/m-p/2656885#M78596</guid>
      <dc:creator>technolog</dc:creator>
      <dc:date>2022-07-23T14:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude single cell from a column to calculate total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exclude-single-cell-from-a-column-to-calculate-total/m-p/2656920#M78598</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;, thanks a lot!, just a couple of questions:&lt;/P&gt;&lt;P&gt;1 - could be Exceptions table a isolated table right? I mean, not neccesary related to product table in the model.&lt;/P&gt;&lt;P&gt;2 - The sales table could have more than 160 million rows, is this a problem for that measure?&lt;/P&gt;&lt;P&gt;Again I really apreciate your support!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jul 2022 15:08:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exclude-single-cell-from-a-column-to-calculate-total/m-p/2656920#M78598</guid>
      <dc:creator>jesusbritog</dc:creator>
      <dc:date>2022-07-23T15:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude single cell from a column to calculate total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exclude-single-cell-from-a-column-to-calculate-total/m-p/2656921#M78599</link>
      <description>&lt;P&gt;Thanks a lot&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="401845" data-lia-user-login="technolog" class="lia-mention lia-mention-user"&gt;technolog&lt;/a&gt;&amp;nbsp;, but it is more like the other solution!, I apreciate your support!&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jul 2022 15:09:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exclude-single-cell-from-a-column-to-calculate-total/m-p/2656921#M78599</guid>
      <dc:creator>jesusbritog</dc:creator>
      <dc:date>2022-07-23T15:09:53Z</dc:date>
    </item>
  </channel>
</rss>

