Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
sudhir0538
Creator
Creator

Histogram Chart

Hello all!

In my chart,I have 4 fields. J1, J2,J3 AND Avg(J1+J2+J3)(Graph-1).J1 ,2 and 3 are fetching from the database and Avg is calculated value.

There's necessity of creating a histogram chart(in qlikview) for the avg values(created in excel Graph-2). How many no of samples have been there for a particular avg range(say between 20-40 ,40-60). Range was not a problem.

Not getting any idea to implement.


Anyone have any idea please help.

.Graph-1.JPG


Graph-2.JPG

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Maybe have a look at

Recipe for a Histogram

Maybe like using a calculated dimension

=Round(Aggr( Avg(J1+J2+J3), RecordIDFIELD),20)

and as expression

=Count( RecordIDFIELD)

View solution in original post

4 Replies
swuehl
MVP
MVP

Maybe have a look at

Recipe for a Histogram

Maybe like using a calculated dimension

=Round(Aggr( Avg(J1+J2+J3), RecordIDFIELD),20)

and as expression

=Count( RecordIDFIELD)

sudhir0538
Creator
Creator
Author

Hello Swuehl

This was really solved my issue.Now I got another problem. I am unable to do grouping in the graph. I want to give the user to choose the range and based on the selected range the graph'll shows the data for only selected fields. like this

Graph-1.JPG

Graph-2.JPG

How do I implement the same in my histogram graph?

swuehl
MVP
MVP

Try creating a list box with a field expression (from field drop down, select <expression>) like

=Aggr( Round(Aggr( Avg(J1+J2+J3), RecordIDFIELD),20), RecordIDFIELD)

sudhir0538
Creator
Creator
Author

Yah.. Thanks a Ton Mr.Swuehl.

Really we'll create wonders by using AGGR() function. Thanks a lot.