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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

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.

hvdv99
Frequent Visitor
In my opinion, this would add complexity and does not improve the readability of a notebook