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

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

Max value from row

Hi!

I have a pivot table:

Product on rows

Date on columns

Measure - sales

         01/01   02/01  03/01

A       10          7           3

B        1          4            4

C        3          11         9

I want to calculate the maximum value for each row and display it in each column

For product A  - 10

B - 4

C - 11

I want this result:

01/01   02/01  03/01

A       10          10           10

B        4         4            4

C        11         11         11

Tell me how to write such a formula?

I understand how to sum by line(sum(total <product> sales)), but I don't understand how to get the maximum...

Labels (1)
1 Solution

Accepted Solutions
Ssa90
Contributor
Contributor
Author

Solution:)

MAX(TOTAL <product> AGGR(SUM(SALES), DATE, PRODUCT))

 

View solution in original post

2 Replies
Ssa90
Contributor
Contributor
Author

Solution:)

MAX(TOTAL <product> AGGR(SUM(SALES), DATE, PRODUCT))

 

brunobertels
Master
Master

hi 

may be 

only(max(aggr(Sum(Sales),Date))