Qlik Community

App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Announcements
Don't miss the upcoming Q&A with Qlik session on Qlik Application Automation on November 16th! REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
josemaria_cabre
Contributor III
Contributor III

Help with Max value over dimension

Hi,
I'm having trouble finding month with max value from this set of data:

459cabcf0848431c951a399be781bf2c.png

I'm looking for an expression that returns 8.28 M, but with this expression:

Max( total <[IssueDate.autoCalendar.Month]> aggr( $(v.TotalCost), [IssueDate.autoCalendar.Month])) 

I'm getting 12.88 M, (which is the sum of 8.28 M + 4.6 M ...)

How should I modify this expression to return max value from all months, but without aggregating ?

Thanks in advance for your help,
Jose

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar

What is the second dimension in your chart? Try this

Max(Aggr($(v.TotalCost), [IssueDate.autoCalendar.Month], Dimension2)) 

View solution in original post

2 Replies
sunny_talwar

What is the second dimension in your chart? Try this

Max(Aggr($(v.TotalCost), [IssueDate.autoCalendar.Month], Dimension2)) 

View solution in original post

josemaria_cabre
Contributor III
Contributor III
Author

Second dimension is [IssueDate.autoCalendar.Year], and now it works with:

Max(Aggr($(v.TotalCost), [IssueDate.autoCalendar.Month], [IssueDate.autoCalendar.Year]))

Thanks a lot for your help Sunny!