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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
DanielBaker
Frequent Visitor

Dax measures or Power query Group By

Following the maxim of transforming data as far upstream as possible,I do most work for Power BI in SQL server and Power Query, and as little as possible by creating DAX meaures. I don't really have any problems with performance, but I do have problems with my data model being complicated. Basically I'm creating separate tables in Power query that aggregate the data in different ways, rather than using DAX to return results - but this means I'm making a lot of tables, and I want to reduce these.

Do you have any advice? Am I maybe overly cautious about using DAX?

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@DanielBaker I think you may be misinterpreting that maxim a bit. Aggregations are not transformations. Think of transformations as table joins, creating additional columns, etc. Having measures that do a SUM or an AVERAGE is not transformation, it's the intended purpose of visuals and simple DAX measures. If you want to SUM some Value column and have it grouped by Product for example, just put your Product in a visual and add a measure that does a SUM of the Value column. There is no need and I would say it is not best practice to create an aggregation table for the sole purpose of doing something like that. The exception (there always is one) is if you have a dataset with billions of rows and need an aggregation table to speed things up which is particularly useful in DirectQuery scenarios so that you are not hitting the source data system and thus subject to the latency of retrieving the data from a query to the source system.



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

View solution in original post

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

@DanielBaker I think you may be misinterpreting that maxim a bit. Aggregations are not transformations. Think of transformations as table joins, creating additional columns, etc. Having measures that do a SUM or an AVERAGE is not transformation, it's the intended purpose of visuals and simple DAX measures. If you want to SUM some Value column and have it grouped by Product for example, just put your Product in a visual and add a measure that does a SUM of the Value column. There is no need and I would say it is not best practice to create an aggregation table for the sole purpose of doing something like that. The exception (there always is one) is if you have a dataset with billions of rows and need an aggregation table to speed things up which is particularly useful in DirectQuery scenarios so that you are not hitting the source data system and thus subject to the latency of retrieving the data from a query to the source system.



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

That is helpful - thanks

HotChilli
Community Champion
Community Champion

Is this some sort of phobia? I know some people have CalculatedColumn phobia but I've never heard of Measurephobia.  Daxophobia - would that be an irrational fear or a rational fear?  I think @Greg_Deckler has a phobia of Calculate.  I think i fear Quick Measures a bit.

Imagine waking up on Christmas Day and getting the Dax book from Alberto and Marco in your stocking....

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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