Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
Why we use/write '1 AS Flag' in qlikview script?
Thanks in advance.
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)
Please go thru the below link and you will get a better understanding regarding flags..
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)
Dear Aretha,
Please have a look into given below thread for clear understanding with examples,
Kind regards,
Ishfaque Ahmed