Forum Discussion
dommyw277
Helper V
3 years agoNested IF statements not working
Hi, Im trying to create a new column based on 3 queries? I basically want to say if it contains this then bring back that: So if it contains 123 its Test1, 456 its Test 2 else Test 3 NewColumn...
- 3 years ago
Try this:
NewColumnName = IF( CONTAINSSTRING('NewColumnName'[SERVICE_TYPE], "123"), "Test1", IF( CONTAINSSTRING('NewColumnName'[SERVICE_TYPE],"456"), "Test2", "Test3" ) )
JorgePinho
Solution Sage
3 years agoWhat is the type of the column SERVICE_TYPE? Is it Text or Numeric? If it is text you are treating it as a numeric.
- dommyw2773 years ago
Helper V
Hi, yes its Text - it contains text and numbers?
- JorgePinho3 years ago
Solution Sage
dommyw277 can you give an example of the values in that column?
- dommyw2773 years ago
Helper V
Thanks. Heres a brief example:
cd6b6eec- Azure
0b4c205 - AZURE 2