Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
nareshthavidishetty
Creator III
Creator III

Combining measures in single expression

Hi,

How to bring 3 product sales in one expression.

Ex: i have 3 products like A,B,C

I have created a pivot table , in the expression in need overall sales like sales (A+B+C)

can anyone give the expression for this

9 Replies
tamilarasu
Champion
Champion

Hi Naresh,

Just write, Sum(Sales). What is your dimension.?

I assume that all you have Product as dimension and Sales filed as expression in pivot table.

raghvendrasingh
Creator II
Creator II

Hi Naresh,

Please provide complete requirement, What you actually want to see?

Regards,

Raghvendra

Anonymous
Not applicable

Is this you want??

Product          Sum(Sales)

A                        1400

B                         500

C                         600

nareshthavidishetty
Creator III
Creator III
Author

ii need like sum(A+B+C) ie., over all sales

Siva_Sankar
Master II
Master II

PFA

settu_periasamy
Master III
Master III

Hi Naresh,

Try this..


=sum(TOTAL Sales)

you can include your dimension, if you want.. like

=Sum(TOTAL <Year> Sales)

Anonymous
Not applicable

You can try like:

sum(A)+sum(B)+sum(C) as TotalSales

Mark_Little
Luminary
Luminary

Hi,

SUM({Product={'A','B','C'}}Sales) Would sum the sales for Product A, B and C

Then

SUM({Product-={'A','B','C'}}Sales) Would sum the sales for all Products except A, B and C


Mark

HirisH_V7
Master
Master

Hi,

Marks expression helps you .

Thanks,

hirish

HirisH
“Aspire to Inspire before we Expire!”