cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
cdawidow
Helper III
Helper III

Unable to Connect a unique column to sales data!

 Problem1.PNG

 Hi guys, new to power bi but I am having trouble filtering my sales data with my contract data.  I want to break up my contract name sales based on product line and prod no but every calculation I get is wrong.  Any suggestions?

1 ACCEPTED SOLUTION

@cdawidow ,
First step, add new columns in all these 3 tables: Contracts, Product Header, Sales (2).
This new column formula: prod line & " " & prod No
Then you create join between these tables based on that new column and make sure this relationship is active.
Note: make sure when you check data that table Product Header has distinct values (no duplicates).

View solution in original post

3 REPLIES 3
nandic
Memorable Member
Memorable Member

Hi @cdawidow ,

 

Could you share some screenshots, at which level (relationship, measure) do you get errors?
What is relationship between these two tables? If relationship is based on multiple columns, you should make composite key (concatenate multiple columns in one column on both tables) and make join using this composite key.

 

If neither of these two tables have unique composite key then you should create third table which will have unique key so that you can make join between tables.

Cheers,
Nemanja

Hey!  thanks for your response, I made some modifications but still, it is not working.  I tried to create a one to many relationship but for romse reason power bi will not allow me to do so.

 

 

help.PNG

 

@cdawidow ,
First step, add new columns in all these 3 tables: Contracts, Product Header, Sales (2).
This new column formula: prod line & " " & prod No
Then you create join between these tables based on that new column and make sure this relationship is active.
Note: make sure when you check data that table Product Header has distinct values (no duplicates).

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors