Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

need help

Hi viewers

I have small doubt.

when i was write this expression sum({$<Year={"$(=Year(today()))"}>}Sales) the bar graph shows 2017.and

if i write this expression  sum({<Year={$(=max(Year))}>}Sales) the bar graph shows 2018.

what is the difference,please explain.

1 Solution

Accepted Solutions
Anil_Babu_Samineni

Here, Year(Today()) will return 2017 because this year running is 2017

Max(Year) same if you have year till 2017. My assume, you may have till 2018 year sales on your data set. Max will return only max value.

You can use this to get only 2017 year sales data

sum({<Year={$(=max(Year-1))}>}Sales)

Please add me Anil_Babu_Samineni to interact faster when reply back. Speak low think High.

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)

View solution in original post

2 Replies
Anil_Babu_Samineni

Here, Year(Today()) will return 2017 because this year running is 2017

Max(Year) same if you have year till 2017. My assume, you may have till 2018 year sales on your data set. Max will return only max value.

You can use this to get only 2017 year sales data

sum({<Year={$(=max(Year-1))}>}Sales)

Please add me Anil_Babu_Samineni to interact faster when reply back. Speak low think High.

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
Not applicable
Author

Hi anil,

I got the difference.Thanks for responding