

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Set Analysis OR Condition
Morning Friends,
How to write multi conditional OR statement in Set Analysis ?
I would need a condition to identify students who secured 90% in either Maths or Physics.
Below is the sample data
SID | Sname | Physics | Maths | Chem |
1 | ABC | 95 | 90 | 90 |
2 | XYZ | 85 | 65 | 78 |
3 | PQR | 60 | 90 | 58 |
4 | EFG | 98 | 50 | 55 |
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
may be this
Count({<Maths={'>=90'}>}Sname)+Count({<Chem={'>=90'}>}Sname)


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using the same expression. Is there a way to put both conditions in same set expression ?


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
like this
Count({<Maths={'>=90'}>+<Physics={'>=90'}>}Sname)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Try like this
Count({<Maths={'>=90'}>+<Physics={'>=90'}>}Sname)
SID | Sname | Maths | Physics | Count({<Maths={'>=90'}>+<Physics={'>=90'}>}Sname) |
---|---|---|---|---|
3 | ||||
1 | ABC | 90 | 95 | 1 |
3 | PQR | 90 | 60 | 1 |
4 | EFG | 50 | 98 | 1 |
Please close the thread by marking correct answer & give likes if you like the post.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OR statement in Set Analysis is represented as "+" sign.
=Count({<Maths={'>=90'}>+<Chem={'>=90'}>}Sname)
The syntax Count({<Condition1> + <Condition2>} FieldName).

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try like this,
The no of students who secured 90% in either Maths or Physics.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Arul,
I am using the same expression in original application it is not working, but it works with sample set of data. Need to check weird behavior of expression.


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