Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
ss35
Contributor
Contributor

How do I filter a table chart by condition

I would like to only display the rows of the table where the date field is greater than or equal to 01/01/2017.

 

Labels (2)
7 Replies
MartW
Partner - Specialist
Partner - Specialist

what you are showing in screenshot 9 is the caculation condition, this calculation calculates if the chart will show or not.

for what you to filter in a chart, you can use set analysis for this. What you need to do is add a set analysis statement into a measure.

a set analysis statement looks something like this. 

sum ( { < DATEFIELD={'01-01-2017'} > } Expression )

Danri94
Contributor III
Contributor III

How can i adapt that statement if i want to see the Dates that are in the future (Date greater than today)?

MartW
Partner - Specialist
Partner - Specialist

sum ( { < DATEFIELD>={'01-01-2017'} > } Expression ) should work

anat
Master
Master

sum({<Date = {">=07/01/2020"}>} sal)

gomeri
Partner - Contributor III
Partner - Contributor III

Hello,

you need to insert in Calculation codition this formula of Set Analysis: 

SUM({<amazon.date>={'01/01/2017'}>} Date)

Giovanni O. D.
ss35
Contributor
Contributor
Author

This is the result if I create a measure and add the above set analysis statement into the expression.Screenshot (26).png

Where should I be adding the set analysis statement to filter the table chart?

Thank you.

zhaofeng
Partner - Creator
Partner - Creator

Build a variable named v_Date.The defination is   =makedate('2017','01','01')

Set a calculate dimension: =if(amazon.date>=$(v_Date),amazon.date)

If you do not want to write a calculate dimension,you can also write your expression like below

sum({<amazon.date={">=$(v_Date)"}>}[Your Measure Field])