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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Ice1341
Helper I
Helper I

DAX Forumula to sum quantities by Order No.

Hello,
Need DAX formula to group order no. column by order no. and sum by quantity column.

 

 

Order No_QuantityOrderDate
SO8550801/2/2023
SO8550801/2/2023
SO35503012/2/2022
SO699661502/3/2023
SO44112602/5/2023
SO33212502/12/2023
SO335451003/1/2023
   

 

Should sum quantity like this:

Order No_QuantityOrderDate
SO85501601/2/2023
SO35503012/2/2022
SO699661502/3/2023
SO44112602/5/2023
SO33212502/12/2023
SO335451003/1/2023
1 REPLY 1
Ashish_Mathur
Super User
Super User

Hi,

Drag Order No to the Table visual and write these measures

Total = sum(Data[Quantity])

Order dt = min(Data[OrderDate])

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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