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: 
lalitkgehlot89
Partner - Creator II
Partner - Creator II

Need logic help to creation weeks.

Hi,

In my data I have fiscal Month, Fiscal Year, fiscal date also.

here i want to create a chart of weekly sales but problem is that week should be from 1 April in place of 1 January.

first week should be in April and last week should be in March Month of the same fiscal year(Apr-Mar).

Please help me out to create the logic.


Regards,

Lalit Kumar

4 Replies
teiswamsler
Partner - Creator III
Partner - Creator III

Hi lalit

Try take a look at this post

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

/Teis

Anonymous
Not applicable

On script, to calculate fiscal week:

Week(Addmonts(FiscalDate,-3)) //Only Week Number

WeekName(Addmonths(FiscalDate,-3)) //Week - Year

Reagards!

Anil_Babu_Samineni

Perhaps this from script level

Week(Date(AddMonths(MonthStart(Today(),0),-5),'DD-MMM-YYYY')) as WeekFromApril,

.......

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
Anonymous
Not applicable

Please go through the below post. Similar question is posted and answered

Fiscal Weeks (Week Numbers) | Qlik Community

Hope this helps.