Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
 
					
				
		
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]
)
 
					
				
				
			
		
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
 
            | User | Count | 
|---|---|
| 80 | |
| 49 | |
| 35 | |
| 31 | |
| 30 |