Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Make a KPI with values

Hey there,

I got a problem on making a KPI. I want to show a KPI which shows a count how many distinct BBDs (Best Before Date) (see table below) are higher than 1. So in the case from the table below it should display 6, because the count higher than 1 is 6.

I tried to make a count(if(count( formula but it al did not give me the right KPI. I run into the problem that I can't use the BBD in the formula, because this is a distinct count value I am making from more BBDs. So $$Prinartsubnr is a dimension and BBD a distinct count from all BBDs, making it a value and which makes it unusable for my KPI (in my opinion)

I have tried to make some sort of formula in my load too, but I couldn't.

  

$$PrinartsubnrBBD
6000|4031289|1-1276
6000|4055368|1-56008146945
6000|4045796|1-3604283
6000|4055368|1-180004793
6090|0340029968|1-1806032
6090|0340034411|1-823B92VT142
6000|20995|1-80036906581
6000|20995|1-80037061991
6000|22714|1-L81631
6000|22714|1-L81661

I am still learning a lot in Qlik and hope you can help me out or send me in the right direction. At the moment I am really stuck on this one.

Thanks in advance,

Paul.

14 Replies
Anonymous
Not applicable
Author

How can I extract that from qliksense?

Anonymous
Not applicable
Author

From where I am working I can't extract unfortunately.

Anonymous
Not applicable
Author

Thanks all for the reactions, but don't have the solution yet. Anyone with a solution?

sasikanth
Master
Master

Try this,


=Sum(Aggr(Count({<$$Prinartsubnr ={"=count(Distinct BBD)>1" }>} Distinct BBD ),$$Prinartsubnr ) )

Anonymous
Not applicable
Author

Hi Sasi,

You came really close to the right answer! I changed sum( to count( and that gave me the right result! Thanks a lot!!!!!!!!!

Right formula:

=count(Aggr(Count({<$$Prinartsubnr ={"=count(Distinct BBD)>1" }>} Distinct BBD ),$$Prinartsubnr ) )


Thanks again! Everyone thanks again for help! This got me really excited!