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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
PaulTran
Regular Visitor

Difference Between SUM a column by aggregate function and SUM by a DAX measure

I have 4 Table, Sales, Product, Store & Ranking with the relationship as below:

- Product 1:* Sales

- Product 1:* Ranking

- Store 1:* Sales

- Store 1:* Store

When I use the aggregate function, the values is like this and it works perfectly
Product A | Store 1 | Sales 3000 | Rank A

Product A | Store 2 | Sales 4000 | Rank B

Product A | Store 3 | Sales 5000 | Rank C

 

However, when I use DAX to create a measure, it's simple like SUM(Sales), the result is duplicate like this

Product A | Store 1 | Sales 3000 | Rank A

Product A | Store 2 | Sales 3000 | Rank B

Product A | Store 3 | Sales 3000 | Rank C

Therefore, I think there is a difference in backend between SUM by Aggregate function and SUM by a DAX Measure.

I need to create a measure because there are many conditions to create, how can I make the result of DAX Measure the same with SU

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@PaulTran , Both Rank and Sales should be Measure. You can not have ungrouped data from rank

 

Sum(Sales[Sales])

 

Max(Rank(Rank])

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

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@PaulTran , Both Rank and Sales should be Measure. You can not have ungrouped data from rank

 

Sum(Sales[Sales])

 

Max(Rank(Rank])

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.