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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.