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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
nmasimore
Helper I
Helper I

Creating a Column - Model Efficiency/Storage/Best Practice - DAX vs. PowerQuery?

Hello

 

I have a transaction table and a calendar table. The transaction table has a Datetime column, not a date column.... so I am creating a column in the transaction table called "Date" and it will contain strictly the date (no time).

 

In terms of model efficiency/data storage/best practice, should I create this column using PowerQuery or DAX?

 

Open-ended question: When is it better to create columns using Power Query? When is it better to create columns using DAX?

1 ACCEPTED SOLUTION
Syk
Resident Rockstar
Resident Rockstar

It's almost always better to create it in Power Query. You can read more about it here: https://www.sqlbi.com/articles/comparing-dax-calculated-columns-with-power-query-computed-columns/

View solution in original post

4 REPLIES 4
AllisonKennedy
Community Champion
Community Champion

@nmasimore , I agree with @Syk . If you can create it in Power Query (or even better at the data warehouse) then do so. I find that DAX is handy for creating calculated columns that require referencing multiple tables, but that shouldn't be a common requirement. 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Thank you @AllisonKennedy !

Syk
Resident Rockstar
Resident Rockstar

It's almost always better to create it in Power Query. You can read more about it here: https://www.sqlbi.com/articles/comparing-dax-calculated-columns-with-power-query-computed-columns/

Thank you @Syk !

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

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.