<?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: 2 Tables: Value of column to be blank if the other column value is blank. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/2-Tables-Value-of-column-to-be-blank-if-the-other-column-value/m-p/1739770#M36133</link>
    <description>&lt;P&gt;Much appreciated.&amp;nbsp; I tried your formulas, and both worked.&amp;nbsp; Your 2nd formula is what I needed , and received the below formula last week.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Mtg Column = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR Mtg = CALCULATE(VALUES('STEP Projects'[PM/AppTransitionMtg]), TOPN(1,FILTER('STEP Projects','STEP Projects'[Id]='STEP Resource Planning'[Project Online NameId])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF(ISBLANK(Mtg),BLANK(),[Start])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 23 Mar 2021 13:46:16 GMT</pubDate>
    <dc:creator>Sunnie</dc:creator>
    <dc:date>2021-03-23T13:46:16Z</dc:date>
    <item>
      <title>2 Tables: Value of column to be blank if the other column value is blank.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/2-Tables-Value-of-column-to-be-blank-if-the-other-column-value/m-p/1728114#M35770</link>
      <description>&lt;P&gt;Hello!&amp;nbsp; I've been spending multiple hours over the last several days trying to get this formula to work.&amp;nbsp; I have two date columns, from two different tables, the tables have a relationship.&lt;/P&gt;&lt;P&gt;I need to have dax look for a blank value from the 1st table column 'STEP Projects' [PM/AppTransitionMtg] to then replace the date value in the 2nd table column 'STEP Resource Planning' [Start] to blank .&amp;nbsp; If no blank is found from the 1st table, then 2nd table column 'STEP Resource Planning' [Start] remains with its original value.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are some formulas that I tried, nothing worked.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;StartISBlank&lt;/STRONG&gt; = SWITCH(LOOKUPVALUE('STEP Projects'[PM/AppTransitionMtg],[PM/AppTransitionMtg],"",'STEP Resource Planning'[Start],""))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;StartISBlank&lt;/STRONG&gt; = IF(isblank('STEP Resource Planning'[Start]),LOOKUPVALUE('STEP Projects'[PM/AppTransitionMtg],'STEP Projects'[PM/AppTransitionMtg],'STEP Resource Planning'[Start],'STEP Projects'[PM/AppTransitionMtg]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;StartISBlank&lt;/STRONG&gt; = MAXX(FILTER('STEP Projects','STEP Projects'[PM/AppTransitionMtg]='STEP Resource Planning'[Start]),'STEP Projects'[PM/AppTransitionMtg])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;StartISBlank&lt;/STRONG&gt; = LOOKUPVALUE('STEP Projects'[PM/AppTransitionMtg],'STEP Projects'[PM/AppTransitionMtg],'STEP Resource Planning'[Start])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Kept getting errors like; LOOKUPVALUE needs argument 2 or a 3... and "" , BLANK() , wasn't working either. the last formula didn't throw errors, but only returned blank.&amp;nbsp; Here is a pic of the visual with the two data columns : so the Start column with 4/5/2021 should be blank because the PM//..mtg column is blank, and so forth..&lt;img /&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Do both columns need to be formatted as a date? and how do I use blank value in a formula?.&amp;nbsp; Helping me would be greatly appreciated, if you could please write out the formula for me.&lt;/DIV&gt;</description>
      <pubDate>Wed, 17 Mar 2021 15:40:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/2-Tables-Value-of-column-to-be-blank-if-the-other-column-value/m-p/1728114#M35770</guid>
      <dc:creator>Sunnie</dc:creator>
      <dc:date>2021-03-17T15:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: 2 Tables: Value of column to be blank if the other column value is blank.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/2-Tables-Value-of-column-to-be-blank-if-the-other-column-value/m-p/1736152#M36042</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="238734" data-lia-user-login="Sunnie" class="lia-mention lia-mention-user"&gt;Sunnie&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From your explanation&amp;nbsp;I see 2 approaches here.&lt;BR /&gt;1) If you just want to have a column showing either blank value or value from 'STEP Resource Planning' [Start], then you can creare a calculated column , for example, in 'STEP Projects' table. The code can be like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;New Start = IF(ISBLANK('STEP Projects'[PM/AppTransitionMtg]), BLANK(), RELATED('STEP Resource Planning'[Start]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) If you want to change an existing [Start] column values of 'STEP Resource Planning' table then you need to use Power Query, not DAX. In this case you might need a custom lookup function as described here:&lt;BR /&gt;&lt;A title="Replicate doing an Excel VLOOKUP in M" href="https://eriksvensen.wordpress.com/2019/02/28/powerquery-replicate-doing-an-excel-vlookup-in-m/" target="_self"&gt;Replicate doing an Excel VLOOKUP in M&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;with final code as a step like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#"Replaced Value" = 
        Table.ReplaceValue(#"Previous step name", 
        each [Start],
        each if fxLookup([Id], #"STEP Projects", "Id", "PM/AppTransitionMtg") = null then null else [Start],
        Replacer.ReplaceValue,{"Start"})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;* [Id] here is a common column (used also to build relations).&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 09:09:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/2-Tables-Value-of-column-to-be-blank-if-the-other-column-value/m-p/1736152#M36042</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2021-03-22T09:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: 2 Tables: Value of column to be blank if the other column value is blank.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/2-Tables-Value-of-column-to-be-blank-if-the-other-column-value/m-p/1739770#M36133</link>
      <description>&lt;P&gt;Much appreciated.&amp;nbsp; I tried your formulas, and both worked.&amp;nbsp; Your 2nd formula is what I needed , and received the below formula last week.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Mtg Column = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR Mtg = CALCULATE(VALUES('STEP Projects'[PM/AppTransitionMtg]), TOPN(1,FILTER('STEP Projects','STEP Projects'[Id]='STEP Resource Planning'[Project Online NameId])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF(ISBLANK(Mtg),BLANK(),[Start])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Mar 2021 13:46:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/2-Tables-Value-of-column-to-be-blank-if-the-other-column-value/m-p/1739770#M36133</guid>
      <dc:creator>Sunnie</dc:creator>
      <dc:date>2021-03-23T13:46:16Z</dc:date>
    </item>
  </channel>
</rss>

