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! Request now

Reply
Burningsuit
Resident Rockstar
Resident Rockstar

Calculated Columns in DAX, why?

Can anyone give a good reason (other than backwards compatability) for using calculated columns in DAX?

As I see it, I can create columns in Query (Which get compressed into the data model) for everything I need, rather than creating calculated columns in DAX (which may not get compressed, hence inflating the data model). For everything else there's Measures. So I'm struggling to find a use case for DAX Column Calculations, or have I missed something?

 

regards

 

Stuart

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

There are a number of reasons but probably primarily ease of use. There are certain things that are just easier to do in DAX rather than in "M" code. A good example of this is dealing with dates and times. For certain things it is 1 line of DAX versus multiple complex lines of M code. In addition, DAX is very Excel formula like. M is a complex, functional programming language and the Query Editor does not provide easy access to perhaps 50-60% or more of what M is capable of. And not everyone is a developer out there.

 

Also remember that DAX is part of SQL Server Analysis Services Tabular. So it's application goes beyond Power BI. Power BI just happens to use SSAS Tabular under the hood so DAX kind of comes along for the ride. 



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...

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors