The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
hi @neeraj27
you may also try like:
Terminal = IF(TB_FLIGHT_FACT_REPORT[AIRLINE_NAME] IN {"Star Air", "Air Asia"}, "T2","T1")
Hi @neeraj27
Terminal =
IF (
TB_FLIGHT_FACT_REPORT[AIRLINE_NAME] = "Star Air"
|| TB_FLIGHT_FACT_REPORT[AIRLINE_NAME] = "Air Asia",
"T2",
"T1"
)
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.
User | Count |
---|---|
11 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
22 | |
14 | |
14 | |
9 | |
7 |