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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

min and max in chart

Why does the following expression not work in a chart?

Sum(if(Year=Max(Year),Profit,0))-Sum(if(Year=Min(Year),Profit,0))

If have selected more than one Year



1 Solution

Accepted Solutions
Not applicable
Author

Try Max(Total Year) and Min(Total Year) in place of Max(Year) and Min(Year).

Does this work? Why?

View solution in original post

2 Replies
Not applicable
Author

Try Max(Total Year) and Min(Total Year) in place of Max(Year) and Min(Year).

Does this work? Why?

Not applicable
Author

It works! Thanks!