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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Koritala
Post Patron
Post Patron

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

1 ACCEPTED SOLUTION
wardy912
Super User
Super User

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!

View solution in original post

5 REPLIES 5
v-sdhruv
Community Support
Community Support

Hi @Koritala ,

Since we didnt hear back, we would be closing this thread.
If you need any assistance, feel free to reach out by creating a new post.

Thank you for using Microsoft Community Forum

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

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
Super User
Super User

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.