Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Highlighted
arethaking
Contributor II

1 AS Flag

Hi All,

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

Thanks in advance.

Tags (2)
1 Solution

Accepted Solutions
MVP
MVP

Re: 1 AS Flag

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
Honored Contributor II

Re: 1 AS Flag

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

What are flags in QV?

MVP
MVP

Re: 1 AS Flag

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

engishfaque
Valued Contributor III

Re: 1 AS Flag

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