
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Accepted Solutions


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try
=sum({$<FirstValue = {'*'} > - < SecondValue = {'*'}>} Amount)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Try,
Rebeca

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
But unfortunately I don't have opportunity change anything in the app. script.
