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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Anonymous
Not applicable

Calculating gross sales as % of total in different table

Hello, 

 

I have two tables, Orders and Kit Cost Breakdown, that appear below:

 

JenniferWarner_1-1628530632988.png

 

Where a the Product Type in the Orders table is "Kit", I need to calculate the gross sales per Kit Comp ID in the Kit Cost Breakdown table. The last column in the Kit Cost Breakdown table is the expected result I am trying to calculate. If the Product Type in the Orders table is "Stock", then there is no further calculation needed for the Gross Sales $. I need to be able to report the Gross Sales $ per Kit Comp ID in the Kit Cost Breakdown Table.

 

Thanks!

 

 

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@Anonymous 

maybe you can create a column

Column = if(RELATED('Order'[Product Type])="Stock",RELATED('Order'[Gross Sales]),RELATED('Order'[Gross Sales])*Kit[Comp% of Cost])

pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

1 REPLY 1
ryan_mayu
Super User
Super User

@Anonymous 

maybe you can create a column

Column = if(RELATED('Order'[Product Type])="Stock",RELATED('Order'[Gross Sales]),RELATED('Order'[Gross Sales])*Kit[Comp% of Cost])

pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.