<?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: DAX - Filtering blank if same key with reference to another column is blank in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Filtering-blank-if-same-key-with-reference-to-another-column/m-p/2896351#M94182</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="283130" data-lia-user-login="djurecic" class="lia-mention lia-mention-user"&gt;djurecic&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No, the opposite. if Payment date is blank and same/recurring [Key] exists with another Payment date then dont show anything in the [Payment date (Final)]. but do show the max date if there are no blank payment date for&amp;nbsp;same/recurring [Key].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Nov 2022 22:48:14 GMT</pubDate>
    <dc:creator>appsac1</dc:creator>
    <dc:date>2022-11-09T22:48:14Z</dc:date>
    <item>
      <title>DAX - Filtering blank if same key with reference to another column is blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Filtering-blank-if-same-key-with-reference-to-another-column/m-p/2896058#M94156</link>
      <description>&lt;P&gt;Hi DAX team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having filtering concept that's scratching.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to show null or blank if the same [key] is used with reference to the [Payment Date] that is blank, currently it's showing the date '02/02/2022' but if payment date is part of the same key then dont show the date in the [payment date (final)] column. but the requirement also requires showing the max date if same key in [payment date (final)] column does not contain any blanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use the below dax query which does find the max date but i cant filter out if its blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Payment date (Final) = &lt;/SPAN&gt;&lt;SPAN&gt;calculate&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;max&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Test&lt;/SPAN&gt;&lt;SPAN&gt;[Payment Date]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;allexcept&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Test&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Test&lt;/SPAN&gt;&lt;SPAN&gt;[Key]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;Test&lt;/SPAN&gt;&lt;SPAN&gt;[Payment Date]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;()))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&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;Any help is much appreciated. thanks!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 18:47:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Filtering-blank-if-same-key-with-reference-to-another-column/m-p/2896058#M94156</guid>
      <dc:creator>deng2431</dc:creator>
      <dc:date>2022-11-09T18:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Filtering blank if same key with reference to another column is blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Filtering-blank-if-same-key-with-reference-to-another-column/m-p/2896334#M94180</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="467854" data-lia-user-login="deng2431" class="lia-mention lia-mention-user"&gt;deng2431&lt;/a&gt;&amp;nbsp;So, if Payment date is blank, you want Payment date (Final) to be the Max Payment date with the same Key. Is that right?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 22:28:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Filtering-blank-if-same-key-with-reference-to-another-column/m-p/2896334#M94180</guid>
      <dc:creator>djurecic</dc:creator>
      <dc:date>2022-11-09T22:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Filtering blank if same key with reference to another column is blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Filtering-blank-if-same-key-with-reference-to-another-column/m-p/2896351#M94182</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="283130" data-lia-user-login="djurecic" class="lia-mention lia-mention-user"&gt;djurecic&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No, the opposite. if Payment date is blank and same/recurring [Key] exists with another Payment date then dont show anything in the [Payment date (Final)]. but do show the max date if there are no blank payment date for&amp;nbsp;same/recurring [Key].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 22:48:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Filtering-blank-if-same-key-with-reference-to-another-column/m-p/2896351#M94182</guid>
      <dc:creator>appsac1</dc:creator>
      <dc:date>2022-11-09T22:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Filtering blank if same key with reference to another column is blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Filtering-blank-if-same-key-with-reference-to-another-column/m-p/2896357#M94184</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="365539" data-lia-user-login="appsac1" class="lia-mention lia-mention-user"&gt;appsac1&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I'm not sure that I totally understand the requirements.&lt;/P&gt;&lt;P&gt;Is this what you are looking for? (calculated column)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 22:54:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Filtering-blank-if-same-key-with-reference-to-another-column/m-p/2896357#M94184</guid>
      <dc:creator>djurecic</dc:creator>
      <dc:date>2022-11-09T22:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Filtering blank if same key with reference to another column is blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Filtering-blank-if-same-key-with-reference-to-another-column/m-p/2896813#M94215</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="467854" data-lia-user-login="deng2431" class="lia-mention lia-mention-user"&gt;deng2431&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Payment date(Final) = 
VAR _a =
    CALCULATE (
        MAX ( 'Table'[Payment Date] ),
        FILTER ( 'Table', [Key] = EARLIER ( 'Table'[Key] ) )
    )
VAR _b =
    SELECTCOLUMNS (
        FILTER ( 'Table', [Key] = EARLIER ( 'Table'[Key] ) ),
        "Payment Date", [Payment Date]
    )
RETURN
    IF ( BLANK () IN _b, BLANK (), _a )&lt;/LI-CODE&gt;
&lt;P&gt;Final output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jianbo Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, 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>Thu, 10 Nov 2022 07:05:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Filtering-blank-if-same-key-with-reference-to-another-column/m-p/2896813#M94215</guid>
      <dc:creator>v-jianboli-msft</dc:creator>
      <dc:date>2022-11-10T07:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Filtering blank if same key with reference to another column is blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Filtering-blank-if-same-key-with-reference-to-another-column/m-p/2898662#M94328</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="403972" data-lia-user-login="v-jianboli-msft" class="lia-mention lia-mention-user"&gt;v-jianboli-msft&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!!! your solution works amazing!!!!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 23:11:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Filtering-blank-if-same-key-with-reference-to-another-column/m-p/2898662#M94328</guid>
      <dc:creator>deng2431</dc:creator>
      <dc:date>2022-11-10T23:11:58Z</dc:date>
    </item>
  </channel>
</rss>

