Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
qliksus
Specialist II
Specialist II

REGARDING SOME DOUBT IN CALCULATION

HI,

I hav added a excel file and open it u can see there are 6 fields such as DATE, OUTLET,COMPANY,BRAND,PACK,SALES. Now i want to calculate the Weightage Volume for that formula is

Total sales for those outlet (for a selected brand)/Total sales for that Day

Full Explain:

Suppose take the case of 03/10/2009 , Brand -F . Then first aim to see what are the Outlets where Brand-F is present (i.e: O1,O3,O4,O6,O7) . Then we have to calulate the total sales errespective any brand (DONOT CONSIDER FOR BRAND -F , IT IS THE SUM ALL THE BRAND SUM PRESENT IN THOSE 5 OUTLETS) in that OUTLETS (i.e TOTAL SALES IN ALL 5 OUTLETS) . i.e SUM(SALES) FOR O1,O3,O4.O6,O7=1500+2825+1625+1800+3600=11350 divide by SUM OF TOTAL SALES FOR 03/10/2009(16125)

11350/16125=.70

MY REQUIRED OUTPUT SHOULD BE 70%

AND FORMAT IS LIKE

BRAND WEIGHVOLUME

F 70%

1 Solution

Accepted Solutions
Not applicable

Hi,

here you go.

Best wishes

Rainer

View solution in original post

11 Replies
Not applicable

Hi,

you are running QV version 9?

If YES see the attached example.

Good luck!

Rainer

Not applicable

Hope the file is attached now.

Not applicable

Here are the expression you need:

Sum({$<Outlet=P({1<Brand={'F'}>}Outlet)>}Sales)/Sum(Sales)



qliksus
Specialist II
Specialist II
Author

Hi Rainer,

Thanks for the suggestion. But this one static type like it will give only for Brand F. But i want some dynamic type answer. Because u can see there 5 to 6 brands are then i have to create 5 charts. This is not the correct way to do. I want for every brand output should come in one pivot chart i.e

Brand, Availability

F,

K

G

Gf

etc

And also i am using Qlikview 9

Not applicable

Hi,

and when you use an inputbox (values are from the field Brand)?

Rainer

qliksus
Specialist II
Specialist II
Author

Hi Rainer,

Thanks for your suggestion. But i want format should be like

Brand, Sales, Total Sales, ratio

F,11350, 16125,70.39%

G,8350,16125,51.8%

Gf,9550,16125,59.2%

This is required format. can you help me to get this format????

Not applicable

Hi,

for me it seems that you have to calculate the values in your script.

If the Brands are fixed you can also try to build a kind of table view using text boxes.

Rainer

qliksus
Specialist II
Specialist II
Author

Hi rainer,

Thanks for your suggestion. I will foloow this method. If you get any idea to get my report please telll me.

Not applicable

Good morning,

I´m on the way. 75% are done!

Rainer