Forum Discussion
neeraj27
3 years agoFrequent Visitor
true/false
Terminal = IF(TB_FLIGHT_FACT_REPORT[AIRLINE_NAME]="Star Air" && "Air Asia", "T2","T1")
I am getting this error for above code: Cannot convert value 'Air Asia' of type Text to type True/False.
3 Replies
- AnonymousNot applicable
You need to do this,
Terminal = IF(TB_FLIGHT_FACT_REPORT[AIRLINE_NAME]="Star Air" && TB_FLIGHT_FACT_REPORT[AIRLINE_NAME]="Air Asia", "T2","T1")Right now, it's evaluating "Star Air" as Boolean Datatype, which is why you are getting the error.