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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

pls help..............simple conditional calculation

Hi Experts,

i have tables linked like below.

   

RSMBranch NoBranch
Mathew79BARKING
134BOREHAMWOOD
23COLLIERS WOOD
74EDMONTON
823ENFIELD (UA)
115HARROW
24HORNSEY
Coles1WEMBLEY
Adam54ALDERSHOT
112BASINGSTOKE
195CAMBERLEY
47CHERTSEY

   

BranchBranch NoWorking DAYS
WEMBLEY18.5
MANCHESTER28.5
MILTON KEYNES188.5
SHEFFIELD198.5
READING208.5
SWINDON218.5
LEICESTER228.5
COLLIERS WOOD238.5
HORNSEY248.5
NOTTINGHAM258.5
BURY ST. EDMUNDS268.5
EDINBURGH278.5
HAYES288.5

   

i have to calculate the working days for RSM.

when i calculated, i m getting the result as below.

  

RSM NameWorking DAYS
Mathew127.5
Coles8.5
Adam119

this is not the requirement.

i should get the result as

RSM NameWorking DAYS
Mathew8.5
Coles8.5
Adam8.5

the result highlighted in blue is the correct one i should get.

how can i do this in the expression.

pls help................

1 Solution

Accepted Solutions
sunny_talwar

If each RSM has 10 branches and you are trying to do a Sum of working days then you will essentially be summing them the working Days from each of the 10 branches. Do you not want that? May be you want to use an average instead to get what you are looking for. Have you tried average???

Best,

Sunny

View solution in original post

16 Replies
sunny_talwar

The first table and the second table don't have all the matching Branch and Branch No. How do you know Mattew only has 8.5 working days when there is no matching Branch and Branch No. in the second table?? Just trying to understand the logic here.

Best,

Sunny

sunny_talwar

and if it is always going to be 8.5 why not just create a chart with RSM as Dimension and 8.5 as your expression?

Not applicable
Author

hi,

actually this s a sample data.not exact

each RSM has around 10 branches.

but our working days table is set to branch.(it differs by branch)

for ex. this month till date, we got 8.5 working days.

lets say branch 1 has got 8.5 working days till now,branch 2 has got 8 working days till now,

branch 3 has got 9 working days till now and so on.

i need to calculate the working days for RSM.

How can i do that in pivot table.

pls help.

looking forward to your reply.

Not applicable
Author

hi sunindia,

i was trying to share my posts two days back with you. but getting error msg as i m not connected with u.

pls give a follow up to me.

so that it ll be helpful to me plssssss

sunny_talwar

If each RSM has 10 branches and you are trying to do a Sum of working days then you will essentially be summing them the working Days from each of the 10 branches. Do you not want that? May be you want to use an average instead to get what you are looking for. Have you tried average???

Best,

Sunny

sunny_talwar

Not sure which post you are talking about???

buzzy996
Master II
Master II

first u can tell to us,how u got ........

Adam

8.5?

as per the above data u wont get that figure,any how!

Not applicable
Author

i would like to hav solution for this current post only.

but personally,i would like to ask help from you whenever i get any doubt.

i was trying to send msg at that time but couldnt connect with u. i think the reason is i m following you, but you are not following me.

pls help

Not applicable
Author

again, its just a sample data.

some branches have working days 8, some have 8.5, some have 9 till now.

but i need to calculate for RSM, not for branch.

pls help