Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

calculation!!

Hi All,

             I need to  calculate   CAL column some values based on cat:

Res Id 101102103104105catcal
100181456SV
100042579Tw

=(8*weight )+(102*weight)+(103*weight)+(104*weight)+(105*weight)multiply by 10 how i can write a expression here

10 Replies
Not applicable
Author

Sry gus i did a mistake

=(value of 101*weight )+(value of 102*weight)+(value of 103*weight)+(value of 104*weight)+(value of 105*weight)multiply by 10 how i can write a expression here

its_anandrjs

Elaborate more please..

its_anandrjs

101,102....105 are columns or field values.

MK_QSL
MVP
MVP

8*weight or 8* 101?

Anonymous
Not applicable
Author

Hi Suneel,

PFA for your expression.

Cheers!

Laxmi

Not applicable
Author

Thank u so much but

Here Cat1 has some weight value and Cat2 has some weight value  how we can do

What is the if condtion

Anonymous
Not applicable
Author

What is CAT1 and CAT2 in this example?

Not applicable
Author

Category 1  and Category 2

here Category 1 = Sv and Category 2 =TW

Sv has own weight value and Tw has Own own weight value

in  your example only one weight value is there right

Anonymous
Not applicable
Author

You can create another expression called "Weight" and change its values based on your condition.

I have attatched the updated .qvw file.

Hope it helps you.

Cheers!

Laxmi