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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
karin_nevo
Contributor III
Contributor III

Multiply function in QV

Hi.

I am using aggr function to get a grade per specific dimension.

For example:

dImension    Grade

A                   100%

B                    80%

C                    70%

D                    99%

now, I need to multiply all results to get a final grade (100%*80%*70%*99%=55.44%)

which function in QV can I use to achieve the required result?

thanks,

Karin

Labels (1)
6 Replies
surendraj
Specialist
Specialist

May be this!! 

Sum(If(dImension= 'A', Grade)) * Sum(If(dImension= 'B', Grade)) * Sum(If(dImension= 'C', Grade)) * Sum(If(dImension= 'D', Grade)) * 100 as finalgrade

karin_nevo
Contributor III
Contributor III
Author

The problem is that that I the list of possible values is unknown

בתאריך יום א׳, 17 בדצמ׳ 2017 ב-16:08 מאת surendra j <

qcwebmaster@qlikview.com>:

Anil_Babu_Samineni
MVP
MVP

Where are you trying this? IS that from Pivot or Text box??

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
surendraj
Specialist
Specialist

If the numbers are all positive (from Alexander Schubert):

exp(sum(log(Grade)))*100 as finalgrade

if we need the value in percentage,it should be multiply with 100.

vishsaggi
Champion III
Champion III

What is your expression for Grades? Use like

= Avg(Aggr(Sum(yourexpression), Dimension))

karin_nevo
Contributor III
Contributor III
Author

Thanks Surenda, that is what I was looking for