Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Help please PIVOT / AGGR / SET Analysis

Hi All,

   I need a help here. I have a dataset as shown below. The data is coming from 2 diffrent source SYS1 and SYS2. The Column SOURCE tells where the record is coming from. and now i have to render this data in pivot table with extra colum as shown below (diagram2)

I.e what i want is if you see Column Output in diagram 2. It should show the from where the data is come from

Example:

   A E I S are presenet in both system so Output is SYS1 and SYS2

B G O U olny in SYS2 So output in SYS2

Would you please paste expression here as im not using license version.

   

SourceCol1Col2Col3Col4
Sys1AEIS
Sys2AEIS
Sys2AEMT
Sys1AFNU
Sys2BGOP
Sys1CHPW
Sys2CHPW
Sys1CHPX
Sys2CHPX
Sys2DIQY
Sys1DJRZ
Sys1DKRAA
Sys2DKRAA

   

Level1Level2Lev2l3Level4Output
AElSSys1, Sys2
MTSys1
FNUSys2
BGOVSys1
CHPWSys1,Sys2
CXSys1,Sys2
DIQYSys2
DJRZSys1
DKAASys1,Sys2
5 Replies
ChennaiahNallani
Creator III
Creator III

try like below

exp:

Concat( Distinct Source, ',')

Capture.PNG

Sergey_Shuklin
Specialist
Specialist

Hello!

Create pivot table with four dimensions and one expression with concat() function.

Smth like that:

=Concat(distinct Source, ',')

Anonymous
Not applicable
Author

Thanks Sergey. Ya it helped.

If i want to show the output value in Mouse hover in Col4

ChennaiahNallani
Creator III
Creator III

Capture.PNG

Sergey_Shuklin
Specialist
Specialist

Col4? Where you have S, T, U values?

If so, you can use calculated dimension Col4:

=Col4

&chr(10)&

aggr(

     Concat(distinct Source, ',')

     ,Col1

     ,Col2

     ,Col3

)