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

Transform 1 column into multiple columns

How can i transform data with actuals and targets in same column into multiple columns where they are separated in Power BI?

 

cap1.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

1. Copy the Original table using Reference ( Right click your query in Power Query to get this) , apply filter for Target.

2. Merge ( In Power Query Home-> Combine -> Merge Queries) using the required column using the required column( like Period, Region,Market)

3. Expand and Add the required column.

4. Right click the original source and click"Enable Load" to avoid loading the unwanted data into your model.

 

Thanks
Raj

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

1. Copy the Original table using Reference ( Right click your query in Power Query to get this) , apply filter for Target.

2. Merge ( In Power Query Home-> Combine -> Merge Queries) using the required column using the required column( like Period, Region,Market)

3. Expand and Add the required column.

4. Right click the original source and click"Enable Load" to avoid loading the unwanted data into your model.

 

Thanks
Raj

jthomson
Solution Sage
Solution Sage

One way would be to duplicate your query, then trim one version down to just actuals and the other down to just targets. Then you can look to join one query to the other using the common fields (looks like your first three columns, not sure if Power BI actually got round to joining on multiple columns at once so concatenate them together if needed) and it'll create new columns in your final table. Probably a more efficient way to do this, but this ought to at least work

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.