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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
oshello
Frequent Visitor

performance of calculated columns in one table

Is it ok to have many calculated columns all in one table? For context, the data source itself is from Excel and already has ~50 columns, and I have to add perhaps a dozen or two more. I did not opt to use measures because it messes up matrix subtotals which I will need for all these new variables, and also a few of them would be useful for filtering/slicing. Does anyone know if this will heavily affect performance or other issues? Appreciate any help.

2 REPLIES 2
Anonymous
Not applicable

Hi @oshello ,

Has your problem been solved? If the problem has been solved you can mark the reply for the standard answer to help the other members find it more quickly. If not, please point it out. Thanks in advance.

 

Best Regards,

Neeko Tang

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

Anonymous
Not applicable

Hi @oshello ,

 

The answer depends on several factors, such as the size of your data, the complexity of your calculations, and the mode of your data source (import or direct query).

In general, calculated columns are not recommended for large datasets or complex expressions, because they are pre-calculated and stored in memory when you refresh the model. This can increase the size of your model and affect the performance of queries and refreshes. Also, calculated columns cannot be used in slicers or filters.

A better alternative is to use measures, which are dynamic and only calculated when needed. Measures can also be used in slicers and filters. However, measures require a good understanding of DAX and how it works with the filter context.

If you need to create columns based on other columns in the same table, you can also use Power Query to create custom columns before importing the data into the model. Power Query can perform transformations faster and more efficiently than DAX, and it can also push some calculations to the data source if possible. However, Power Query custom columns require a full refresh of the table whenever you change them.

So, to summarize, here are some guidelines to help you choose between calculated columns, measures, and custom columns:

- Use calculated columns when you need to create a column that depends on values from other tables or that is used as a key in a relationship.
- Use measures when you need to create a calculation that depends on the filter context or that is used in visuals, slicers, or filters.
- Use custom columns when you need to create a column that depends on other columns in the same table or that can be pushed to the data source.

 

Best Regards,

Neeko Tang

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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors