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

DAX: Pivot table with multiple values.

I have a table as below

 

Emp ID   |Managers  |Roles

ABUnit head
ACBiz HR
ADBiz HR
AEBiz HR
AFOps Controller
AGBiz HR Manager
AHBudget Approver

 

 

Using DAX how can we pivot this table as below output

 

Emp ID |Unit Head |Biz HR 1 |Biz HR 2 |Biz HR 3|Ops Controller |Biz HR Manager |Budget Appover

 

A          B                C             D             E             F                       G                         H

Any help please 

 

Mohan V

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@AlB I got the solution buddy,

To get the ranks i tried the below dax,

 

Capture1.JPG

 

And then i pivoted the table using below dax,

 

Capture1.JPG

 

The only issue with this workaround is, each time i have manually add the column for the n no of emp id's

 

And i tried your dax, sorry, it didnt worked, the Ranks2 column is what the output in above image 

 

Thanks,

Mohan V

View solution in original post

12 REPLIES 12

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.