cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
koorosh
Helper IV
Helper IV

Transform

Hello experts, How to get the down table from the above one in the image, please?

 

CROSS.JPG

 

 

1 ACCEPTED SOLUTION
Portrek
Resolver III
Resolver III

Hi.

 

In Power query select your first column and choose the option Unpivot Other Columns

 

Power-BI-Unpivot-Column-730x257.png

 

Best regards.

View solution in original post

3 REPLIES 3
v-yalanwu-msft
Community Support
Community Support

Hi @koorosh ,

 

As they said, you could use unpivot in power query; and another method is to create a new table through the following form:

Newtable =
VAR _new1 =
    SUMMARIZE ( 'Table', [Company Name], [Service1], "Type", "Service1" )
VAR _new2 =
    SUMMARIZE ( 'Table', [Company Name], [Service2], "Type", "Service2" )
VAR _new3 =
    SUMMARIZE ( 'Table', [Company Name], [Service3], "Type", "Service3" )
RETURN
    UNION ( _new1, _new2, _new3 )

The final output is shown below:

v-yalanwu-msft_0-1621850254245.png

 

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.  

MintuBaruah
Helper II
Helper II

Hi @koorosh 

 

I tried the following solution.

 

First, you need to select the columns and then unpivot them(refer to screenshot 1).

Screenshot 1:

ComAns2_1.jpeg

 

Which will give you the following output(refer to screenshot 2):

Screenshot 2:

ComAns2_2.JPG

 

 

If you find the solution useful please mark my post as a solution!
In doing so, you are also helping me. Thank you!

Mintu Baruah

Portrek
Resolver III
Resolver III

Hi.

 

In Power query select your first column and choose the option Unpivot Other Columns

 

Power-BI-Unpivot-Column-730x257.png

 

Best regards.

View solution in original post

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors