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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
insandur
Frequent Visitor

SUMX Dax

Hi, I have a file with below columns all i want to get is the received value only once eg. there are multiple received dates for same shipment i just want to consider it once where i have othere columns like ship no, putaway date and Type which needs to be considered

 

Required SHipe Qty should be 1500 when i select the Shipment "ABC"

 

Received DateShipmentShip QtyTypePutaway Date
1/29/2023ABC1500FULL2/1/2023
1/30/2023ABC1500HALF2/1/2023
1/31/2023ABC1500FULL2/1/2023
2/1/2023ABC1500HALF

2/1/2023

 

2 ACCEPTED SOLUTIONS
collinq
Super User
Super User

Hey @insandur ,

 

On that column in Power BI you could select the aggregation of Maximun or Minimum and I think that will resolve the issue for you.

collinq_0-1675198481390.png

 




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




View solution in original post

v-yueyunzh-msft
Community Support
Community Support

Hi , @insandur 

According to your description, you want to get the value once if the [Shipment] is the same.
Here are the steps you can refer to :
(1)This is my test data:

vyueyunzhmsft_0-1675217995186.png

(2)We can click "New measure" and enter this:

Ship Qty Measure = SUMX(ADDCOLUMNS( VALUES('Table'[Shipment]) ,"qty" , CALCULATE(MAX('Table'[Ship Qty]))) , [qty])

(3)Then we can meet your need , the result is as follows:

vyueyunzhmsft_1-1675218026627.png

 

 

If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

View solution in original post

3 REPLIES 3
v-yueyunzh-msft
Community Support
Community Support

Hi , @insandur 

According to your description, you want to get the value once if the [Shipment] is the same.
Here are the steps you can refer to :
(1)This is my test data:

vyueyunzhmsft_0-1675217995186.png

(2)We can click "New measure" and enter this:

Ship Qty Measure = SUMX(ADDCOLUMNS( VALUES('Table'[Shipment]) ,"qty" , CALCULATE(MAX('Table'[Ship Qty]))) , [qty])

(3)Then we can meet your need , the result is as follows:

vyueyunzhmsft_1-1675218026627.png

 

 

If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

Thank you so much, it works well😀

collinq
Super User
Super User

Hey @insandur ,

 

On that column in Power BI you could select the aggregation of Maximun or Minimum and I think that will resolve the issue for you.

collinq_0-1675198481390.png

 




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors