Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Ostrzak
Helper II
Helper II

Branching on the main canvas of data pipeline

Hey everyone,

 

I might be missing an obvious connection, but is there a way to branch the pipeline on 3 conditions? "Switch" activity accepts multiple conditions, but doesn't accept boolean in an expression. "If" activity accepts boolean expression, but has only two conditions. Additionally they both require pipeline "nesting", where if the branching doesn't converge at some point, main canvas "ends" with the If activity and all the rest is hidden in the overview.

 

I get the idea that I can circumvent the switch, but I'm struck by the absence of a farily simple tool that redirects the flow on the main canvas and accepts several conditions of different types.

 

Apologies for complaining.

 

Best regards,

Jakub

1 ACCEPTED SOLUTION
Nico_Saar
Frequent Visitor

Depending on what you want to do after the branching you could use the "Filter" activity to handle this. Create multiple Filter activities that will be executed in parallel which lead to different activities being beformed depending on the input.

 

I used this once to decide depending on the metadata I was reading from a configuration table, which pipeline I want to trigger in the next step.

 

Nico_Saar_0-1728386375879.png

 

This approach was used in the Azure Data Factory btw. ... could use the Switch Activity in Fabric Data Factory nowadays. 

View solution in original post

2 REPLIES 2
Nico_Saar
Frequent Visitor

Depending on what you want to do after the branching you could use the "Filter" activity to handle this. Create multiple Filter activities that will be executed in parallel which lead to different activities being beformed depending on the input.

 

I used this once to decide depending on the metadata I was reading from a configuration table, which pipeline I want to trigger in the next step.

 

Nico_Saar_0-1728386375879.png

 

This approach was used in the Azure Data Factory btw. ... could use the Switch Activity in Fabric Data Factory nowadays. 

v-nuoc-msft
Community Support
Community Support

Hi @Ostrzak 

 

You can try using a combination of "Switch" and "If" activities to handle multiple branch conditions.

 

Add a "Switch" activity to the pipeline and set the expression. In the "Switch" activity, add three branches.

 

Perform different if activities according to different branches, if it is "true", the next step is performed, if it is "false", the end.

 

Switch activity - Microsoft Fabric | Microsoft Learn

 

If Condition activity - Microsoft Fabric | Microsoft Learn

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.