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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

sum

Hi,

In my QV documents I have following Pivot TAble

No of Items
ITEMVALUEU_COST=(VALUE)/(U_COST)
Card Printers3,840,000160,00024
Structured Data 1 point6,0006,0001
TFT Panels168,00014,00012
UPS (650VA)748,0008,50088
Total4,762,000646,5007.365815932

Expected Value                                            125

Pls help me to arrive expected Value (125)in total row of No of Items

1 Solution

Accepted Solutions
sunny_talwar

Here is a sample:

Capture.PNG

View solution in original post

8 Replies
sunny_talwar

I think you won't be able to achieve the result you are hoping to see with column labels. You will need to use the expressions with Aggr () function like this:

Sum(Aggr(Expression for VALUE/Expression for U_COST, ITEM))

upaliwije
Creator II
Creator II
Author

Thanks Sunny,

What do mean by Expression for VALUE/

                                 Expression for U_COST

Can you elaborate little more pls

sunny_talwar

Are VALUE and U_COST field names from your database?

upaliwije
Creator II
Creator II
Author

Yes Those are fields in my database

sunny_talwar

Try this:

Sum(VALUE/U_COST)

or

Sum(Aggr(VALUE/U_COST, ITEM))

sunny_talwar

Here is a sample:

Capture.PNG

upaliwije
Creator II
Creator II
Author

thanks Sunny

sunny_talwar

No problem