Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi All,
I am tring to execute a multiple if statement in one calc column but it didnt work,
So I am tring to implement a switch statement but niether wont work.
Solved! Go to Solution.
Hi @Anonymous
you gave completely the same sentence written twice.
use only this
SupplierHecPollNL = IF(Tankingen[Land]="Netherlands" && Tankingen[Leverancier]="HecPoll" ;"Papendrecht_HecPoll";Tankingen[Leverancier])
or use SWITCH()
SupplierHecPollNL =
SWITCH(TRUE();
Tankingen[Land]="Netherlands" && Tankingen[Leverancier]="HecPoll" ; "Papendrecht_HecPoll";
Tankingen[Land]="Other" && Tankingen[Leverancier]="Other" ; "Otehr Value";
Tankingen[Leverancier]
)
@Anonymous , you first if
IF(Tankingen[Land]="Netherlands" && Tankingen[Leverancier]="HecPoll" ;"Papendrecht_HecPoll";Tankingen[Leverancier])
HAs ended here. after that is just repeat.
If you need to loop if
IF(Tankingen[Land]="Netherlands" && Tankingen[Leverancier]="HecPoll" ;<If here>;<If here>)
Or use Switch True
Switch(True(),
<condition>, <action>,
<condition>, <action>,
<condition>, <action>,
<else action>
)
@Anonymous
Try this
SupplierHecPollNL =
IF (
Tankingen[Land] = "Netherlands"
&& Tankingen[Leverancier] = "HecPoll";
"Papendrecht_HecPoll";
IF (
Tankingen[Land] = "Netherlands"
&& Tankingen[Leverancier] = "Replace with another value";
"Papendrecht_Replace with another value";
Tankingen[Leverancier]
)
)
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 🙂
Hi @Anonymous
you gave completely the same sentence written twice.
use only this
SupplierHecPollNL = IF(Tankingen[Land]="Netherlands" && Tankingen[Leverancier]="HecPoll" ;"Papendrecht_HecPoll";Tankingen[Leverancier])
or use SWITCH()
SupplierHecPollNL =
SWITCH(TRUE();
Tankingen[Land]="Netherlands" && Tankingen[Leverancier]="HecPoll" ; "Papendrecht_HecPoll";
Tankingen[Land]="Other" && Tankingen[Leverancier]="Other" ; "Otehr Value";
Tankingen[Leverancier]
)
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.