Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Location wise Avg

Hi All,

Avg Per day per Person should be bucketed

Data :-

DateLocationNameHandled
7/1/2015BlrRaj 11500
7/1/2015ChnRaj 21000
7/1/2015TJRaj 3600
7/1/2015ChnRaj 41000
7/3/2015TJRaj 31000
7/3/2015BlrRaj 1900
7/6/2015ChnRaj 2500
7/6/2015BlrRaj 5

1000

Avg Per person Per day to be bucketed as given below.

 

LocationRow LabelsAverage of HandledBucket
BlrRaj 112001000 - 1500
ChnRaj 2750500 - 1000
TJRaj 3800500 - 1000
ChnRaj 410001000 - 1500
BlrRaj 510001000 - 1500

Final Output:

Location0 - 500500 - 10001000 - 1500> 1500
Blr2
Chn11
TJ1
14 Replies
puttemans
Specialist
Specialist

Latest version, with approximation of your needs I guess.

Kind regards,

Johan

puttemans
Specialist
Specialist

In the previous version, I used day as well, now I only used location.

For TJ, data differ since QV makes a difference between Raj3 and Raj 3. If you change this small error in the source data, it'll give you the desired output.

Regards,

Johan

Kushal_Chawda

Please see the attached

Not applicable
Author

HI,

One small query in your query you have used class function hence it is getting bucketed at an equal interval of 500 , but if i had to vary how to i do it.

Kushal_Chawda

Your bucket should follow the Particular interval. In your case it was 500. Now if you want 0-400, 400-800 then change 500 to 400