
Contributor III
2021-09-09
08:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Multiple Conditions Set Analysis
Hello world!
I want to apply this condition (I want to exclude the online services and nbr of clients for Mobile services ) in a Set Analysis of a bar chart:
if (Service<>'Online' Or (Service='Mobile' AND TYPE_OPERATION<> 'Nbr clients' )) then num(sum(TOT_COUNT),'# ##0')
I tried this Expression:
num(sum({<Service-={'Online'},TYPE_OPERATION-={'Nbr Clients'},$(vSetPeriodPres)>}TOT_COUNT),'# ##0')
But it doesn't print the wanted result.
2,676 Views
4 Replies


Partner - Creator III
2021-09-09
08:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Nourrahmcnean !
I think you shoud try this:
sum({<Service-={'Online'}> + <TYPE_OPERATION-={'Nbr Clients'},$(vSetPeriodPres)>}TOT_COUNT)
Help users find answers! Don't forget to mark a solution that worked for you!

MVP
2021-09-09
08:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May be need to add $(vSetPeriodPres) to the first set also
Sum({<Service -= {'Online'}, $(vSetPeriodPres)> + <TYPE_OPERATION -= {'Nbr Clients'}, $(vSetPeriodPres)>} TOT_COUNT)
There is another way to do this, but I can't remember the syntax properly. Will check it and get back
2,650 Views

MVP
2021-09-09
08:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think it might be this
Sum({(<Service -= {'Online'}> + <TYPE_OPERATION -= {'Nbr Clients'}>) * < $(vSetPeriodPres)>} TOT_COUNT)
2,636 Views

MVP
2021-09-09
09:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May be something like this, but you added $(vSetPeriodPres), I don't see that in if condition so not sure how that will impact -
num(sum({<Service-={'Online'}> +
<TYPE_OPERATION-={'Nbr Clients'},Service = {'Mobile'},$(vSetPeriodPres)>
}TOT_COUNT),'# ##0')
2,605 Views
