<?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 Why i am getting blank with explicit filter and getting result with implicit filter in calculate fun in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-i-am-getting-blank-with-explicit-filter-and-getting-result/m-p/3914231#M152383</link>
    <description>&lt;P&gt;Hi Everyone,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;When I use implicit, with userelationship function, I can achieve results, but when I use the explicit filter, I get blank result&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Note: I have an inactive relationship b/w DOJ and Date. and DOJ contains some blanks&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;any reason&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Implicit filter:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Joining Offerred:=&lt;BR /&gt;CALCULATE(&lt;BR /&gt;[Count_M],&lt;BR /&gt;Main[Joining Status] ="Current Month",&lt;BR /&gt;USERELATIONSHIP('Calendar'[Date], Main[DOJ])&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Explicit filter&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Joining Offerred =&lt;/P&gt;&lt;P&gt;CALCULATE(&lt;BR /&gt;[Count_M],&lt;BR /&gt;FILTER(&lt;BR /&gt;Main,&lt;BR /&gt;Main[Joining Status] = "Current Month"&lt;BR /&gt;),&lt;BR /&gt;USERELATIONSHIP('Calendar'[Date], Main[DOJ])&lt;BR /&gt;)&lt;/P&gt;</description>
    <pubDate>Mon, 13 May 2024 13:47:40 GMT</pubDate>
    <dc:creator>Madhu155154</dc:creator>
    <dc:date>2024-05-13T13:47:40Z</dc:date>
    <item>
      <title>Why i am getting blank with explicit filter and getting result with implicit filter in calculate fun</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-i-am-getting-blank-with-explicit-filter-and-getting-result/m-p/3914231#M152383</link>
      <description>&lt;P&gt;Hi Everyone,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;When I use implicit, with userelationship function, I can achieve results, but when I use the explicit filter, I get blank result&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Note: I have an inactive relationship b/w DOJ and Date. and DOJ contains some blanks&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;any reason&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Implicit filter:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Joining Offerred:=&lt;BR /&gt;CALCULATE(&lt;BR /&gt;[Count_M],&lt;BR /&gt;Main[Joining Status] ="Current Month",&lt;BR /&gt;USERELATIONSHIP('Calendar'[Date], Main[DOJ])&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Explicit filter&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Joining Offerred =&lt;/P&gt;&lt;P&gt;CALCULATE(&lt;BR /&gt;[Count_M],&lt;BR /&gt;FILTER(&lt;BR /&gt;Main,&lt;BR /&gt;Main[Joining Status] = "Current Month"&lt;BR /&gt;),&lt;BR /&gt;USERELATIONSHIP('Calendar'[Date], Main[DOJ])&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 13:47:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-i-am-getting-blank-with-explicit-filter-and-getting-result/m-p/3914231#M152383</guid>
      <dc:creator>Madhu155154</dc:creator>
      <dc:date>2024-05-13T13:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why i am getting blank with explicit filter and getting result with implicit filter in calculate fun</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-i-am-getting-blank-with-explicit-filter-and-getting-result/m-p/3914602#M152399</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="602415" data-lia-user-login="Madhu155154" class="lia-mention lia-mention-user"&gt;Madhu155154&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The prerequisite for obtaining results for the Explicit filter measure is that the values of the fields used for active and inactive relationships in the Main table are equal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the filter parameter for the Explicit filter measure uses the entire Main table, the impact of extension-table needs to be considered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition, the internal filter parameters are independent of each other and do not affect each other during calculations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the extension-table of the Main table is extended based on the active relationship, and then the USERELATIONSHIP function changes the relationship so that the meaning of the filters for those filters belonging to one end of the extension table changes, but the values of the filters do not change.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore, only when the values of the fields used for active and inactive relationships in the Main table are equal&amp;nbsp;&lt;SPAN&gt;can obtain the non blank result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The following is a schematic diagram of the calculation process.&lt;/SPAN&gt;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you~&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 16:33:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-i-am-getting-blank-with-explicit-filter-and-getting-result/m-p/3914602#M152399</guid>
      <dc:creator>xifeng_L</dc:creator>
      <dc:date>2024-05-13T16:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why i am getting blank with explicit filter and getting result with implicit filter in calculate fun</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-i-am-getting-blank-with-explicit-filter-and-getting-result/m-p/3938013#M153146</link>
      <description>&lt;P&gt;But, when I used "keepfilter" instead of "filter" function, I was able to achieve the result&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 05:40:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-i-am-getting-blank-with-explicit-filter-and-getting-result/m-p/3938013#M153146</guid>
      <dc:creator>Madhu155154</dc:creator>
      <dc:date>2024-05-22T05:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why i am getting blank with explicit filter and getting result with implicit filter in calculate fun</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-i-am-getting-blank-with-explicit-filter-and-getting-result/m-p/3938858#M153160</link>
      <description>&lt;P&gt;You mean like below?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Joining Offerred:=&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CALCULATE(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[Count_M],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;KEEPFILTERS(Main[Joining Status] ="Current Month"),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;USERELATIONSHIP('Calendar'[Date], Main[DOJ])&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a filter for the status column only, which is equivalent to the&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Joining Offerred:=&lt;BR /&gt;CALCULATE(&lt;BR /&gt;[Count_M],&lt;BR /&gt;KEEPFILTERS(FILTER(ALL(Main[Joining Status]),Main[Joining Status] ="Current Month")),&lt;BR /&gt;USERELATIONSHIP('Calendar'[Date], Main[DOJ])&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it's not a table filter. And if the first parameter of FILTER is a table, it need to consider the impact of extending table, which is what I replied to earlier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you~&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 09:03:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-i-am-getting-blank-with-explicit-filter-and-getting-result/m-p/3938858#M153160</guid>
      <dc:creator>xifeng_L</dc:creator>
      <dc:date>2024-05-22T09:03:58Z</dc:date>
    </item>
  </channel>
</rss>

