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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

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!

1 ACCEPTED SOLUTION
harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

You will need to unpivot your table.

 

Select First 2 column and then click on Unpivot Other Column

 

1.jpg

 

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

 

2.JPG

 

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

 

 

View solution in original post

5 REPLIES 5
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!

Believe this post is duplicated with the one below:

 

https://community.powerbi.com/t5/Desktop/Transformation-calculated-table/m-p/1307528


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

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

amitchandak
Super User
Super User

@Anonymous , you have an option in edit query /data transformation mode.

Refer document

https://radacad.com/pivot-and-unpivot-with-power-bi
Transpose : https://yodalearning.com/tutorials/power-query-helps-transposing-data/

harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

You will need to unpivot your table.

 

Select First 2 column and then click on Unpivot Other Column

 

1.jpg

 

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

 

2.JPG

 

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

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.