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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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.

Top Solution Authors
Top Kudoed Authors