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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.