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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
zagzebski
Creator
Creator

Filtering on calculated dimension OR expression

I hate the following chart:

Group IDDivision IDContract
  Effective Year
Revenue
1A20091,000
2B20092,000
3C20093,000
4D20094,000
5E20105,000
6F20106,000
7G20107,000
8H20118,000
9I20119,000
10J201110,000

"Contract Effective Year" is an expression. It is :

min(year([Contract_Date]))

What is the best way to select only 2010?   This seems like it should be simple but I am always running into situations where I want to filter on a calculated dimension or an expression.

3 Replies
MayilVahanan

HI

Try like this


Bring year([Contract_Date]) as Year in script and use like this


min({<Year = {2010}>}Year)


Sum({<Year = {2010}>}Revenue)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
zagzebski
Creator
Creator
Author

Thanks for the response.

Is there a way to do it without creating this field in the script? I am a front end user only of this application and don't control if/when a script is updated.

MayilVahanan

Hi

Then you want to use if condition, but its take more time when compare to use set analysis,

=IF( year([Contract_Date]) = 2010, Sum(Revenue))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.