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
renatopnovaes
Helper I
Helper I

Check another table

I'm setting up a conference between two tables. The target table and the sales table. I did a merge, I was able to say if the goal was completed or not. But if the seller sells the same product one more time, a merged line will be added.

 

Sell Table

CustomerValue
41Water
41Lemon
41Water
41Orange

 

Goals Table

 

CustomerValue
41Water
41Grape
41Orange
41Apple

 

I would like to make this conference, but if the seller sells the same product twice. Duplicate the product and I can't tell you what the seller's goal status is like. Can I make this conference without the data being repeated?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

As SELLOUT_D is your right table, in your join step, you can surround SELLOUT_D like this:

 

Table.NestedJoin(#"Metas Julho", {"CLIENTE", "PRODUCTO"}, Table.Distinct(SELLOUT_D, {"CODIGO", BASE_SKU_GRUPO"}), {"CODIGO", BASE_SKU_GRUPO"}, "SELLOUT_D", JoinKind.LeftOuter)

 

--Nate

View solution in original post

5 REPLIES 5
renatopnovaes
Helper I
Helper I

@Anonymous I couldn't implement this formula...

 

renatopnovaes_0-1628858558626.pngrenatopnovaes_1-1628858643881.png

In this step by step I created a sales verifier, if it contains the customer code in the SELL VERIFY column it means that I sold a product to that customer. But I only need to sell one product to the customer, so... I wanted to remove the repeaters.

renatopnovaes_2-1628858970685.png

 

Sorry guys for the bad wording of my question, I'll improve!

 

Anonymous
Not applicable

As SELLOUT_D is your right table, in your join step, you can surround SELLOUT_D like this:

 

Table.NestedJoin(#"Metas Julho", {"CLIENTE", "PRODUCTO"}, Table.Distinct(SELLOUT_D, {"CODIGO", BASE_SKU_GRUPO"}), {"CODIGO", BASE_SKU_GRUPO"}, "SELLOUT_D", JoinKind.LeftOuter)

 

--Nate

renatopnovaes
Helper I
Helper I

Yes, I merged. This image below merged the goals and added the sales. But when a customer repeats the purchase of a product from the target, it would double...

renatopnovaes_0-1628110360837.png

After fusion and duplicate sells

 

renatopnovaes_1-1628110439882.png

How to get good help fast. Help us help you.

How To Ask A Technical Question If you Really Want An Answer

How to Get Your Question Answered Quickly - Give us a good and concise explanation
How to provide sample data in the Power BI Forum - Provide data in a table format per the link, or share an Excel/CSV file via OneDrive, Dropbox, etc.. Provide expected output using a screenshot of Excel or other image. Do not provide a screenshot of the source data. I cannot paste an image into Power BI tables.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
edhans
Super User
Super User

What do you mean conference? You mean relationship? 
How did you merge - on the customer or the customer and product field?
What do you want the results to look like? None of your data has duplicates as you describe in your question.

How to get good help fast. Help us help you.

How To Ask A Technical Question If you Really Want An Answer

How to Get Your Question Answered Quickly - Give us a good and concise explanation
How to provide sample data in the Power BI Forum - Provide data in a table format per the link, or share an Excel/CSV file via OneDrive, Dropbox, etc.. Provide expected output using a screenshot of Excel or other image. Do not provide a screenshot of the source data. I cannot paste an image into Power BI tables.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

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 Kudoed Authors