Skip to main content
Announcements
YOUR OPINION MATTERS! Please take the Qlik Experience survey you received via email. Survey ends June 14.
cancel
Showing results for 
Search instead for 
Did you mean: 
m_woolf
Master II
Master II

calendar as data island

I have a master calendar that is not linked to nay other table.

In my expression, I use something like:  =sum(if(field1 = calendar_field1,field_to_sum))

This works, but I believe that if I could replace it with set analysis it would be faster.

Any help?

4 Replies
ogster1974
Partner - Master II
Partner - Master II

SUM({$ <[field1]=p([calendar_field1])>} field_to_sum) should work

m_woolf
Master II
Master II
Author

I thought that I tried that, but I tried again and it worked.  Thanks.

ogster1974
Partner - Master II
Partner - Master II

No problem glad I could help. 

chrisjad
Contributor III
Contributor III

How do you handle an AVG function with calendar Island?

For example, if a create a KPI to return an average of sales using the date from the calendar island, what would be the formula?