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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Jameswh91
Helper III
Helper III

Best way to get the cost price for bundle products

Hi I'm looking to get the cost prices for bundle products for our sales data. Unfortunately the list of cost prices i have only show the cost for single items. Is there a dax calculation that can account for the bundle sku code of X2 or X3 to calculate the cost from the single price item?

 

I have attached an image of the data.

 

Capture7.PNG

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @Jameswh91,

You can create a calculated column to multiply the 'unit price' with 'bundle qty' field values to get the total price. If they are not stored in the same table, you can use lookupvalue function to get the bundle qty based on the current 'SKU code'.

LOOKUPVALUE function (DAX) - DAX | Microsoft Docs

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @Jameswh91,

You can create a calculated column to multiply the 'unit price' with 'bundle qty' field values to get the total price. If they are not stored in the same table, you can use lookupvalue function to get the bundle qty based on the current 'SKU code'.

LOOKUPVALUE function (DAX) - DAX | Microsoft Docs

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Greg_Deckler
Super User
Super User

@Jameswh91 So what is the logic for that calculation?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.