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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Ja4
Contributor II
Contributor II

Straight Table Calculation Condition

In a straight  table I need to filter where the duration is greater than  or equal to 2 days.

Source data is a VizLib writeback table.

I've tried a calculated dimension :  =Aggr(([End Date]-[Start Date]),tracker_id)

I've tried a measure too: Date#([End Date]-[Start Date])

Other columns:  Location / Status / Reason

 

Labels (4)
2 Solutions

Accepted Solutions
rubenmarin

Hi, if it's for a dimenions maybe: 

=Aggr(If([End Date]-[Start Date]>=2,tracker_id),tracker_id)

Or with a expression using a set analysis like:

{<tracker_id={"=[End Date]-[Start Date]>=2"}>}

View solution in original post

Ja4
Contributor II
Contributor II
Author

Thank you that put me in the right direction, I amended slightly:  =Aggr(If([End Date]-[Start Date]>=2,Reason),tracker_id), and then used with a measure to get the results I needed.

 

View solution in original post

2 Replies
rubenmarin

Hi, if it's for a dimenions maybe: 

=Aggr(If([End Date]-[Start Date]>=2,tracker_id),tracker_id)

Or with a expression using a set analysis like:

{<tracker_id={"=[End Date]-[Start Date]>=2"}>}

Ja4
Contributor II
Contributor II
Author

Thank you that put me in the right direction, I amended slightly:  =Aggr(If([End Date]-[Start Date]>=2,Reason),tracker_id), and then used with a measure to get the results I needed.