<?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: &amp;quot;NULL&amp;quot; rows affect the calculation Power BI in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-NULL-quot-rows-affect-the-calculation-Power-BI/m-p/4256151#M168607</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="750035" data-lia-user-login="Sidpug2013" class="lia-mention lia-mention-user"&gt;Sidpug2013&lt;/a&gt;&amp;nbsp;Can you paste the current formula used?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BBF&lt;/P&gt;</description>
    <pubDate>Thu, 24 Oct 2024 10:10:50 GMT</pubDate>
    <dc:creator>BeaBF</dc:creator>
    <dc:date>2024-10-24T10:10:50Z</dc:date>
    <item>
      <title>"NULL" rows affect the calculation Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-NULL-quot-rows-affect-the-calculation-Power-BI/m-p/4255860#M168592</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I put below an example of my problem.&lt;/P&gt;&lt;P&gt;When I want to calculate Penetration Index on various levels, on a Power BI matrix, I get the calculations wrong.&lt;BR /&gt;On Power BI I replicated the calculation with Dax, for convenience.&lt;/P&gt;&lt;P&gt;When I make a matrix and put AggregateDepartment and CheckoutDepartment on the rows, in order, it gives me wrong percentage values because there are ‘NULL’ values.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;BR /&gt;If I put in an array visual object on the rows the AggregateDepartment and then put the Measure it gives me correct result (when I put filter level 1 or when CodDep is null).&lt;BR /&gt;If I put in the bottom level of the matrix, in the rows, the CheckoutDepartment, it gives me wrong results obviously because of the level 1 filter or CodDep = null).&lt;/P&gt;&lt;P&gt;The structure of the file looks like this Divided into 5 levels (AggregateDepartment, CheckoutDepartment, mer1, mer2, mer3). The Penetration Indexes refer to the level. After that begin those of CheckoutDepartment, etc.&lt;/P&gt;&lt;P&gt;I would like to have the right Penetration Indexes on all levels, corresponding to the right descriptions.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How can I solve this problem?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 06:56:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-NULL-quot-rows-affect-the-calculation-Power-BI/m-p/4255860#M168592</guid>
      <dc:creator>Sidpug2013</dc:creator>
      <dc:date>2024-10-25T06:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: "NULL" rows affect the calculation Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-NULL-quot-rows-affect-the-calculation-Power-BI/m-p/4256151#M168607</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="750035" data-lia-user-login="Sidpug2013" class="lia-mention lia-mention-user"&gt;Sidpug2013&lt;/a&gt;&amp;nbsp;Can you paste the current formula used?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BBF&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 10:10:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-NULL-quot-rows-affect-the-calculation-Power-BI/m-p/4256151#M168607</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2024-10-24T10:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: "NULL" rows affect the calculation Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-NULL-quot-rows-affect-the-calculation-Power-BI/m-p/4256193#M168614</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="202311" data-lia-user-login="BeaBF" class="lia-mention lia-mention-user"&gt;BeaBF&lt;/a&gt;Hi, the formula is: Column "O" / Column "P"&lt;BR /&gt;&lt;BR /&gt;In PBI CountGroup is Column"O" in Excel and CountTotal is Column "P" .&lt;BR /&gt;&lt;BR /&gt;Dax Measure is:&lt;BR /&gt;SumX('Table', &lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[CountGroup]&lt;/SPAN&gt;) / SumX ('Table', &lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[CountTotal]&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;I do also the calculated column:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;REPAGG&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[CountGroup]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;TOT&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[CountTotal]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;REPAGG&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;TOT&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Oct 2024 10:44:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-NULL-quot-rows-affect-the-calculation-Power-BI/m-p/4256193#M168614</guid>
      <dc:creator>Sidpug2013</dc:creator>
      <dc:date>2024-10-24T10:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: "NULL" rows affect the calculation Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-NULL-quot-rows-affect-the-calculation-Power-BI/m-p/4257239#M168673</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="750035" data-lia-user-login="Sidpug2013" class="lia-mention lia-mention-user"&gt;Sidpug2013&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're facing issues with NULL values or incorrect percentages in your matrix, consider using the DIVIDE function for better handling of division by zero:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
DIVIDE(SUMX('Table', 'Table'[CountGroup]), SUMX('Table', 'Table'[CountTotal]), 0)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're still having problems, provide some dummy data and the desired outcome. It is best presented in the form of a table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 02:41:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-NULL-quot-rows-affect-the-calculation-Power-BI/m-p/4257239#M168673</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-25T02:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: "NULL" rows affect the calculation Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-NULL-quot-rows-affect-the-calculation-Power-BI/m-p/4257590#M168689</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="750035" data-lia-user-login="Sidpug2013" class="lia-mention lia-mention-user"&gt;Sidpug2013&lt;/a&gt;&amp;nbsp; Try with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PenetrationIndex :=&lt;BR /&gt;IF(&lt;BR /&gt;ISINSCOPE('Table'[CheckoutDepartment]),&lt;BR /&gt;DIVIDE(SUM('Table'[CountGroup]), SUM('Table'[CountTotal])),&lt;BR /&gt;IF(&lt;BR /&gt;ISINSCOPE('Table'[AggregateDepartment]),&lt;BR /&gt;DIVIDE(SUM('Table'[CountGroup]), SUM('Table'[CountTotal]), 0),&lt;BR /&gt;BLANK() -- Optionally, return BLANK for other levels or handle differently&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BBF&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 07:20:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-NULL-quot-rows-affect-the-calculation-Power-BI/m-p/4257590#M168689</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2024-10-25T07:20:33Z</dc:date>
    </item>
  </channel>
</rss>

