cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Jabutti
Regular Visitor

How to sum value only once based on two other columns

Let's say I have a column called First Name and column called Last Name. The name combo always means the same person, but it can appear on table multiple times. There's also the Account column, which is always the same for the name combo. How would I create a measure that sums the account while calculating the same name combo's account only once?

 

First NameLast NameAccount
BillyCurtis30 000
BillyJohnson15 000
RachelThompson20 000
RachelThompson20 000
BillyCurtis30 000
  Total: 65 000
1 ACCEPTED SOLUTION
PaulOlding
Solution Sage
Solution Sage

Hi @Jabutti 

This should do the trick

Account Total = 
SUMX(
    SUMMARIZE('Table', 'Table'[First Name], 'Table'[Last Name], 'Table'[Account]),
    'Table'[Account]
)

PaulOlding_0-1684512005770.png

 

View solution in original post

2 REPLIES 2
PaulOlding
Solution Sage
Solution Sage

Hi @Jabutti 

This should do the trick

Account Total = 
SUMX(
    SUMMARIZE('Table', 'Table'[First Name], 'Table'[Last Name], 'Table'[Account]),
    'Table'[Account]
)

PaulOlding_0-1684512005770.png

 

Seems to work, thanks!

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors