Forum Discussion

HenryJS's avatar
HenryJS
Icon for Post Prodigy rankPost Prodigy
6 years ago
Solved

Add Column IF DATE AND TEXT

Hi all,   I have two tables: Export Candidates Export Actions   The two are joined by 'CandidateRef'   I want to create a column on Export Candidates that states YES IF: The CandidateRef ...
  • amitchandak's avatar
    6 years ago

    HenryJS 


    new column in Export Candidates
    new column = if(isblank(maxx(filter('Export Actions','Export Actions' [CandidateRef] ='Export Candidates'[CandidateRef]
    && 'Export Actions'[ActionName] = "Call - Update" && 'Export Actions'[ActionDate]>= date(2020,03,01)),
    'Export Actions' [CandidateRef])),"No","Yes")

  • amitchandak's avatar
    amitchandak
    6 years ago

    I suggested a column. But in case you are looking as measure. Try one of the following

    maxx(filter('Export Actions','Export Actions' [CandidateRef] =related('Export Candidates'[CandidateRef])
    							&& 'Export Actions'[ActionName] = "Call - Update" && 'Export Actions'[ActionDate]>= date(2020,03,01)),
    							'Export Actions' [ActionDate])
    
    maxx(filter('Export Actions','Export Actions' [CandidateRef] =max('Export Candidates'[CandidateRef])
    							&& 'Export Actions'[ActionName] = "Call - Update" && 'Export Actions'[ActionDate]>= date(2020,03,01)),
    							'Export Actions' [ActionDate])		
    
    maxx(filter('Export Actions','Export Actions'[ActionName] = "Call - Update" && 'Export Actions'[ActionDate]>= date(2020,03,01)),
    							'Export Actions' [ActionDate])