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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
bobbydave
Creator III
Creator III

last Fiscal Week

i am trying to get the last week's fiscal week

So for

Fiscal Year Week 2017-26,

i should get

Fiscal Year Week =2017-25

I cant simply write an expression Fiscal Year Week -1

Labels (1)
1 Solution

Accepted Solutions
Anil_Babu_Samineni
MVP
MVP

If you need that, Don't use Direct function to get that value

WeekName(DateField) as Fiscal_WeekName

You can use something like below

Year(DateField) & '-' & Week(DateField)-1 as Fiscal_WeekName

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

View solution in original post

8 Replies
Anil_Babu_Samineni
MVP
MVP

How you are getting 2017-26 ??

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
bobbydave
Creator III
Creator III
Author

From my calendar

bobbydave
Creator III
Creator III
Author

Doesnt necessarily have to be 2017-26

Could be 2017-02

Anil_Babu_Samineni
MVP
MVP

I know that, I am expecting how you are getting 26 week? Does your fiscal start from Which month? May be share application / script?

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
bobbydave
Creator III
Creator III
Author

I just made up the example of 2017-26

It could be 2016-04 from my T_Calendar.qvd

Anil_Babu_Samineni
MVP
MVP

I am sorry to say - Question not clear. May be better explain each line and show some sample data set and that demonstrates the issue?

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
bobbydave
Creator III
Creator III
Author

Capture.JPG

So What I want to do is to get Fiscal Year Week to show me the previous week

So 2016-30 would show 2016-29

Anil_Babu_Samineni
MVP
MVP

If you need that, Don't use Direct function to get that value

WeekName(DateField) as Fiscal_WeekName

You can use something like below

Year(DateField) & '-' & Week(DateField)-1 as Fiscal_WeekName

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