Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
renuka_sasikuma
Partner - Contributor II
Partner - Contributor II

Covered Market Area - Calculation in QlikView

Hi All,

Data:

CORPORATEDrug CombinationValue
ABCAspirin2000
ABCparacetamol3508
ABCcaffeine4567
CDEcaffeine7767
CDElevodopa2345
PORparacetamol6789
PORCarbidopa5604
TUVAspirin1085
XYZcaffeine3423
XYZCarbidopa1259
CVNAbacavir/lamivudine9087

 

Where I want to achieve IPM, CVM & CurrentCompany

So I achieved IPM & CurrentCompany KPI simply by putting SUM(Value) & SUM({$<Corporate={'ABC'}>}Value) respc.

Now I want to achieve CVM - Drug Combination of Corporate ABC & available for other corporate also.

 

I need the below Output Corporate = ABC

DRUG CombIPMCVMCurrentC
Abacavir/lamivudine908700
Aspirin308530852000
caffeine15757157574567
Carbidopa686300
levodopa234500
paracetamol10297102973508
Total474342913910075

 

I tried using this expression - Sum({<[Drug Combination] = p({<CORPORATE = {"ABC*"}>})>}Value) but no success

Labels (2)
2 Solutions

Accepted Solutions
benvatvandata
Partner - Creator II
Partner - Creator II

You're really close with the expression you have... change it to:

=Sum({<[Drug Combination] = p({<CORPORATE = {"ABC*"} >} [Drug Combination]) >} Value)

 

Thanks,

Ben

View solution in original post

renuka_sasikuma
Partner - Contributor II
Partner - Contributor II
Author

Thank You @benvatvandata  

It worked for me with an additional condition.

=Sum({<[Drug Combination] = p({<CORPORATE = {"ABC*"} >} [Drug Combination]),CORPORATE= >} Value)

View solution in original post

2 Replies
benvatvandata
Partner - Creator II
Partner - Creator II

You're really close with the expression you have... change it to:

=Sum({<[Drug Combination] = p({<CORPORATE = {"ABC*"} >} [Drug Combination]) >} Value)

 

Thanks,

Ben

renuka_sasikuma
Partner - Contributor II
Partner - Contributor II
Author

Thank You @benvatvandata  

It worked for me with an additional condition.

=Sum({<[Drug Combination] = p({<CORPORATE = {"ABC*"} >} [Drug Combination]),CORPORATE= >} Value)