Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
One_day_I_will_know
Contributor II
Contributor II

amount of weeks as divider

Hi,

 

I’m trying to figure out how to show weekly average of this year’s meetings as a KPI. I am using autocalendar. I have the function for the total of this year’s meetings, but how to add the divider?

 

Count(

{1<[Unit] = {‘Nordic’},

[ce_meetings.date.autoCalendar.YearsAgo] = {[0]}>}

[ce_meetings.])

 

Now I should divide this year's total by the amount of weeks passed this year (i.e by the number of current week). Should be very easy, but I just can’t figure out. Could somebody advise me?

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

divide your expression by week(today()) 
current week of today is 21

View solution in original post

4 Replies
JordyWegman
Partner - Master
Partner - Master

Hi,

You can use the following:

Count({1<[Unit] = {‘Nordic’},[ce_meetings.date.autoCalendar.YearsAgo] = {[0]}>}[ce_meetings.])
/
Round((Today()-YearStart(Today()))/7)

// Add this if you only want the finished weeks

(Round((Today()-YearStart(Today()))/7)-1)

Jordy

Climber

Work smarter, not harder
Anonymous
Not applicable

divide your expression by week(today()) 
current week of today is 21

One_day_I_will_know
Contributor II
Contributor II
Author

Thank you, works great. Why did I spend days wondering how it works, I just don't know 🙂
One_day_I_will_know
Contributor II
Contributor II
Author

Thank you Jordy, I will remember this too. Now I chose the simpler solution, which works great for my current need.