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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

calculate the number of weeks based on the selection

Hi all

I want to calculate a weekly-Runrate based on the month selected.

Currently I use this formula, but this takes the full year

=sum({<[Fact.Type] = {'Sales'}>}Fact.Net_Rev_EUR)

/

week(today())

How can I calculate the number of weeks based on the selection?

1 Solution

Accepted Solutions
rubenmarin

Hi Oliver, you can count the weeks between the min as date:

Ceil((max(Date)-Min(Date))/7)

or

Floor((max(Date)-Min(Date))/7)

View solution in original post

2 Replies
rubenmarin

Hi Oliver, you can count the weeks between the min as date:

Ceil((max(Date)-Min(Date))/7)

or

Floor((max(Date)-Min(Date))/7)

Not applicable
Author

Thanks a lot !

cheers

Oliver