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: 
dominicmazvimavi
Contributor II
Contributor II

How to filter out '0' values from two fields, when both fields have '0' in adjacent rows?

Hi everyone!

In my script, I would like to filter out 0 values from fields DMV and CMV, only at a instance when both fields have the value 0 in their rows. 

dominicmazvimavi_0-1683704400241.png



Thank you 

Labels (1)
2 Replies
MayilVahanan

Hi

Try like below

Load * from ursource where DMV+CMV <> 0;

Hope DMV & CMV doesn't have negative values. If have, 
Load * from ursource where DMV<> 0 and CMV <> 0;

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
dominicmazvimavi
Contributor II
Contributor II
Author

Hi Mayil
Thank you for your response.  

Yes, I do have negative values and yes, I  tried the script which you suggested if I do have negative values. 
The problem with that script is that any instance DMV or CMV have a 0 value, the rows are filtered out and not ONLY when BOTH CMV and DMV have 0 values. 

Any other suggestions?