Forum Discussion
Anonymous
4 years agoNot applicable
Do value search between two tables
Hello, I have two tables and in one of them I would like to create a column "IS" column which returns the value of "ServiceB" if "nameA" exists in "nameB" otherwise it returns the value "T". Can yo...
- 4 years ago
Anonymous as calculated column
calculatedColumnWithTREATAS = VAR _a = CALCULATE ( CALCULATE ( MAXX ( t2, 't2'[ServiceB] ), TREATAS ( VALUES ( t1[NomA] ), t2[NomB] ) ) ) RETURN IF ( ISBLANK ( _a ), "T", _a )as measure
measureWithTREATAS = VAR _a = CALCULATE ( MAXX ( t2, 't2'[ServiceB] ), TREATAS ( VALUES ( t1[NomA] ), t2[NomB] ) ) RETURN IF ( ISBLANK ( _a ), "T", _a )
jppv20
Solution Sage
4 years agoHi Anonymous ,
Try this:
IS 2 = IF(LOOKUPVALUE('Table B'[ServiceB],'Table B'[NomB],'Table A'[NomA])<>BLANK(),LOOKUPVALUE('Table B'[ServiceB],'Table B'[NomB],'Table A'[NomA]),"T")
If I answered your question, please mark it as a solution to help other members find it more quickly.
Anonymous
4 years agoNot applicable
Why are you using the blank() function?