
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
COUNT with multiple conditions
Hi all,
I have a counter with a specific condition
Count({<userAccountControl={'66048'}>}userAccountControl)
But i need to add these 3 multiple conditions on the same function, but I don't know how I can do it.
If(AccountExpirationDate = '<>', AccountExpirationDate) If(UserPrincipalName like '*direzione*' or userAccountControl like '*gfs*' or userAccountControl like 'servizi',UserPrincipalName) If(Title = 'Dipendente' or Title like '*Esterno*' or Title like '*Consulent*',Title)
Can we help me please?
Thanks
- « Previous Replies
-
- 1
- 2
- Next Replies »
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
add 2 new columns

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
if(match (name , '*dbd*') or match(name,'*bss*') or match(name,'xy*') , username)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks @Channa , I try with a condition but not work.
Count({<userAccountControl={'66048'}>}userAccountControl if(UserPrincipalName, '*direzione*'))

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Count({<userAccountControl={'66048'}>}userAccountControl if(UserPrincipalName, '*direzione*'))
if (userAccountControl='66048' or match(UserPrincipalName,'*direzione*'),count(userAccountControl ))

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
is this condition possible??
If(AccountExpirationDate = '<>', AccountExpirationDate)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Channa
This condition is possibile ....
if (userAccountControl='66048' or match(UserPrincipalName,'*direzione*'),count(userAccountControl ))
but the result is
I have just delete this condition because is not necessary
If(AccountExpirationDate = '<>', AccountExpirationDate)
I need count all :
userAccountControl='66048'
but insert conditions:
UserPrincipalName like '*direzione*' or userAccountControl like '*gfs*' or userAccountControl like 'servizi'
+ (not or)
Title = 'Dipendente' or Title like '*Esterno*' or Title like '*Consulent*
Thank you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ok
this case you need to use match
if(match(UserPrincipalName ,'*direzione*') or match(userAccountControl ,'*gfs*'),count(userAccountControl ))
try like this

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unfortunately it doesn't work.
This is a print screen of the real situation.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
it is working u extracting if match...it is matching direzon

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
With this code doesn't work
if(match(UserPrincipalName ,'*direzione*') or match (userAccountControl ,'66048'),count(userAccountControl))
But my goal is:
Count all record of the table
where userAccountControl = 66048
if
UserPrincipalName like '*direzione*' or UserPrincipalName like '*gfs*' or UserPrincipalName like 'servizi'
and if
Title = 'Dipendente' or Title like '*Esterno*' or Title like '*Consulent*'

- « Previous Replies
-
- 1
- 2
- Next Replies »