Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
MK9885
Master II
Master II

Previous week & current week

Hi,

I'm trying to build a KPI. And bar chart for last 8 weeks

KPI should show me current week and previous week

Bar chart should show current week + 7 previous weeks

Everything was working fine until last day of dec falls under week 1 of 2019 that would make week 53 and week 1 together.

My expression doesn't work any more

I used max of week in set, max of date, etc etc but nothing seem to work...

Anyone know how to get 12/31 to 01/06 data with an expression?

@sunny_talwar

Labels (1)
2 Replies
MK9885
Master II
Master II
Author

Got it fixed.
thanks for any help.
If you still like to share your solution please do so.
Frank_Hartmann
Master II
Master II

have a look at weekend function!
e.g.
=weekend('31.12.2018')

the formula should show 06.01.2019 as result!