The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

Transform table to result view

pallavpallav Member Posts: 39 Contributor II
edited June 2020 in Help
Hi i have table in this below form.

description

Category                    

     count


Z
 
 Available

27.0
Z                                       Not Available           14169.0
Z Less Available 863.0
Y Available 50.0
Y Not Available 58971.0
Y Less Available 888.0
OTHER Available 380.0
OTHER Not Available 272343.0
OTHER Less Available 3231.0
X Available 1564.0
X Not Available 1313.0
X Less Available 3087.0


How can i transform same into result view like below:

description

                      Avaialble

                    Less Available                 

Not Available


X
                                1,564                                  3,087            1,313
Y                                    50                                     888            58,971
Z                                      27                                     863             14,169
OTHER                                    380                                  3,231             272,343

Best Answers

Answers

  • pallavpallav Member Posts: 39 Contributor II
    @hbajpai - I was trying pivot but it is asking one of aggregation . but i need the same value to be transposed and cant leave aggregation empty.


    According to you i should use pivot operator
    step1. Groupby attribute - description and cateogry 
    aggregation - sum over count..

    I tried but it is not giving me desired result.
  • pallavpallav Member Posts: 39 Contributor II
    @hbajpai-Thanks i got it.
  • pallavpallav Member Posts: 39 Contributor II
    @hbajpai - Adding to this this is giving column name such as sum(count)........    when i am trying to rename the names it is not giving me all three attribute to rename how to rename all three column here.
  • pallavpallav Member Posts: 39 Contributor II
    @hbajpai      In Replace i am getting only one option for all three atribite
  • hbajpaihbajpai Member Posts: 102 Unicorn
    @pallav
     I am unable see the image and understand the issue. Can you elaborate more?
    Best,
    Harshit
  • pallavpallav Member Posts: 39 Contributor II
    @hbajpai





    In this image how to rename all the column i want only "Available"  as column name Not "Sum(count)_Available" same for less available and not available as well
  • hbajpaihbajpai Member Posts: 102 Unicorn
    There is a bug here.

    I think, one workaround would be to save the file and use the stored output to rename the column names. 
    Let me know if that works for you.

    Best,
    Harshit
  • pallavpallav Member Posts: 39 Contributor II
    @hbajpai in my case only ope option is coming 
Sign In or Register to comment.