
Contributor III
2023-05-18
10:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Counting values based on logical functions (e.g., IsNum())
Using the following set analysis code, I am trying to count the number of distinct locations where the field 'value' does not have numeric values:
Count(${<[IsNum(value)] = {'0'}>} distinct location)
Whether I enter '0' or '-1', I get the same output. How can I fix the syntax to get this to work?
Ref:
760 Views
4 Replies

Creator II
2023-05-18
10:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you can try this
Count({<Not IsNum(value)>} DISTINCT location)
752 Views

Contributor III
2023-05-18
10:23 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Error in expression
Error in set modifier expression
741 Views

MVP
2023-05-18
04:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@prayner try below
Count(${<location = {"=isnum(value)"}>} distinct location)
719 Views

MVP
2023-05-18
04:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@prayner if you have multiple lines for location. then use primary key in set. If you don't have primary key, create it using Rowno() function in the script for that table
Count(${<PrimaryKey = {"=isnum(value)"}>} distinct location)
717 Views
