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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

How to show individual weight under same customer and same date

Dear all,

 

Please advise if there is any way for Power BI to display the weight of each container in the table view when the customer and date are the same. Below is my raw data, and I want the table to be presented as per my raw data.

 

Job NumberCompletedDateCustomerQtyContainer Weight
289358401/11/2023ABC121
289358401/11/2023ABC125
289358401/11/2023ABC129
289358401/11/2023ABC130
289358401/11/2023ABC133
289358401/11/2023ABC136
289358401/11/2023ABC140
289358401/11/2023ABC140
289358401/11/2023ABC143
289358401/11/2023ABC155
3 REPLIES 3
FreemanZ
Super User
Super User

hi @Anonymous ,

 

what do you expect out of the sample data?

123abc
Community Champion
Community Champion

To display the weight of each container in the table view when the customer and date are the same in Power BI, you can create a calculated column using the DAX formula below:

 

Container Weight by Customer and Date =
VAR CurrentCustomer = 'Table'[Customer]
VAR CurrentDate = 'Table'[CompletedDate]
RETURN
CALCULATE(
SUM('Table'[Container Weight]),
FILTER(
'Table',
'Table'[Customer] = CurrentCustomer &&
'Table'[CompletedDate] = CurrentDate
)
)

 

This formula creates a new column called “Container Weight by Customer and Date” that sums the weight of all containers for the same customer and date. You can then add this column to your table view to display the individual weight of each container.

I hope this helps! Let me know if you have any other questions.

 

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

 

In case there is still a problem, please feel free and explain your issue in detail, It will be my pleasure to assist you in any way I can.

 

 

You can check this solution in this link:

 

https://stackoverflow.com/questions/41780653/i-am-looking-at-each-individual-date-in-a-pandas-datafr...

 

 

Anonymous
Not applicable

Thanks @123abc  but it doesn't work. maybe i didn't explain myself clearly. 

 

I figure another way by creating a column to give unique number for each container weight for same customer on same date.

UniqueID =
RANKX(FILTER('Table', 'Table'[Customer]= EARLIER('Table'[Customer])
&& 'Table'[CompletedDate] = EARLIER('Table'[CompletedDate])),'Table'[Container Weight])

 

i added the unique number to my table, then it work

PaulineJW_0-1701188219563.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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