cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
plaralema
Advocate II
Advocate II

Hi ! I Need help creating a table using pivot (I guess)

Hi there, i need some help creating a table.

I have data in tabular way, as shows in picture 1, and i need to create a overview table with a deviation column like i show in second picture example1.png

example2.png

Is any way to create this ? i guess it might work with double pivoting? but i'm not sure.

Please help 😄 thank you very much

 

 

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @plaralema ,

 

You need to unpivot columns first, then spilit an attribute column by space, and then pivot again.

Detailed steps:

1.Select the four columns and click "Unpivot Columns".

3.png

vstephenmsft_0-1678331072373.png

2.Split by space.

vstephenmsft_1-1678331085127.png

vstephenmsft_2-1678331113928.png

vstephenmsft_3-1678331126493.png

3.Select the Attribute.1 column and then click "Pivot Column".

vstephenmsft_4-1678331159493.png

4.Set up as follows and click OK.

vstephenmsft_5-1678331192208.png

vstephenmsft_6-1678331211867.png

 

Final result is as follows. It's displayed as a matrix visual.

vstephenmsft_7-1678331888066.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

View solution in original post

2 REPLIES 2
plaralema
Advocate II
Advocate II

Thank you a lot for your detailed expression, i'll try it right away!

v-stephen-msft
Community Support
Community Support

Hi @plaralema ,

 

You need to unpivot columns first, then spilit an attribute column by space, and then pivot again.

Detailed steps:

1.Select the four columns and click "Unpivot Columns".

3.png

vstephenmsft_0-1678331072373.png

2.Split by space.

vstephenmsft_1-1678331085127.png

vstephenmsft_2-1678331113928.png

vstephenmsft_3-1678331126493.png

3.Select the Attribute.1 column and then click "Pivot Column".

vstephenmsft_4-1678331159493.png

4.Set up as follows and click OK.

vstephenmsft_5-1678331192208.png

vstephenmsft_6-1678331211867.png

 

Final result is as follows. It's displayed as a matrix visual.

vstephenmsft_7-1678331888066.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

Helpful resources

Announcements
Exciting changes

Power BI Community Changes

Check out the changes to the Power BI Community announced at Build.

May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Kudo Data Story carousel

Data Stories Gallery

Visit our Data Stories Gallery and give kudos to your favorite Data Stories.

Top Solution Authors