Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Phara
Contributor III
Contributor III

KPI - Exclude a value in a dimension

Hello,

I need a formula that needs to count a purchase order excluding one value in a dimension.

In my dimension [HA Description Action] their are 3 values : Active, Canceled, Pending

A purchase order can have 2 statues : Canceled and Pending. The dimension is  [Num BC]

I want to count the purchase orders that are canceled BUT not Pending.

I tried : count(distinct (if ([HA Description Action]='Active', not match ([HA Description Action]='Pending', [Num BC])))

Please hep me

Labels (2)
2 Solutions

Accepted Solutions
BernardBernoulli
Contributor III
Contributor III

Maybe try

count(distinct(if( HA Description Action] = 'Active' AND [HA Description Action] <> 'Pending',[Num BC])))

 

View solution in original post

Ahidhar
Creator III
Creator III

try this 

count({<[HA Description Action]- ={'Pending'},[HA Description Action]={'Active' } >}distinct [Num BC])

View solution in original post

5 Replies
MatheusC
Specialist II
Specialist II

@Phara 

use the -= sign

ex:

count(distinct ({<[HA Description Action]-={'Pending'}>}[BC Number])

Att,

Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
MatheusC
Specialist II
Specialist II

@Phara 

The subject of the topic being resolved, close the topic with the solution found.

Thanks,
Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
BernardBernoulli
Contributor III
Contributor III

Maybe try

count(distinct(if( HA Description Action] = 'Active' AND [HA Description Action] <> 'Pending',[Num BC])))

 

Ahidhar
Creator III
Creator III

try this 

count({<[HA Description Action]- ={'Pending'},[HA Description Action]={'Active' } >}distinct [Num BC])

Phara
Contributor III
Contributor III
Author

Thanks alot! It works 😃