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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
jlafran
Frequent Visitor

Clear amounts or compensate amounts with added conditions

Captura de pantalla 2020-10-15 093733.png

 

Hi, I need to clear the amounts whitch conjunctionally eliminate each other, like 5 and -5, also i need to respect if they are either Manzana(Apples) or Pera (Pear), and also it needs to respect this conditions: AB=CD, YU=HR, AB=YU .

 

The resultant columns should be:

 

Which are the values that didn´t conjunctionally eliminate each other.Captura de pantalla 2020-10-15 093728.png

Thanks.

2 REPLIES 2
amitchandak
Super User
Super User

@jlafran ,

Try a formula like

 

sumx(table, if(isblank([Neted]) ,[value], blank()))

or

sumx(values(table[group]), if(isblank([Neted]) ,[value], blank()))

or

sumx(values(table[group]), if(isblank(sum(Table[Neted])) ,Sum(Table[value]), blank()))

 

Please provide your feedback comments and advice for new videos
Tutorial Series Dax Vs SQL Direct Query PBI Tips
Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi,  @amitchandak. I´m really sorry if i wasn´t clear in my initial explanation. I edited my original post, i hope now it´s clearer. Thank you very much. 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.