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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
h_prakash
Creator II
Creator II

Interval Match Help In Qlik Sense

Hi Qlik Experts,

I have the Following Data Like this

   IntervalTable: 

ProjectNameStart DtEnd DtHr Per day
1john1/1/20155/31/20184
1Daniel3/31/20169/30/20187

In the front end When a user select 2017 he wants to see how many hours John has or Daniel has.

This is Just a sample Data. In reality we have many rows in the above table.

I tried to use while loop generating dates between Start Dt and End Dt but it is taking more time to complete the load.

I see other option as interval match.

I tried like this

BridgeTable:

IntervalMatch (Dates)

Load Start Dt,

         End Dt

Resident IntervalTable;

Dates field is coming from Master Calender.

But When I tried to create a KPI to sum of the Hrsperday in the year 2017 I am getting Calculation error.

The Expression is like this. Sum(Aggr(Sum(Hr Per Day), Project, Name, Dates))

Please help..!!

10 Replies
h_prakash
Creator II
Creator II
Author

Thank you kaan for resonding. I think I found the solution.