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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Obiwantobi
Regular Visitor

Return total only per unique value

Hello PBI Community,

 

This is my first post, so please bear with me as I'm not 100% familiar with rules and regulations.

 

I'm working with PBI only 2 weeks now and here's my issue I need to solve:

 

1 table, 2 columns

 

Shipment Reference          Weight of Cargo

A111                                     500

A111                                     500

A111                                     500

A222                                     250

A222                                     250

A222                                     250

A333                                     1000

 

What I want to achieve is that a unique shp ref shows 500 only and not 1500. Ideally the total weight of cargo is 1750 and not 3250.

 

Probably easy and straight forward, but I can't see it.

 

Create new table and pick unique values from shp ref?

 

Looking forward to your solutions!

 

Thanks & Rgds
Tobias

1 ACCEPTED SOLUTION
Anonymous
Not applicable

You can use summarize or groupby function to achieve. below is the example about summarize

 

Summarized = SUMMARIZE(Table,Table[Shipment Reference],Table[Weight of Cargo])

2018-04-12_15-21-27.png

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

You can use summarize or groupby function to achieve. below is the example about summarize

 

Summarized = SUMMARIZE(Table,Table[Shipment Reference],Table[Weight of Cargo])

2018-04-12_15-21-27.png

 

Many thanks for quick response! My issue is solved.

 

One more question: Any idea why it wouldn't let me link the new created table (unique Shipment Ref) to the original table (multiple entries of same Shipment Ref)?

Anonymous
Not applicable

I can link these 2 tables in my env. What error did you get?

2018-04-13_8-55-17.png

 

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.