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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set Analysis - Greater than other field in chart table

Hi,

to simplify, i have 3 tables:

table1 (Facts):

FactsIdDateTimeRevenue
123452021-04-2017:38:56

13.44

 

table2 (Calendar):

DateWeekday
2021-04-20Tuesday

 

table3 (Event-Meta-Data)

WeekdayNameFromTo
TuesdayEvent No. 117:00:0018:00:00

 

My chart table should look like:

NameFromToRevenueWeekday
Event No. 117:00:0018:00:0013.44Tuesday

 

Ive set a filter on the specific Date.

I want to solve it with Set Analysis, but with no result so far.

pseudocode: sum({<Time = {"> From < To"}>} Revenue)  ??

How can I do it?

 

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I think i solved it myself with the following syntax:

FactsId = {"=Time > From","=Time < To"}

Do you see any errors in there?

 

Thanks alot!

View solution in original post

2 Replies
Anonymous
Not applicable
Author

I think i solved it myself with the following syntax:

FactsId = {"=Time > From","=Time < To"}

Do you see any errors in there?

 

Thanks alot!

duchezbr
Contributor III
Contributor III

This will aggregate revenue with hardcoded [From] and [To] values:

Sum({<Time = {">17:00:00"}> * <Time= {"<18:00:00"}>}Revenue)