Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Community,
I have data like,
Dim | Val |
A | E |
B | D |
C | E |
D | D |
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:
Dim1 | Val |
sum(A) As A | E |
B | D |
sum(C) As A | E |
D | D |
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) ??
could you post a better example??
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.
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.
May be this
If(Val='E','Sum('&Val&') as '&Val,Val) as Dim1
still not clear ...you could try with the inline table to get the desired format