Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
kanve_03
Contributor II
Contributor II

conversion of week and Month to Period

Hi i am a date qvd in which i am having

[Week End] and [Month]

week end has  only the weekends

Month Has only start of the month

i want to create a column as Period which has only two values in Month Or Week as in the below image

fff.PNG

it has to be done in scripting level, where i had to use this in Multibox Resource Library

gwassenaarsana.ismailjaganswuehlQlikViewEducation Services ‌‌Layout & Visualizations

10 Replies
jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

Hi,

Try like this

LOAD

*

If(MonthStart(Date1) = Date1, 'Month', 'Week') AS Period

FROM DataSource;

Hope this helps you.

Regards,

jagan.