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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
sunilkumarqv
Specialist II
Specialist II

Year-Quarter Auto generate ID

Hi All,

Need small help to create Year quarter ID that automatically generate the IDs

Examples

Year-Quarter  ID

2011-Q1   1

2011-Q2    2

2011-Q3    3

2011-Q4    4

2012-Q1    5

2012-Q2    6

2012-Q3    7

2012-Q4    8

If you see Year-Quarter Column we have year - Quarter selection .we want write a script need to auto generate IDs based on Year-Quarter  instead of manually creating .

Labels (1)
12 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

I am not sure why it is not working, it should work becuase we are using this condition for dates

If(DataFieldName >= QuarterStart(Today()), Null(),


If possible attach some sample file.



Regards,

Jagan.

sunilkumarqv
Specialist II
Specialist II
Author

So,What is here DataFieldName  means

jagan
Partner - Champion III
Partner - Champion III

Hi,

DataFieldName is your date field.


Regards,

Jagan.