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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors