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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Need to sum the unique values from another table

Hi Experts,

 

I want to sum the unique values (means remove duplicates) from another table comparing columns.

 

Swamy3105_0-1654495355183.png

 

The value should be 258847.

 

Please help me on this.

 

Regards.,

Swamy

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

Does every pair of Year and Business have only one distinct Budget value? If so, you can create a new table with below code to summarize data from the original table, then sum data from this new table. 

New Table = SUMMARIZE('Budget Table','Budget Table'[Year],'Budget Table'[Business],"2021 Budget",MAX('Budget Table'[2021 Budget]))

vjingzhang_0-1654754789510.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

3 REPLIES 3
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

Does every pair of Year and Business have only one distinct Budget value? If so, you can create a new table with below code to summarize data from the original table, then sum data from this new table. 

New Table = SUMMARIZE('Budget Table','Budget Table'[Year],'Budget Table'[Business],"2021 Budget",MAX('Budget Table'[2021 Budget]))

vjingzhang_0-1654754789510.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

tamerj1
Super User
Super User

@Anonymous 

What do you refer to when you say "another table"?

For the sample table you are providing you can do

measure =

SUMX ( DISTINCT ( TableName ), TableName[2021 Budget] )

Anonymous
Not applicable

@tamerj1 

 

I want the dax for calculated column and compare two columns from both tables.

 

Regards.,

Swamy

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.

Top Solution Authors