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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Cell Conditions in Fabric Notebook

We really would like the MS Fabric team to include the possibility of adding cell conditions inside the notebooks so we can decide to run or skip a cell based on the value of a parameter.

Vote please!
Thanks!

Status: New
Comments
frithjof_v
Community Champion

Out of curiosity: can't you use an if statement in the top of the cell instead? That works for me.

ebit
New Member

@frithjof_vThat works when using PySpark, but the issue comes when the cell is written in SparkSQL. I know that SparkSQL can technically be executed inside a PySpark cell using `spark.sql()`, but it's not very convenient and it reduces readability, especially when the notebook contains many SQL cells.