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: 
qvqfqlik
Creator
Creator

date format conv

how to convert a date year week format of a field

existin format  is  2016030  -> yearweek

required as 201630

please help

7 Replies
settu_periasamy
Master III
Master III

Maybe like this..

=Dual(Left(2016030,4)&right(2016030,2),

     Left(2016030,4)&right(2016030,2))

Not applicable

=WeekName(Today())

Clever_Anjos
Employee
Employee

If you have a date field, this should work

=Date(WeekStart(yourdatefield),'YYYYWW')

qvqfqlik
Creator
Creator
Author

Field has a yearweek format Yyyy0ww

This week is like 2016030

I need to convert it as 201630

Clever_Anjos
Employee
Employee

How do you create your yearweeek field?

qvqfqlik
Creator
Creator
Author

This field is coming from SAP and iam reading it in qv

Clever_Anjos
Employee
Employee

Please try

=replace(WeekName(MakeWeekDate(left(yourfield,4),Right(yourfield,2))),'/','')