Help me to understand column expression

So i have been researching about dt.column(“col1”).expresssion but i didnt understand it
I tried to search for articles/xaml files etc but i didnt get any

So can anyone understand me what does it do

also i have a problem

Say i have a column like below example

i want to modify that column by multipying those values with 10
How can i modify it using expressions method

Output should be

@Anil_G or anyone else please make me understand along with examples

Hi @Goku ,

Check out the below blogs/Documents :

Recent use case or Examples :

Hey @supermanPunch ,

I get this following error

Is it because we cant update the column which we have used in left side of assign activity?

Also many thanks for providing me links

@Goku ,

Its Great you are already experimenting it out :smiley: , So now the error shows that a circular reference is not possible.

It means, a Circular reference to update the same column cannot be referenced in your Data Column Expression.

If you have noticed the other post that I have pointed, I had created a new Column, and I have done the Calculation in that new column.

You could do the same.

Hey @supermanPunch ,
I did as you said, i added a data column
and i got this error

I Tried using Cint([Column1]*10) but it threw me a error
Assign: The expression contains undefined function call Cint().
Can you please help me with this

I also tried something like this

but that too threw me an error

Column type Details:
Column1 - Type is string
col1 - TypeArgument is String

@Goku ,

You are very close. :smiley:

Analyse and check further, CONVERT() function converts to the required type, For arithmetic operations we would need it to be either Integer or Double, we could specify the required type just like you have specified ‘System.String’. Also the Multiplication(*10) applies after the conversion.

Do also closely observe the syntax, there are Open and Closing brackets mismatch.

Do let us know if you were able to correct this last segment.


You can try like this it may help you

1Take for each row in data table and pass the
data table
2. Inside loop you can use like this
= cint(currentrow(0))*10

For the reference im attaching the screenshots with output please check

Screenshot 2023-08-19 001742

Hey @supermanPunch ,
Thank you so much for previous response , now I want to concatenate that column value with a variable
I tried doing it but i got error

@Goku ,

Is the Original Topic answered ? We would like to Scope the Topic for One Question/Topic, so that it is properly visualised for other users the Question/Query and the Solution, so that we also maintain the Thread Length.

Newer Topics could be created for separate queries, we can provide separate answers for it.

Regarding your last query, do analyse further (always), as you are using a variable, you should not add it within the Column Expression but after the Column Expression ends. But also enclose it within Single Quotes. As you can notice, when just the name of the Variable is added to the expression, it is just a String value and not the variable value.

You can create separate topic on this query so a better/more individual help could be provided to that.