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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
sureshgowda666
New Member

Sumif based on colums

Hello Team,

 

Need help in having the sum if in the conditional colum based on the 2 colums

Note, in the table i have more than 50 colums

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @sureshgowda666 

You can refer to the following example.

Create the calculated column.

Sum = SUMX(FILTER('Table',[ID]=EARLIER('Table'[ID])),[USD Value])

vxinruzhumsft_0-1675649729065.png

You can refer to the following example to know more about sumx() function

SUMX – DAX Guide

SUMX Power BI | How to use SUMX Function in Power BI? (with Example) (wallstreetmojo.com)

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @sureshgowda666 

You can refer to the following example.

Create the calculated column.

Sum = SUMX(FILTER('Table',[ID]=EARLIER('Table'[ID])),[USD Value])

vxinruzhumsft_0-1675649729065.png

You can refer to the following example to know more about sumx() function

SUMX – DAX Guide

SUMX Power BI | How to use SUMX Function in Power BI? (with Example) (wallstreetmojo.com)

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

sureshgowda666
New Member

Here is the sample data

16754216298681258292839186107030.jpg

AbbasG
Memorable Member
Memorable Member

@sureshgowda666 if you can share some sample data with the desired outcome, it will be helpful to guide you.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.