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: 
arethaking
Creator II
Creator II

1 AS Flag

Hi All,

Why we use/write '1 AS Flag' in qlikview script?

Thanks in advance.

1 Solution

Accepted Solutions
maxgro
MVP
MVP

Flags can simplify the exressions in the front end

An example

You want to compare YTD and previous YTD; you can add 2 flag fields to the master calendar to identify the YTD and PYTD records

In the expression you can use these new fields (YTD e PYTD flag) in this way

sum({$ <YTD={1}>} someval)

sum({$ <PYTD={1}>} someval)

View solution in original post

3 Replies
trdandamudi
Master II
Master II

Please go thru the below link and you will get a better understanding regarding flags..

What are flags in QV?

maxgro
MVP
MVP

Flags can simplify the exressions in the front end

An example

You want to compare YTD and previous YTD; you can add 2 flag fields to the master calendar to identify the YTD and PYTD records

In the expression you can use these new fields (YTD e PYTD flag) in this way

sum({$ <YTD={1}>} someval)

sum({$ <PYTD={1}>} someval)

engishfaque
Specialist III
Specialist III

Dear Aretha,

Please have a look into given below thread for clear understanding with examples,

Customized flags

What are flags in QV?

Kind regards,

Ishfaque Ahmed