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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Koritala
Helper IV
Helper IV

Conditional Column Creation

Hi,

I just want to find the best approach to the creation of a conditional column.

 

What is the best place to create a conditional column? Is it best place to create uisng conditinal column option in Query Editor (or)

using DAX expresssion creating at the front end (using New Column)? Which one is the best approach with respect to performance when we are working with large datasets.

Thanks,

Sri

3 REPLIES 3
v-sdhruv
Community Support
Community Support

Hi @Koritala ,

Just wanted to check if you got a chance to review the  explaination provided and whether that helped you gain an understanding?

Thank You

Greg_Deckler
Community Champion
Community Champion

@Koritala This is going to depend potentially. I say that because if you break query folding for your query then the query could perform much worse. So it really depends on your specific query and whether or not the addition of your column in Power Query breaks query folding.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
wardy912
Solution Sage
Solution Sage

Hi @Koritala 

 

 With report performance in mind, the best place to add your calculated columns is at the data source before ingestion. In Fabric, this can be done in a notebook or dataflow gen 2.

 Within BI, power query is better for static calculations (eg column 1 + column 2). Power query also calculates once at load, reducing your model size. DAX is better for dynamic calculation that require relationships but increases the size of the model.

 

I hope this helps, please give a thumbs up and mark as solved if it does, thanks!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.