Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Transformation / calculated table

Dear Community,

 

I look for solution for the following problem.

 

1. I have a table with raw data - e.g. shipments form A-to-B with various service providers and their offered prices.

 

ShipmentGrouping attributePrice - service provider 1Price - service provider 2
shipment1Group A1015

shipment2

Group B2010
shipment3Group A3540
shipment4Group B2525

 

2. For evaluation purpose I would like to create an other table structure with some aggregation - derived from Table1.

 

Grouping attributeService providerPrice (sum)
AService provider145
AService provider255
BService provider145
BService provider235

 

How can I create Table2 from Table1 in PowerBI desktop? 🤔

 

Every suggestion, idea is highly appreciated!

 

Thank you!

  • Anonymous's avatar
    Anonymous
    6 years ago

    Hi Anonymous ,

     

    You will need to unpivot your table.

     

    Select First 2 column and then click on Unpivot Other Column

     

     

    You cna then just pull the columns in the visualization pane to get your results.

     

     

    Regards,
    Harsh Nathani
    Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

     

     

5 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    You will need to unpivot your table.

     

    Select First 2 column and then click on Unpivot Other Column

     

     

    You cna then just pull the columns in the visualization pane to get your results.

     

     

    Regards,
    Harsh Nathani
    Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

     

     

  • Anonymous's avatar
    Anonymous
    Not applicable

    Dear Community,

     

    I look for solution for the following problem.

     

    1. I have a table with raw data - e.g. shipments form A-to-B with various service providers and their offered prices.

     

    ShipmentGrouping attributePrice - service provider 1Price - service provider 2
    shipment1Group A1015

    shipment2

    Group B2010
    shipment3Group A3540
    shipment4Group B2525

     

    2. For evaluation purpose I would like to create an other table structure with some aggregation - derived from Table1.

     

    Grouping attributeService providerPrice (sum)
    AService provider145
    AService provider255
    BService provider145
    BService provider235

     

    How can I create Table2 from Table1 in PowerBI desktop? 🤔

     

    Every suggestion, idea is highly appreciated!

     

    Thank you!

  • Anonymous's avatar
    Anonymous
    Not applicable

    Thank you very much for both of you for your help!