Forum Discussion

Anders_G's avatar
Anders_G
Helper I
4 years ago
Solved

Power Query - Create new column based on latest date in two other columns

Hi,   I want to create a new column in Power Query with the latest date found in the below mentioned two columns. The column on the right might have Null values. If so, the date in the left column ...
  • onurbmiguel_'s avatar
    onurbmiguel_
    4 years ago

    Hi again , 

    try to add a condition in the begin to check if the signature date is null 

    someting like that: 

     

    if
    [Opportunity History.First Signature Date] = null
    then [Start_date__c]
    else
    if
    [Start_date__c] >= [Opportunity History.First Signature Date]
    then [Start_date__c]
    else
    if
    [Opportunity History.First Signature Date] = "null"
    then [Start_date__c]
    else
    [Opportunity History.First Signature Date]

     

    Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! ;-
    Best Regards
    BC