Forum Discussion

LakiCG's avatar
LakiCG
Frequent Visitor
8 years ago
Solved

Calculated table with columns based on the values from another table

Hi,

 

Does anyone know how I can transform next table which is data source to the second table shown below.

This is my data source. As you can see, there are multiple rows referring to the sam transaction.

TransactionIDNameRoleLocations
001John SmithSales PersonNew York
001David JohnsonManagerNew York
001Alex BermanBuyerNew York
002Mike TomphsonSales PersonBoston
002Dan JordanManagerBoston
002Marko BlackBuyerBoston

 

I would like to transform this sourcing table in Power BI to the table below (based on the people's role from the first table, I want to create the new columns, so each transaction is shown just in one row). This is what I want to see in Power BI:

TransactionIDSales PersonManagerBuyerLocations
001John SmithDavid JohnsonAlex BermanNew York
002Mike TomphsonDan JordanMarko BlackBoston

 

Please does anyone has an idea how to achieve this?

 

Many thanks!

Laki

2 Replies