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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Brysonds
Helper III
Helper III

Help with Transposing / Pivoting Table

Hi! I would like to transform a table. Is it possible based on the information provided below?

 

Here is my current table - notice there are two unique users that belong to the 'North' Division.

Current Table.JPG

 

I would like to the table to look like this:

New Table.JPG

 

The goal of the transformation is to take the 'Division' column which contains duplicates (because of multiple people belonging to that Division) and instead have a unique list. Then for each additional 'Authorized User' beyond 1, a new column would be created as needed (Authorized User2, Authorized User3, etc.).

 

Is this possible?

 

1 ACCEPTED SOLUTION
Sean
Community Champion
Community Champion

@Brysonds

1) Add Column tab - Add Index From Zero

2) Transform Tab - Standard dropdown - Modulo - enter 2 in the dialog

3) select Index Column - Pivot Column - Values Column - select Authorized User - Advanced Options - Do Not Aggregate

4) Rename the 2 new columns

QE - Add Index and Pivot.gif

 

View solution in original post

3 REPLIES 3
Sean
Community Champion
Community Champion

@Brysonds

1) Add Column tab - Add Index From Zero

2) Transform Tab - Standard dropdown - Modulo - enter 2 in the dialog

3) select Index Column - Pivot Column - Values Column - select Authorized User - Advanced Options - Do Not Aggregate

4) Rename the 2 new columns

QE - Add Index and Pivot.gif

 

Hi @Sean.

 

Аctually this model works only if there is no more than two values ​​for one parameter. If there are three or more values, then the appropriate number of values ​​should be set in Modulo. And this is not convenient if the data is updated.

This worked perfectly!!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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