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: 
Chellappan-Pillai
Contributor
Contributor

Help with a calculation inside a straight table

Hi,

I need help with a Calculation in QlikView.

I  am trying to follow the Sparklines example in the Data Visualization sample.

I want the calculation to be first sum() by the d_req_date field and then the MIN(),MAX()& AVG() calculation be evaluated.

While calculating the MIN,MAX & AVG my calculation is not including the d_req_datecolumn, I don't know how to include the d_req_date aggregation in the calculation.

 

In Python Pandas  what I am trying to get looks like below. May be this helps to better explain my situation.image.png

 

I am attaching my sample, Can someone help me with the calculation?

 

Labels (2)
1 Solution

Accepted Solutions
crusader_
Partner - Specialist
Partner - Specialist

Hi,

Check attached example.

hope this helps.

//Andrei

View solution in original post

2 Replies
Anil_Babu_Samineni

Perhaps this?

Avg({<d_req_date = {"$(=Max(d_req_date))","$(=Min(d_req_date))"}>} Aggr(RangeSum(num_requests, Sum_resp_time)

, svc, req_date))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
crusader_
Partner - Specialist
Partner - Specialist

Hi,

Check attached example.

hope this helps.

//Andrei