Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Milutin
Partner - Contributor II
Partner - Contributor II

Conditional Calculation

Hello everyone, I am in the middle of an important project, and I am very exhausted, so maybe this question will be very easy to answer: 

I am calculating engagement margin percentage and I need help with calculation. I want to show 0s or Nulls when both Net Revenue and Eng. Margin are negative numbers.

 

Formula is     sum(NetRevenue)/sum(Eng.Margin)

Thanks in advance

Labels (1)
1 Solution

Accepted Solutions
sergio0592
Specialist III
Specialist III

Hi,

Try with

=if(Sum(NetRevenue) and Sum(Eng.Margin)<0,'',Sum(NetRevenue)/Sum(Eng.Margin))

View solution in original post

2 Replies
sergio0592
Specialist III
Specialist III

Hi,

Try with

=if(Sum(NetRevenue) and Sum(Eng.Margin)<0,'',Sum(NetRevenue)/Sum(Eng.Margin))
Milutin
Partner - Contributor II
Partner - Contributor II
Author

thanks a lot