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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
prma7799
Master III
Master III

Above function calculation

Hi All,

I have dimension as QurterYear and I am getting all qurteryear values in Bar graph but when am writing below code for Growth value then am not getting exact growth value for respected quarter.


=(( (SUM(  [Sales Amount]) - SUM(  [Return]) )

-above((SUM([Sales Amount])- SUM(  [Return ])) ,4  )) /above((SUM(  [Sales Amount]) - SUM(  [Return])) ,4)) * 100

Thanks

4 Replies
MK_QSL
MVP
MVP

What is 4 here?

danansell42
Creator III
Creator III

Hi

Are you trying to do a quarter on quarter growth?

I noticed you have put an offset of 4 and if its meant to be quarter on quarter then i would assume you should use 1 instead.

Also you might need to use the aggr function too.

Please try the below and hopefully this does what is required

=num((((SUM([Sales Amount]) - SUM([Return]) )-aggr(above((SUM([Sales Amount])- SUM([Return])) ,1,1  ),QuarterYear))

/aggr(above((SUM([Sales Amount])- SUM([Return])) ,1,1  ),QuarterYear)),'#,##0%')

danansell42
Creator III
Creator III

Hi


Did this solve your query?

Please mark as correct to help other community users if it did.

Thanks

Dan

Anil_Babu_Samineni

=(( (SUM(  [Sales Amount]) - SUM(  [Return]) )

-above((SUM([Sales Amount])- SUM(  [Return ])) ,4, 0  )) /above((SUM(  [Sales Amount]) - SUM(  [Return])) ,4, 0)) * 100

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