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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
9036273024
New Member

DAX function - Index and match

16964238384786594163136193256197.jpg

Dear friends, 

 

I have Two tables with columns respectively.

1. Doctor name and service names (Column  names respectively) 

2. Matrix Table -

Doctor name - in column

Service name in first row. (Doctor payment for each doctor differs for every service so used matrix table for the same) 

 

I want use matrix table and pull payout of each doctor service wise.  (In excel I use index and match formulae to pull that information) 

 

Please help to fill doc pay column

 

1 ACCEPTED SOLUTION
ChiragGarg2512
Solution Sage
Solution Sage

@9036273024 , For second table when uploaded to powerBI will convert the first row that contains service names to column headers. So there will be two tables in PowerBI 

1. Table with doctor name and services they provide two columns.

2. With doctor name and columns with header name being services[s1, s2, s3, etc. being columns].

 

To change the second from happening, go to powerQuery[transform data] and select every column except doctor name and unpivot the table.

Now, in matrix visual rows can be doctors name, columns can be the new column that contains every service and values can be price.

 

This will create a matrix visual of a doctor and service name.

Thank You.

View solution in original post

1 REPLY 1
ChiragGarg2512
Solution Sage
Solution Sage

@9036273024 , For second table when uploaded to powerBI will convert the first row that contains service names to column headers. So there will be two tables in PowerBI 

1. Table with doctor name and services they provide two columns.

2. With doctor name and columns with header name being services[s1, s2, s3, etc. being columns].

 

To change the second from happening, go to powerQuery[transform data] and select every column except doctor name and unpivot the table.

Now, in matrix visual rows can be doctors name, columns can be the new column that contains every service and values can be price.

 

This will create a matrix visual of a doctor and service name.

Thank You.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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