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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
cole_lehmkuhler
Helper II
Helper II

Using information from another table

Okay I have 4 tables. A "sales query" table which has 40k rows and is sales information about sales for a quarter and there are columns for 'account #' and 'control #', but no column for customer group(this will make much more sense once you read the rest of this). I have a "total sales by account #" which is just 2 columns one for account # and one for the sales of that account number. I also have a "total sales by control #" table which is also 2 columnsand has control # and total sales again. To explain each account # is a customer that has purchased in the last quarter. control #'s are a group of these account #'s, so the total sales of the control #'s are just a sum of the account numbers they are grouped with. Now I have a 4th table called "customer group table." I need the sales amounts per customer group, but I can't figure out how to get that information from these other tables. All the customer group table has on it is control numbers matched up to which customer group they belong to, but a group of control numbers makes up a customer group so obviously there are repeats in the customer group column. I need to know how to use the sales from either the control# table or the sales query table to get sales for each customer group.

1 ACCEPTED SOLUTION
Nhallquist
Helper V
Helper V

I think you can do this.  I would left-join the Control# Total Sales numbers to the Control numbers in the Customer Group table.  This should be a 1-to-1 relationship based on Control number.  Then, you can Sum the Control number sales by Group in the Power BI app.

 

I think that will work, based on what I read above.  If this won't work, let me know and we'll keep working on it.

 

Nate

View solution in original post

2 REPLIES 2
Nhallquist
Helper V
Helper V

I think you can do this.  I would left-join the Control# Total Sales numbers to the Control numbers in the Customer Group table.  This should be a 1-to-1 relationship based on Control number.  Then, you can Sum the Control number sales by Group in the Power BI app.

 

I think that will work, based on what I read above.  If this won't work, let me know and we'll keep working on it.

 

Nate

Right again! Thanks for the help!

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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