<?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: Replace Blanks in Matrix with Zero for huge table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2432184#M64789</link>
    <description>&lt;P&gt;It's just [Date].&amp;nbsp;&lt;/P&gt;&lt;P&gt;The calendar table contains the week information that I display on columns in the matrix&lt;/P&gt;</description>
    <pubDate>Fri, 01 Apr 2022 13:28:42 GMT</pubDate>
    <dc:creator>joshua1990</dc:creator>
    <dc:date>2022-04-01T13:28:42Z</dc:date>
    <item>
      <title>Replace Blanks in Matrix with Zero for huge table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2431204#M64706</link>
      <description>&lt;P&gt;Hi experts!&lt;/P&gt;&lt;P&gt;I have a data model based on 2 dimensional tables (Calendar and Article Table) and 1 transactional table (Sales).&lt;/P&gt;&lt;P&gt;The transactional table contains several million rows.&lt;/P&gt;&lt;P&gt;I have a matrix visual that shows me per article (rows) for the past 15 weeks (columns) the sales.&lt;/P&gt;&lt;P&gt;Since not every article shows sales for each week I have a lot of blank spaces in the matrix.&lt;/P&gt;&lt;P&gt;I would like to replace this blank spaces with a '0'.&lt;/P&gt;&lt;P&gt;I tried it using Measure + 0, but this is not working. The dax measure is running, and running without any result when I add +0 to the measure. Is this is related to the number of rows?&lt;/P&gt;&lt;P&gt;Any other sugestions here?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 07:05:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2431204#M64706</guid>
      <dc:creator>joshua1990</dc:creator>
      <dc:date>2022-04-01T07:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Blanks in Matrix with Zero for huge table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2431492#M64723</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92006" data-lia-user-login="joshua1990" class="lia-mention lia-mention-user"&gt;joshua1990&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;That is because the engine is trying to optimize the caculations. Once it scans the sales table it will decide in which cells it shall perform calculation and which ones to skip. When you add +0 you are actually forcing the engine to perform the caclulation for all cells and hence more CPU time will be consumed.&lt;BR /&gt;You may try&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Sales Amount =
VAR SaleAmount =
    SUMX ( Sales, Sales[Amount] * Sales[Qty] )
RETURN
    IF ( ISBLANK ( SaleAmount ), 0, SaleAmount )&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 01 Apr 2022 09:00:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2431492#M64723</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-01T09:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Blanks in Matrix with Zero for huge table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2432007#M64765</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;Thanks a lot for this explanation! Do I need SUMX? Or this just an example measure? My original measure is a simple CALCULATE(SUM(Sales[Qty]), Filter X)&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 12:21:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2432007#M64765</guid>
      <dc:creator>joshua1990</dc:creator>
      <dc:date>2022-04-01T12:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Blanks in Matrix with Zero for huge table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2432011#M64766</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92006" data-lia-user-login="joshua1990" class="lia-mention lia-mention-user"&gt;joshua1990&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;No you don't need. This is just an example as I did not what your measure is.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 12:24:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2432011#M64766</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-01T12:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Blanks in Matrix with Zero for huge table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2432042#M64768</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;: Thanks, but the DAX Measure is still running. Nothing happens. In general the report is fast using the simple sum measure. Using IF and ISBLANK ist not working here as well.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 12:37:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2432042#M64768</guid>
      <dc:creator>joshua1990</dc:creator>
      <dc:date>2022-04-01T12:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Blanks in Matrix with Zero for huge table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2432048#M64769</link>
      <description>&lt;P&gt;Can you please share the complete code of your measure?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 12:43:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2432048#M64769</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-01T12:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Blanks in Matrix with Zero for huge table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2432067#M64772</link>
      <description>&lt;P&gt;SUM('SalesTrans'[Value])&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 12:50:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2432067#M64772</guid>
      <dc:creator>joshua1990</dc:creator>
      <dc:date>2022-04-01T12:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Blanks in Matrix with Zero for huge table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2432110#M64777</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92006" data-lia-user-login="joshua1990" class="lia-mention lia-mention-user"&gt;joshua1990&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Try this might be faster&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sales Amount =
VAR SaleAmount =
    SUM ( 'SalesTrans'[Value] )
RETURN
    SaleAmount * DIVIDE ( SaleAmount, SaleAmount, 0 )&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 01 Apr 2022 13:01:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2432110#M64777</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-01T13:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Blanks in Matrix with Zero for huge table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2432127#M64781</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;Thats weird. I still have blank values when I use you new measure&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 13:06:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2432127#M64781</guid>
      <dc:creator>joshua1990</dc:creator>
      <dc:date>2022-04-01T13:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Blanks in Matrix with Zero for huge table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2432176#M64786</link>
      <description>&lt;P&gt;What is the nam of the date column in your sales table?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 13:26:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2432176#M64786</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-01T13:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Blanks in Matrix with Zero for huge table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2432184#M64789</link>
      <description>&lt;P&gt;It's just [Date].&amp;nbsp;&lt;/P&gt;&lt;P&gt;The calendar table contains the week information that I display on columns in the matrix&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 13:28:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2432184#M64789</guid>
      <dc:creator>joshua1990</dc:creator>
      <dc:date>2022-04-01T13:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Blanks in Matrix with Zero for huge table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2432201#M64792</link>
      <description>&lt;P&gt;And what is on the rows of the matrix?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 13:34:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2432201#M64792</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-01T13:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Blanks in Matrix with Zero for huge table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2432244#M64797</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;: Article on row, week on column and sales as value&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 13:46:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2432244#M64797</guid>
      <dc:creator>joshua1990</dc:creator>
      <dc:date>2022-04-01T13:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Blanks in Matrix with Zero for huge table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2432303#M64798</link>
      <description>&lt;P&gt;Tey this&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Sales Amount =
VAR FirstSalesDatea =
    CALCULATE ( MIN ( 'SalesTrans'[Date] ), REMOVEFILTERS () )
VAR LastSalesDate =
    CALCULATE ( MAX ( 'SalesTrans'[Date] ), REMOVEFILTERS () )
VAR CurrentDate =
    MAX ( 'Date'[Date] )
VAR ForceZero = FirstSalesDate &amp;gt;= CurrentDate
    &amp;amp;&amp;amp; CurrentDate &amp;lt;= LastSalesDate
VAR SaleAmount =
    SUM ( 'SalesTrans'[Value] )
RETURN
    SaleAmount + IF ( ForceZero, 0 )&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 01 Apr 2022 14:01:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2432303#M64798</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-01T14:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Blanks in Matrix with Zero for huge table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2453792#M66129</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92006" data-lia-user-login="joshua1990" class="lia-mention lia-mention-user"&gt;joshua1990&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Has your problem been solved?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team _ kalyj&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 03:16:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-Blanks-in-Matrix-with-Zero-for-huge-table/m-p/2453792#M66129</guid>
      <dc:creator>v-yanjiang-msft</dc:creator>
      <dc:date>2022-04-13T03:16:08Z</dc:date>
    </item>
  </channel>
</rss>

