I just want to understand if there a way to unpivot table (data) in Gainsight?
For example, if you look at this image; ID1 has values for ABC and XYZ and ID2 has only for DTE. Left hand side the data we have and on the right hand side is what we need to have
Thanks,
Page 1 / 1
I believe you’re asking a similar question as this? Maybe it will help
@spencer_engel In the above example, all columns are combined in one, but that is not what I am trying to achieve. Basically, I am looking for unpivoting some columns.
@jigar.vyas I’m not sure if you can do anything else besides a multiple Union...
Dataset 1, Transform. Select the name and first column. Rename it from ABC to version Do a case evaluation, string output, call it Unpivot . If field ABC is not null, ABC, else null
Dataset 2 transform, repeat: select the name and second column. Rename it from XYZ to version Add a a case evaluation, string output, call it Unpivot . If field XYZ is not null, YXZ, else null
Do this until all your columns are “unpivoted”. Union dataset 1 with 2, then that with 3. Having all your datasets with the same column names makes this part easier. Do a last transform to filter version != null
@romihache I think you’re right. That’s the only way here though lengthy. Expected straight forward option like we have in excel using power query editor where can just select the columns to be unpivoted and select the option Unpivot Columns and everything is done in a few seconds. I wish Gainsight had it but they can take it a feature request.
@jigar.vyas I couldn’t find an idea along those lines, you should submit one
If you ever had a profile with us, there's no need to create another one. Don't worry if your email address has since changed, or you can't remember your login, just let us know at community@gainsight.com and we'll help you get started from where you left.
Else, please continue with the registration below.