Skip to main content
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: 
manoj217
Creator III
Creator III

sold product names

Hi, i want to show sold product names instead of sum(sales) how to achieve that

8 Replies
Anil_Babu_Samineni

Simply, This won't useful to reply. I would write

Sum({<Product {'Sold'}>} Sales)

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
manoj217
Creator III
Creator III
Author

i have the data Like this

Load * inline [product,salesamount,category

a,100,vol

b,200,vol

c,100,vol

d,200,err

e,200,ett

f,0,ery

r,0,rr];

here i want to show the records a to e because it have saleamount but f and r doesn't have so i want to show those values a b c d e as a output how?

Anil_Babu_Samineni

May be this?

Sum({<salesamount = {'>0'}>} salesamount)

OR

Sum({<salesamount = {"=Sum(salesammount)>0"}>} salesamount)

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
its_anandrjs

Try this

Sum({<salesamount = {"$(=Len(salesammount) > 0 )"}>} salesamount)

Or


Sum({<salesamount = {"$(=Len(salesammount) -= 0 )"}>} salesamount)


Or

Sum({<salesamount = {"$(=Sum(salesammount) > 0)"}>} salesamount)

Or

Sum({<salesamount = {"$(=Sum(salesammount) -= 0 )"}>} salesamount)


sunny_talwar

In a list box object? You can try this

Aggr(Only({1<product = {"=Sum(salesamount) > 0"}>} product), product)

sunny_talwar

Or this

=Aggr(Only({1<product = {"=Sum({<product>}salesamount) > 0"}>} product), product)

Capture.PNG

MarcoWedel

Hi,

Please review your open threads and close those who received correct answers:

Qlik Community Tip: Marking Replies as Correct or Helpful

thanks

regards

Marco

vishsaggi
Champion III
Champion III

Or may be this:

Load *, IF(salesamount > 0, 1, 0) as Salesflag inline [product,salesamount,category

a,100,vol

b,200,vol

c,100,vol

d,200,err

e,200,ett

f,0,ery

r,0,rr];

Create straight table with product and category as Dimensions.

Expr: = Sum({<Salesflag = {1} >}salesamount)

Capture.PNG