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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Help with a chart expression

Assuming I have the following table:

Activity IDDateTime Period% of the day occupied
101.01.201810-1450%
201.01.201810-1450%
301.01.201810-1450%
402.01.201810-1450%
502.01.201810-1450%
702.01.201814-1850%
802.01.201814-1850%

I need an expression that calculates the amount of days worked by summing the "% of the day occupied" for each date and time period.
Given the above table, the result of the expression should be 1.5 days/150%(any format works for me as long as the results are good)(50% on 01.01.2018 ,in the 10-14 time period, + 50% on 02.01.2018 ,in 10-14 time period, + 50% on 02.01.2018 ,in 14-18 time period)

1 Solution

Accepted Solutions
sunny_talwar

May be this

Sum(Aggr(Sum(DISTINCT [% of the day occupied]), Date, [Time Period]))

View solution in original post

2 Replies
sunny_talwar

May be this

Sum(Aggr(Sum(DISTINCT [% of the day occupied]), Date, [Time Period]))

Anonymous
Not applicable
Author

That's it, thanks!