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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
corumba
Contributor
Contributor

Histogram/Bar chart - calculate conditions in dimension or expression

Hello,

I'm trying to create a histogram or bar chart from values in a table similar to that one:

1.JPG

Then what I need as answer for the histogram or bar chart is a table like the following table, in which shows the frequencies of the longest time of each ID.

2.JPG

3.JPG

I used an expression like that for the longest time as a value:

IF(TIME = max(aggr(nodistinct MAX({<some set analysis>} TIME),ID)),max(aggr(nodistinct MAX({<some set analysis>}  TIME),ID)) )

However I've some difficulties to recalculate that in a bar chart or histogram to insert the comparison of time to longest time.

Can anyone help with this case please?

0 Replies