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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Awollet33
Helper I
Helper I

Question - Optimization - is there benefits to doing data cleaning in the Power Editor vs Dax?

 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Awollet33 

 

Of course. If there weren't, why would Microsoft bother creating and investing into two different technologies? DAX is a Data Analysis eXpression language and its goal is to facilitate data analysis. Power Query has a functional language, called M, which is a data mashup language. There are many, many benefits to data preparation in PQ but some of them are: 1) one can easily use recursion in M (not possible in DAX), 2) standard operations like pivoting, data imputation, string manipulation, statistical functions, using ML algorithms are one-click (or almost one-click) operations in PQ, 3) columns calculated in PQ are much, much, much better compressed than columns calculated in DAX (which are not compressed at all). There are many more benefits but the above come to my head right away.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Awollet33 

 

Of course. If there weren't, why would Microsoft bother creating and investing into two different technologies? DAX is a Data Analysis eXpression language and its goal is to facilitate data analysis. Power Query has a functional language, called M, which is a data mashup language. There are many, many benefits to data preparation in PQ but some of them are: 1) one can easily use recursion in M (not possible in DAX), 2) standard operations like pivoting, data imputation, string manipulation, statistical functions, using ML algorithms are one-click (or almost one-click) operations in PQ, 3) columns calculated in PQ are much, much, much better compressed than columns calculated in DAX (which are not compressed at all). There are many more benefits but the above come to my head right away.

amitchandak
Super User
Super User

@Awollet33 ,The information you have provided is not making the problem clear to me. Can you please explain with an example.

Also check:

https://www.thebiccountant.com/2020/01/01/tidy-up-power-bi-models-with-the-power-bi-cleaner-tool/

https://radacad.com/power-bi-cleanup-tool-time-saving-with-power-bi-helper

https://sqldusty.com/2015/08/10/cleaning-your-powerbi-power-query-code/
Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.