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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
AlexDECG
Regular Visitor

Compile table from multiple tables in DAX

Hello everyone,

 

I am fairly new to Power BI and DAX and I have been trying to find a way to create a summary table from more tables in DAX with no success Smiley Sad

 

We want to be able to better schedule visits to customers premises. We came up with a long series of criteria that should help us decide such as number of staff, number of machines and premises size. Each criteria has a score. 

 

This is a simplified version of what we built so far.

 

Sum of scores.PNG

Could you please point me in the right direction?

 

Thanks in advance

 

Alex

 

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Try these steps:

  1. Append data from all 3 Tables to create 1 large range
  2. Remove 3 columns - Number of staff, Number of Machines and Premises Size
  3. Select the first two columns and select Unpivot other columns
  4. Click on Close and Apply in the Query Editor
  5. Build a Matrix visual and drag File Date, Customer ID to the row labels.  Drag Attribute column to the column labels
  6. Write this measure: Scores = SUM(Data[Value])

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Try these steps:

  1. Append data from all 3 Tables to create 1 large range
  2. Remove 3 columns - Number of staff, Number of Machines and Premises Size
  3. Select the first two columns and select Unpivot other columns
  4. Click on Close and Apply in the Query Editor
  5. Build a Matrix visual and drag File Date, Customer ID to the row labels.  Drag Attribute column to the column labels
  6. Write this measure: Scores = SUM(Data[Value])

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Good morning!

Worked perfectly! Many thanks!

Just one last question and apologies for not making this clear in my initial request.

I need to divide the total by a factor to obtain a percentage, so the standard matrix total function does not work.

If I add the Total as a measure to the matrix then I get an extra total column before each of the other criteria.

Can I get "my" total showing in the matrix without the extra columns?

Thanks!

Hi,

You are welcome.  I do not understand your requirement.  At max, we can have a different calculation running in the Total column.  If that is what ou want, then share the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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