<?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: Strange DAX evaluation context in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Strange-DAX-evaluation-context/m-p/4398412#M174635</link>
    <description>&lt;P&gt;When you change the condition to &amp;gt;= the extra row which appears shows blank for both [RD] and [BD]. As blank = blank [Type calculated] returns the value, rather than returning blank as it did when you had the condition as &amp;gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2025 14:55:27 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2025-02-06T14:55:27Z</dc:date>
    <item>
      <title>Strange DAX evaluation context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Strange-DAX-evaluation-context/m-p/4398318#M174630</link>
      <description>&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to figure it out for a while but with no success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an easy table where one IA has many types and I want to calculate only one type based on numbers. In this example, this IA has 134 RD (Rodinný dům (home house)) and 0 BD (apartment building). I compare both number and in this case it works fine. The result is&amp;nbsp;Rodinný dům (home house)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This is the measure:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;However, when I changed the measure to more and &lt;STRONG&gt;equeal&lt;/STRONG&gt;, it will stop working properly (cross join is applied and context is lost)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The same, when I replace blank with a value.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;How is it possible that with a little change I can lose the full context and cross join is applied? IA is from DIM_IA and Type (objekt type) from DIM_ROP.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below I am attaching all measures. Here I am adding +0, otherwise the row in the table disappared because the row has no value. Other IA can have both numbers but mostly one of them doesn't exist.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 14:18:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Strange-DAX-evaluation-context/m-p/4398318#M174630</guid>
      <dc:creator>jankonas</dc:creator>
      <dc:date>2025-02-06T14:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Strange DAX evaluation context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Strange-DAX-evaluation-context/m-p/4398412#M174635</link>
      <description>&lt;P&gt;When you change the condition to &amp;gt;= the extra row which appears shows blank for both [RD] and [BD]. As blank = blank [Type calculated] returns the value, rather than returning blank as it did when you had the condition as &amp;gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 14:55:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Strange-DAX-evaluation-context/m-p/4398412#M174635</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2025-02-06T14:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Strange DAX evaluation context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Strange-DAX-evaluation-context/m-p/4398495#M174641</link>
      <description>&lt;P&gt;Thank you &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;, it makes sense. Do you think there is a dax expression which would work in this case? I found out that I can use a visual calculation and hide both the columns BD and RD by slicing them. I believie this is not so clean solution as this is only a small pattern that I am showing. I just wonder, if dax can handle this by not comparing blank values?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 15:37:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Strange-DAX-evaluation-context/m-p/4398495#M174641</guid>
      <dc:creator>jankonas</dc:creator>
      <dc:date>2025-02-06T15:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Strange DAX evaluation context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Strange-DAX-evaluation-context/m-p/4398514#M174642</link>
      <description>&lt;P&gt;I think you can combine the &amp;gt;= with a check for NOT ISBLANK()&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Type calculated =
IF ( NOT ISBLANK ( [RD] ) &amp;amp;&amp;amp; [RD] &amp;gt;= [BD], "Rodinny dum" )
&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 06 Feb 2025 15:49:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Strange-DAX-evaluation-context/m-p/4398514#M174642</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2025-02-06T15:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Strange DAX evaluation context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Strange-DAX-evaluation-context/m-p/4398542#M174648</link>
      <description>&lt;P&gt;Works perfect. DAX evaluation with a blank value can be tricky. Thank you for the explenation and following solution.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 16:13:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Strange-DAX-evaluation-context/m-p/4398542#M174648</guid>
      <dc:creator>jankonas</dc:creator>
      <dc:date>2025-02-06T16:13:09Z</dc:date>
    </item>
  </channel>
</rss>

