Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
RimDataAnalyst
Contributor III
Contributor III

assign a value

Good morning ,
I have this graph of tagets vs invoices.
The target of 2028 being not specified I want to assign it the target of the year.
Can somebody help me please ?

RimDataAnalyst_0-1706522290016.png

 

Labels (3)
3 Replies
steeefan
Luminary
Luminary

Please elaborate on what you mean by "I want to assign it the target of the year.".

RimDataAnalyst
Contributor III
Contributor III
Author

to prevent the target line from falling in 2028 because the value is not provided. I want to assign the value of 2027 to the target of 2028. I hope that it's clearer

steeefan
Luminary
Luminary

I would suggest creating that in the script because then you will have that data available in any chart of your application.

How to do that however depends on your data model. If you have a simple table where targets are stored, then one solution might be:

CONCATENATE (Target) LOAD
  2028 AS Year,
  Value
RESIDENT
  Target
WHERE
  Year = 2027;