Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
priyarane
Specialist
Specialist

Columns to change

Hi Community,

I have data like,

   

DimVal
AE
BD
CE
DD

and I want the out in seperate column like if Val = 'E' and it dim value should come like sum(C) as C

for Ex:

   

Dim1Val
sum(A) As AE
BD
sum(C) As AE
DD
1 Solution

Accepted Solutions
aarkay29
Specialist
Specialist

May be this

If(Val='E','Sum('&Val&') as '&Val,Val) as Dim1

View solution in original post

6 Replies
aarkay29
Specialist
Specialist

Hi Priya,

further question! so if value is E then, do you want to sum up the values for E or rename the value as sum(Value) ??

avinashelite

could you post a better example??

nitin_01
Creator
Creator

Hi Priya,

Its confusing for us to understand, please post d desired output in tabular form or in a comprehensive way to understand us.

Regards,

Nitin.

priyarane
Specialist
Specialist
Author

No, I am not sum up the values I just need name like sum(C) As A so this one I will use in other select statement to sum up.

Concat(Dim1,',')  as select list

and I will create variable

Let vSelectList= peek('Select_List',0,'Temp_SelectList');

And variable I can use in select statement.

aarkay29
Specialist
Specialist

May be this

If(Val='E','Sum('&Val&') as '&Val,Val) as Dim1

avinashelite

still not clear ...you could try with the inline table to get the desired format