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

isnull and not isnull in Set Analysis

Hi guys,

I don't have any ideas how to write isnull and not is null in expression using Set Analsyis. In attached example, I have represented how it looks using if function, but I  have to write it using set analysis.  The task is to calculate amount fot that records where FirstValue hasn't value but SecondValue has it without anything changing in the script.

Thanks for help.

1 Solution

Accepted Solutions
swuehl
MVP

Try

=sum({$<FirstValue = {'*'} > - < SecondValue = {'*'}>} Amount)

View solution in original post

5 Replies
swuehl
MVP

Try

=sum({$<FirstValue = {'*'} > - < SecondValue = {'*'}>} Amount)

Not applicable
Author

Hi,

Try,

Rebeca

Not applicable
Author

Thanks, in that case it works, but I have one misundertanding. For example, If I relate this table1 with table2 which contains discription of that 'Dim' field and use insteed of it then it shows strange result (0 values in 'With Set Analysis' column). Please see new attached file.

swuehl
MVP

Yes, looks kind of strange.

Alternatively, you can create a RecID field in your script and do something like:

sum({$<RecID = p({<FirstValue = {'*'} >}) - p({<SecondValue = {'*'}>}) >} Counter)

Not applicable
Author

But unfortunately I don't have opportunity change anything in the app. script.