Forum Discussion
sivashankr
Helper II
6 years agoplease help on NULL Calculation
Hi Team, I have 2 tables 'Table A' and 'Table B'. I joined these 2 tables using M to 1 cardinality. Now the requirement is I've calculation "Valid Customer ?: if Table B.Customer is null then N e...
- 6 years ago
There is no blank customer in table B and you are checking if there is any blank in table B
I think Table A has a bigger customer group than table B. So you need to create that column in table A
please try this
validcustomer = VAR CUS=LOOKUPVALUE('Table B'[CUSTOMER],'Table B'[CUSTOMER],'Table A'[Customer]) return if(ISBLANK(CUS),"No","Yes")
BA_Pete
Super User
6 years agoHi sivashankr ,
My first guess is that your data is not actually null, but blank.
If you look at the table in Power Query, do these cells specifically say "null", or are the cells just blank?
Pete
- sivashankr6 years ago
Helper II
Hello BA_Pete ,
The original table does not have nulls, I see the nulls after joing the 2 tables.
Thanks,
Siv
- BA_Pete6 years ago
Super User
Hi sivashankr ,
How about switching your IF statement around, something like:
IF Customer <> null then "Y" else "N"
Pete
- sivashankr6 years ago
Helper II
Still no luck Pete