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! Learn more

Reply
Anonymous
Not applicable

Need help with comparinmg 2 columns

Hi there,

 

I have two table A and B.
Now i would like to sum up the Spend for all parts in Table B with a particular colour provided the parts are present in Table A.

Table A
Supplier, Part


Table B
Supplier,Part,Colour,Spend .

The two tables are related on the Supplier though but not Part.

Have not mentioned the other columns here..

8 REPLIES 8
Syndicate_Admin
Administrator
Administrator

Don'@bespeck,

I need more details. Could pls provide an example, or share your pbix files. Remember to delete sensitive information.

Best regards

Lucien

v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

Need more details.Could pls provide a sample ,or share your pbix files.Remember to remove the confidential information.

Best Regards

Lucien

Anonymous
Not applicable

@v-luwang-msft 

Thanks for responding.Yes it is a one to many model and i somehow managed it.I used the in operator to see if the part in B is in A.

selimovd
Super User
Super User

Hey @Anonymous ,

 

how is the relationship between the two tables?

Is it a one to one relationship or one to many? Please post a screenshot of the data model, then I can help you with the measure.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 
Anonymous
Not applicable

@selimovd

Thanks for responding.Yes it is a one to many model and i somehow managed it.I used the in operator to see if the part in B is in A.

If it's a one to many relationship you shouldn't have a problem.

Then one supplier has also has only one part. Then you can just pull all the columns in a table and get the result.

 

Or where are you struggling?

 

Otherwise please provide the tables, picture of the relationship and the desired result.

We want to help you, but you have to give the information...

amitchandak
Super User
Super User

@Anonymous , Create a concatenated key

key = [Supplier] & " " & [Part]

If that can create 1-M join between two table

 

then you can filter part using A and color using B

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak Thanks for the reply but i didnt want to use the combination  of supplier and Part to join the two tables as they already have a relation with the Supplier.

I wanted to create a measure for the sum of the spend based on the colour and part that match with A.

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