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")
sivashankr
Helper II
6 years agoHello BA_Pete ,
The original table does not have nulls, I see the nulls after joing the 2 tables.
Thanks,
Siv
BA_Pete
Super User
6 years agoHi 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