Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
kevbrown
Creator II
Creator II

Applymap Nulls

Hi,

I have a table that has some nulls in it that I'd like to map another table to, to fill in the nulls.

So I have a mapping table called OfficeName with the fields Office Key and Office Name.

The field I want to map this to is called Office Name, but only where the nulls are.

APPLYMAP (‘OfficeName’,if(IsNull([Office Name]), [OfficeName]) AS [Office Name],

Is that anywhere close to where I need to be?

 

Thanks

1 Solution

Accepted Solutions
sunny_talwar

This should also work:

ApplyMap('OfficeName', If(IsNull([Office Name]), [Office Key]), [Office Name]) AS [Office Name],

View solution in original post

3 Replies
khalander
Creator II
Creator II

Hi,

Please try below conditon

if(IsNull([Office Name]),ApplyMap(‘Office_Name’, office_key),[Office Name]) as [Office Name]

sunny_talwar

This should also work:

ApplyMap('OfficeName', If(IsNull([Office Name]), [Office Key]), [Office Name]) AS [Office Name],

kevbrown
Creator II
Creator II
Author

Superb, thank you. Knew I wasn't far off