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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
nbbmf
Contributor
Contributor

Creating a calculated field based on existing fields

How do i create new field which is calculated such that it gives a new value as compared to the existing field, 

the calculated field consist of values such as submitted, approved etc.

so if the submission date(a field) has passed today's date then it will give an output 'submitted'.

Labels (1)
3 Replies
Or
MVP
MVP

If([Submission Date]>Today(),'Submitted',if(Something=SomethingElse,'Approved','SomeOtherOption')

You can nest as many if() statements as required.

nbbmf
Contributor
Contributor
Author

hi, thank you for your help! i tried this with '-' as my else output :

If ([official approval date] < Today(), 'Approved' ,if [registration expiry date] < Today(), 'Expired' ,if [official submission date] < Today(), 'Submitted' ,if [internal dispatch date] < Today(), 'Dispatched'
,[ '-'] )

 

but couldnt proceed as there was an error, do u mind helping to check?

Or
MVP
MVP

All of your inner If statements are missing their opening and closing parenthesis. It should be If(Condition,Then,Else)