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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
zied_ahmed1
Specialist
Specialist

condition in script

I have this table :

Table:

Load [Sales Forcast],

date

from table

I want to add a field named Sales_forcast_valid with this condition :

if (today()< date) Sales_forcast_valid  = [Sales Forcast]


else

Sales_forcast_valid  =0



Thanks for help


Labels (1)
1 Reply
m_woolf
Master II
Master II

if(today()<date, [Sales Forcast],0) as Sales_forcast_valid,