Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Product wise Total

Dear All

I need help on below Requirement:

Snaaapshot.png

Any help would be appreciated.

Regards

ERic

13 Replies
PrashantSangle

Hi,

sum(Value)/sum(Total<Product> Value)

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Anonymous
Not applicable
Author

Hi Eric,

Create Straight Table

Dimension : Product

Expression : Sum(Value)/Sum(TOTAL Value)

Hope it helps!!

susovan
Partner - Specialist
Partner - Specialist

Hi Eric,

Try this attachment,

23.JPG

Warm Regards,
Susovan
susovan
Partner - Specialist
Partner - Specialist

I have used this below expression for Logic:


if(Product='CAR',Sum({<Product={'CAR'}>}Value)&'/'&Sum(TOTAL{<Product={'CAR'}>}Value),

if(Product='TEMPO',Sum({<Product={'TEMPO'}>}Value)&'/'&Sum(TOTAL{<Product={'TEMPO'}>}Value),

if(Product='TRUCK',Sum({<Product={'TRUCK'}>}Value)&'/'&Sum(TOTAL{<Product={'TRUCK'}>}Value),

if(Product='BIKE',Sum({<Product={'BIKE'}>}Value)&'/'&Sum(TOTAL{<Product={'BIKE'}>}Value)))))



The expression of Desired Result:

if(Product='CAR',Sum({<Product={'CAR'}>}Value)/Sum(TOTAL{<Product={'CAR'}>}Value),

if(Product='TEMPO',Sum({<Product={'TEMPO'}>}Value)/Sum(TOTAL{<Product={'TEMPO'}>}Value),

if(Product='TRUCK',Sum({<Product={'TRUCK'}>}Value)/Sum(TOTAL{<Product={'TRUCK'}>}Value),

if(Product='BIKE',Sum({<Product={'BIKE'}>}Value)/Sum(TOTAL{<Product={'BIKE'}>}Value)))))

Warm Regards,
Susovan
PrashantSangle

Hi,

what is your expression if you have 100 different of products???

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
susovan
Partner - Specialist
Partner - Specialist

Hi Max,

Thanks for your reply.

According to my expression it will be huge.

Warm Regards,
Susovan
Not applicable
Author

Thank You Sir.

Can we do it from Backend Script using Rangesum or any other function.

tyagishaila
Specialist
Specialist

Sum(Value)/ Sum(Total <Product> Value)

PrashantSangle

Hi,

I just want to point out there is limitation with if - else so avoid it if you can.

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂