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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.