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

This widget could not be displayed.

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
stevietm
Creator
Creator

aggr(RangeSum(Above( based on 2 dimensions in a pivot table.

Hi All,

I hope someone can help me. I currently want to do an aggr(RangeSum(Above( based on 2 dimensions in a pivot table.

The table have to be able to expand the period dimensions to show the breakdown per company. 
Find attached an excel example.

 

Thanks in advance. 

 

Note: My measures are rows and my dimensions are columns.

Labels (2)
This widget could not be displayed.
1 Solution

Accepted Solutions
sunny_talwar

How about this

Sum(Aggr(
  RangeSum(Above(
    Sum({<FinYear = {'2019','2018','2017','2016'}, ManagementMap4 = {'AUDIT FEE'}, CompanyName>} -Amount)
  , 0, RowNo()))
, CompanyName, Period))

View solution in original post

This widget could not be displayed.
4 Replies
sunny_talwar

May be this

Aggr(
  RangeSum(Above(
    Sum({<FinYear = {'2019','2018','2017','2016'}, ManagementMap4 = {'AUDIT FEE'}, CompanyName>} -Amount)
  , 0, RowNo()))
, CompanyName, Period)
This widget could not be displayed.
stevietm
Creator
Creator
Author

Hi,

 

Thanks, the numbers seems to be correct now but the non expanded period gives 0's back. Only when expanding it shows the amounts.

 

Thanks

This widget could not be displayed.
sunny_talwar

How about this

Sum(Aggr(
  RangeSum(Above(
    Sum({<FinYear = {'2019','2018','2017','2016'}, ManagementMap4 = {'AUDIT FEE'}, CompanyName>} -Amount)
  , 0, RowNo()))
, CompanyName, Period))
This widget could not be displayed.
stevietm
Creator
Creator
Author

Thanks bud its work.

This widget could not be displayed.