Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
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
magellan
Contributor II
Contributor II

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
Specialist

@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
Specialist

@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!
magellan
Contributor II
Contributor II

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 😃