Forum Discussion
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 Date | Shipment | Ship Qty | Type | Putaway Date |
| 1/29/2023 | ABC | 1500 | FULL | 2/1/2023 |
| 1/30/2023 | ABC | 1500 | HALF | 2/1/2023 |
| 1/31/2023 | ABC | 1500 | FULL | 2/1/2023 |
| 2/1/2023 | ABC | 1500 | HALF | 2/1/2023
|
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.
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:(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:
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
3 Replies
- v-yueyunzh-msft
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:(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:
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
- insandur
Helper II
Thank you so much, it works well😀