<?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: unable to replace blank with zeros in matrix in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/unable-to-replace-blank-with-zeros-in-matrix/m-p/2179757#M50707</link>
    <description>&lt;P&gt;this solution is correct but its not working with me . after i created both calender table and and index column , joined with the data table and then used the two columns from calender and index table within the created measure it keeps loading in the visual but doesnt show the result at the end . note that my data&amp;nbsp; table source is in direct query mode, would this affect on the speed of the data loading in the visual?&lt;/P&gt;</description>
    <pubDate>Tue, 09 Nov 2021 07:04:35 GMT</pubDate>
    <dc:creator>lawada</dc:creator>
    <dc:date>2021-11-09T07:04:35Z</dc:date>
    <item>
      <title>unable to replace blank with zeros in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/unable-to-replace-blank-with-zeros-in-matrix/m-p/2176406#M50621</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;im trying to replace blank values with zeros in the following matrix :&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;the measure im using:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;total users = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;canceled_then_returned_cohort[user_id]&lt;/SPAN&gt;&lt;SPAN&gt;))+&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;note that both columns im using in the matrix doesnt have blank values and my datasource is redshift&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;is there any other solution than adding '+0' at the end of the measure since it's not working&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Nov 2021 12:50:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/unable-to-replace-blank-with-zeros-in-matrix/m-p/2176406#M50621</guid>
      <dc:creator>lawada</dc:creator>
      <dc:date>2021-11-07T12:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: unable to replace blank with zeros in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/unable-to-replace-blank-with-zeros-in-matrix/m-p/2176426#M50622</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="222024" data-lia-user-login="lawada" class="lia-mention lia-mention-user"&gt;lawada&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you check your source data if you have data for September 2018 on 10th ?&amp;nbsp;&lt;BR /&gt;If there is not data, the cell in the matrix cannot be controlled&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Nov 2021 13:15:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/unable-to-replace-blank-with-zeros-in-matrix/m-p/2176426#M50622</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-11-07T13:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: unable to replace blank with zeros in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/unable-to-replace-blank-with-zeros-in-matrix/m-p/2176556#M50625</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp;points out, if there are no rows in the data table corresponding to a particular cell, then it can't return anything since there's nothing to evaluate. It doesn't matter if you add "+0" to the measure since it never gets called in the first place.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The solution to this is to use dimension tables to populate the rows and columns in the visual. I.e., a date table for the rows and some sort of index table for the columns. This way, the measure you put in the matrix cells lives in the cross-join of the dimensions rather than being limited to the subset that intersects with your data table.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Nov 2021 16:58:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/unable-to-replace-blank-with-zeros-in-matrix/m-p/2176556#M50625</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-11-07T16:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: unable to replace blank with zeros in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/unable-to-replace-blank-with-zeros-in-matrix/m-p/2177203#M50645</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="222024" data-lia-user-login="lawada" class="lia-mention lia-mention-user"&gt;lawada&lt;/a&gt;&amp;nbsp;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;FONT face="verdana,geneva"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Segoe UI',sans-serif; color: black;"&gt;According to your description, you can use IF function, like this:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;FONT face="verdana,geneva"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Segoe UI',sans-serif; color: black;"&gt;Total users = IF(ISBLANK(CALCULATE(DISTINCTCOUNT(canceled_then_returned_cohort[user_id]))),”0”,CALCULATE(DISTINCTCOUNT(canceled_then_returned_cohort[user_id]))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;FONT face="verdana,geneva"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Segoe UI',sans-serif; color: black;"&gt;Best Regards,&lt;BR /&gt;Community Support Team _ kalyj&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="xmsonormal"&gt;&lt;FONT face="verdana,geneva"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Segoe UI',sans-serif; color: black;"&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 06:29:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/unable-to-replace-blank-with-zeros-in-matrix/m-p/2177203#M50645</guid>
      <dc:creator>v-yanjiang-msft</dc:creator>
      <dc:date>2021-11-08T06:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: unable to replace blank with zeros in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/unable-to-replace-blank-with-zeros-in-matrix/m-p/2179749#M50704</link>
      <description>&lt;P&gt;this solution doesnt work, as mentioned in the answers below theres no rows in the data table&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 06:59:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/unable-to-replace-blank-with-zeros-in-matrix/m-p/2179749#M50704</guid>
      <dc:creator>lawada</dc:creator>
      <dc:date>2021-11-09T06:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: unable to replace blank with zeros in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/unable-to-replace-blank-with-zeros-in-matrix/m-p/2179757#M50707</link>
      <description>&lt;P&gt;this solution is correct but its not working with me . after i created both calender table and and index column , joined with the data table and then used the two columns from calender and index table within the created measure it keeps loading in the visual but doesnt show the result at the end . note that my data&amp;nbsp; table source is in direct query mode, would this affect on the speed of the data loading in the visual?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 07:04:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/unable-to-replace-blank-with-zeros-in-matrix/m-p/2179757#M50707</guid>
      <dc:creator>lawada</dc:creator>
      <dc:date>2021-11-09T07:04:35Z</dc:date>
    </item>
  </channel>
</rss>

