Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance 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 |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
12 | |
10 | |
6 |