Toni Vukasinovic
Toni Vukasinovic

Reputation: 67

How to store a value from source into a parameter and use it in data flow transformations?

I have a source table which just has one row:

enter image description here

So i stored the value from Values_per_Country into a parameter: enter image description here

I want to use this parameter into my SELECT transformation(schema modifier), enter image description here

but this error comes up: enter image description here

Is there a way around this,so i can use values from the source tables?

Upvotes: 0

Views: 620

Answers (1)

Steve Johnson
Steve Johnson

Reputation: 8660

You can create a Lookup activity to get the column values of source table. And then pass to the parameter in Data Flow. Finally, your expression type == 'double' && position > 0 && position <= $parameter3 will work.

Screenshot:

enter image description here

Expression in the below image: @activity('Lookup1').output.firstRow['Values_per_Country'] enter image description here

Upvotes: 2

Related Questions