<?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: undefined in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/5190094#M188151</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;I have added screenshot please have a look, and let me know asap!!&lt;/P&gt;&lt;P&gt;Thank you for helping!!&lt;/P&gt;</description>
    <pubDate>Thu, 28 May 2026 14:40:51 GMT</pubDate>
    <dc:creator>AditiGupta_</dc:creator>
    <dc:date>2026-05-28T14:40:51Z</dc:date>
    <item>
      <title>undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/5189684#M188144</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to find out the solution that even if we have data of output hours for given entities but if input hours are not available for some specific entities then prod efficiency should show 0 for those specific entities. Even after selecting multiple entities at same time. It should only reflect or calculate when we have both input and output hours, so that it will calculate accordingly.&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2026 02:51:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/5189684#M188144</guid>
      <dc:creator>AditiGupta_</dc:creator>
      <dc:date>2026-05-28T02:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/5189990#M188149</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1599353" data-lia-user-login="AditiGupta_" class="lia-mention lia-mention-user"&gt;AditiGupta_&lt;/a&gt;&amp;nbsp;, Can you explain the problem statement with a sample data for better understanding ?&lt;BR /&gt;&lt;BR /&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2026 12:05:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/5189990#M188149</guid>
      <dc:creator>Natarajan_M</dc:creator>
      <dc:date>2026-05-28T12:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/5190094#M188151</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;I have added screenshot please have a look, and let me know asap!!&lt;/P&gt;&lt;P&gt;Thank you for helping!!&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2026 14:40:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/5190094#M188151</guid>
      <dc:creator>AditiGupta_</dc:creator>
      <dc:date>2026-05-28T14:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/5190141#M188152</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1599353" data-lia-user-login="AditiGupta_" class="lia-mention lia-mention-user"&gt;AditiGupta_&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to update DAX measures by :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Output Hours (Final): add a conditional check&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output Hours (Final) =&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VAR _InputHrs = CALCULATE(SUM('Input Hrs'[Input Hours]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VAR _OutputHrs = SUM('Warehouse PRODROUTETRANS'[Output Hours])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RETURN&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; IF(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NOT ISBLANK(_InputHrs) &amp;amp;&amp;amp; _InputHrs &amp;gt; 0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _OutputHrs,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BLANK()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Input Hours (Final): stays clean&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Input Hours (Final) =&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VAR _InputHrs = CALCULATE(SUM('Input Hrs'[Input Hours]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RETURN&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; IF(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NOT ISBLANK(_InputHrs) &amp;amp;&amp;amp; _InputHrs &amp;gt; 0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _InputHrs,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BLANK()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Prod Eff: the critical fix&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Prod Eff =&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VAR _InputHrs = [Input Hours (Final)]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VAR _OutputHrs = [Output Hours (Final)]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RETURN&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; IF(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ISBLANK(_InputHrs) || _InputHrs = 0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0, -- No input hours → show 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DIVIDE(_OutputHrs, _InputHrs, 0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. Total Output Hours for KPI Card (only counts valid entities)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Total Output Hours (KPI) =&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUMX(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; VALUES('Warehouse PRODROUTETRANS'[Entity]), -- loop per entity&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; VAR _InputHrs = CALCULATE(SUM('Input Hrs'[Input Hours]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; VAR _OutputHrs = CALCULATE(SUM('Warehouse PRODROUTETRANS'[Output Hours]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; RETURN&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IF(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NOT ISBLANK(_InputHrs) &amp;amp;&amp;amp; _InputHrs &amp;gt; 0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _OutputHrs,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BLANK() -- excludes entity with no input hours from total&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps! Please, don't forget to &lt;STRONG&gt;accept as solution&lt;/STRONG&gt; &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; and &lt;STRONG&gt;thumbs up&lt;/STRONG&gt; &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; in order to keep helping others.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Oussama (Data Consultant - Expert Fabric &amp;amp; Power BI)&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2026 16:34:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/5190141#M188152</guid>
      <dc:creator>oussamahaimoud</dc:creator>
      <dc:date>2026-05-28T16:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/5190522#M188157</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1599353" data-lia-user-login="AditiGupta_" class="lia-mention lia-mention-user"&gt;AditiGupta_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you just need the specific entities to display 0 in a table or matrix when they lack input hours, a simple IF statement checking for blanks will do the job.&lt;/P&gt;&lt;PRE&gt;Prod Efficiency = &lt;BR /&gt;VAR _InputHours = [Input Hours]&lt;BR /&gt;VAR _OutputHours = [Output Hours]&lt;BR /&gt;&lt;BR /&gt;RETURN&lt;BR /&gt;IF (&lt;BR /&gt;ISBLANK ( _InputHours ) || _InputHours == 0,&lt;BR /&gt;0, -- Forces a 0 if input hours are missing or exactly zero&lt;BR /&gt;DIVIDE ( _OutputHours, _InputHours, 0 )&lt;BR /&gt;)&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;While this fixes the individual entity rows, your Grand Total might still sum up the output of the "zeroed" entities and divide it by the total inputs, which isn't always mathematically accurate for efficiency.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;Approach 2:&lt;/H3&gt;&lt;P&gt;Because you mentioned selecting multiple entities at the same time, we need to ensure the Grand Total &lt;I&gt;ignores&lt;/I&gt; the output hours of any entity that is missing its input hours. Otherwise, your total efficiency is inaccurate.&lt;/P&gt;&lt;P&gt;We can achieve this by using an iterator (FILTER and VALUES) to create a virtual table of only the valid entities before doing the math.&lt;/P&gt;&lt;PRE&gt;Prod Efficiency = &lt;BR /&gt;-- 1. Build a virtual table of entities in the current filter context that ACTUALLY have input hours&lt;BR /&gt;VAR _ValidEntities =&lt;BR /&gt;FILTER (&lt;BR /&gt;VALUES ( 'YourEntityTable'[EntityName] ), &lt;BR /&gt;NOT ISBLANK ( [Input Hours] ) &amp;amp;&amp;amp; [Input Hours] &amp;gt; 0&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;-- 2. Calculate Output and Input strictly for those valid entities&lt;BR /&gt;VAR _ValidOutput = &lt;BR /&gt;CALCULATE ( [Output Hours], _ValidEntities )&lt;BR /&gt;&lt;BR /&gt;VAR _ValidInput = &lt;BR /&gt;CALCULATE ( [Input Hours], _ValidEntities )&lt;BR /&gt;&lt;BR /&gt;VAR _CurrentInput = [Input Hours]&lt;BR /&gt;&lt;BR /&gt;RETURN&lt;BR /&gt;-- 3. If the current row has no input, return 0. Otherwise, safely divide the valid numbers.&lt;BR /&gt;IF (&lt;BR /&gt;ISBLANK ( _CurrentInput ) || _CurrentInput == 0,&lt;BR /&gt;0,&lt;BR /&gt;DIVIDE ( _ValidOutput, _ValidInput, 0 )&lt;BR /&gt;)&lt;/PRE&gt;&lt;P&gt;If this solves your problem, mark this as solution and give me a kudos&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2026 14:04:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/5190522#M188157</guid>
      <dc:creator>mizan2390</dc:creator>
      <dc:date>2026-05-29T14:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/5193460#M188175</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1599353" data-lia-user-login="AditiGupta_" class="lia-mention lia-mention-user"&gt;AditiGupta_&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="847282" data-lia-user-login="mizan2390" class="lia-mention lia-mention-user"&gt;mizan2390&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1507786" data-lia-user-login="oussamahaimoud" class="lia-mention lia-mention-user"&gt;oussamahaimoud&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1345926" data-lia-user-login="Natarajan_M" class="lia-mention lia-mention-user"&gt;Natarajan_M&lt;/a&gt;&amp;nbsp;for your response to the query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does the issue occur only at the individual entity level, or is the problem mainly with the Grand Total/KPI when multiple entities are selected? If possible, please share a small sample of the Input Hours and Output Hours data along with the current DAX measure. This will help determine whether a simple blank check is sufficient or whether the calculation needs to exclude entities without Input Hours from the total aggregation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2026 04:52:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/5193460#M188175</guid>
      <dc:creator>v-sgandrathi</dc:creator>
      <dc:date>2026-06-05T04:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/5194218#M188178</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1599353" data-lia-user-login="AditiGupta_" class="lia-mention lia-mention-user"&gt;AditiGupta_&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just checking in to see if you had a chance to follow up on our earlier conversation. If you're still encountering the issue, please share the sample data so we can assist you with an accurate solution.&lt;/P&gt;
&lt;P&gt;If you have any further questions, feel free to reach out anytime.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2026 06:42:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/5194218#M188178</guid>
      <dc:creator>v-sgandrathi</dc:creator>
      <dc:date>2026-06-08T06:42:32Z</dc:date>
    </item>
  </channel>
</rss>

