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
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
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.