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: 
chris_johnson
Creator III
Creator III

Reporting Calendar

Hi all,

I have a conundrum which I'm trying to solve.

I need to have a reporting calendar that starts around the 1st August each year. Some extra rules are that week 1 needs to start on a Monday, but if the 30th or 31st July are a Monday then the reporting year will start on that day.

Anyone got anything that does this?

1 Solution

Accepted Solutions
chris_johnson
Creator III
Creator III
Author

Thanks for the replies, I ended up using something along the lines of this post by HIC:

https://community.qlik.com/blogs/qlikviewdesignblog/2014/01/27/week-numbers#start=25

I modified the reference date to start the reporting year when I wanted and it seems to work.

I'll have to keep an eye on things with regards to leap years (as mentioned in the article) to see if this knock anything out.

Thanks

View solution in original post

4 Replies
Anil_Babu_Samineni

Looks like you need some dimensions over here. Does those you are attempting something like below

If(DateField >= Match(WeekDay(DateField), 'Mon'), DateField)


Here, If rules are crossed more than one you could use OR operator to split into multi conditions from each rule.

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
its_anandrjs

Yo are asking about some thing Fiscal Year calendar.

Go with some of this threads

https://community.qlik.com/docs/DOC-18299

Fiscal Calendar Flag

chris_johnson
Creator III
Creator III
Author

Thanks for the replies, I ended up using something along the lines of this post by HIC:

https://community.qlik.com/blogs/qlikviewdesignblog/2014/01/27/week-numbers#start=25

I modified the reference date to start the reporting year when I wanted and it seems to work.

I'll have to keep an eye on things with regards to leap years (as mentioned in the article) to see if this knock anything out.

Thanks

chris_johnson
Creator III
Creator III
Author

Just to detail as well, it wasn't exactly the same as the Fiscal Calendar as this "Reporting Calendar" needs to have the year starting on a Monday, as opposed to the 1st of the Month, because it works on complete weeks, not months.