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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
New-Qlik
Creator III
Creator III

Excel Sumif function

HI

I have to get below output

   

Customeraaa= c1+c2+c3bbbccc
productSales
p1402030
p2402030
p3402030

My source file is

   

customer salesProduct
c110p1
c210p1
c320p1
bbb20p1
ccc30p1
c110p2
c210p2
c320p2
bbb20p2
ccc30p2
c110p3
c210p3
c320p3
bbb20p3
ccc30p3
1 Solution

Accepted Solutions
francisvandergr
Partner - Creator II
Partner - Creator II

You can do this with Set analasys. See example.

sum( {$<customer = {"c*"}-{"ccc"}>} sales )

sum( {$<customer = {"bbb*"}>} sales )

sum( {$<customer = {"ccc"}>} sales )

View solution in original post

7 Replies
francisvandergr
Partner - Creator II
Partner - Creator II

You can do this with Set analasys. See example.

sum( {$<customer = {"c*"}-{"ccc"}>} sales )

sum( {$<customer = {"bbb*"}>} sales )

sum( {$<customer = {"ccc"}>} sales )

New-Qlik
Creator III
Creator III
Author

Thanks A lot Francis

New-Qlik
Creator III
Creator III
Author

how can I change name of customer to aaa ,

I cannot do in expression label name as it should be sales

    

Customeraaa= c1+c2+c3bbbccc
productSales %Sales%Sales%
p14033.333333332033.333333033.33333
p24033.333333332033.333333033.33333
p34033.333333332033.333333033.33333
total1201006010090100
francisvandergr
Partner - Creator II
Partner - Creator II

can you post your qvw?

New-Qlik
Creator III
Creator III
Author

Hi Farancis,

I have calcualated % in yours only .

I have to menation name like aaa,bbb and ccc

n below is sum(sales) and % for each customer

francisvandergr
Partner - Creator II
Partner - Creator II

with labels

New-Qlik
Creator III
Creator III
Author

For all expressions I have lables like same and %

what I am not getting how to show customer name, if I pick another dimension then how can I say c1,c2,c3 combines label is aaa