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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
EHA_SD
Advocate III
Advocate III

Does having lots of comments in a DAX measure slow down the calculation?

Does having lots of comments in a DAX measure slow the calculation of that measure down? For example, would having a comment line explaining each each step of the measure, or having lots of unused portions of code in the DAX measure, slow the measure down at all? A little bit? A lot? It depends?

Or does PBI just skip over all of the comments and focus on the actual DAX? Surely just reading all of the measure and deciding which parts to ignore and which parts use would have some sort of time/effort penalty?

Thank-you!

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

Comments should not affect the performance to any noticeable extent since they don't change the computation at all. Theoretically, it's possible there's a minuscule difference but I don't think you'd ever be able to measure it without some absurdly long DAX code.

View solution in original post

1 REPLY 1
AlexisOlson
Super User
Super User

Comments should not affect the performance to any noticeable extent since they don't change the computation at all. Theoretically, it's possible there's a minuscule difference but I don't think you'd ever be able to measure it without some absurdly long DAX code.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.