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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
drbr
Helper II
Helper II

2 measures for inventory qty of BOM item father and BOM item child

Can someone help with 2 measures? I guess the second measure would be just a slight modification of the first one...

 

Thank you!

Scenario:

mfBsKLU

1 ACCEPTED SOLUTION
drbr
Helper II
Helper II

@amitchandak I've managed to solve it. It came out pretty straightforward at the end. Thank you for your efforts.

 

Measures:

Inventory item @ItemBOM = IF(NOT ISEMPTY('Item BOM'),CALCULATE(SUM('Inventory today'[Qty]),REMOVEFILTERS('Item secondary')))

 

Inventory secondary item @ItemBOM = IF(NOT ISEMPTY('Item BOM'),CALCULATE(SUM('Inventory today'[Qty]),REMOVEFILTERS('Item')))

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@drbr , That is great. Kudos to you. Marking your reply as answer

drbr
Helper II
Helper II

@amitchandak I've managed to solve it. It came out pretty straightforward at the end. Thank you for your efforts.

 

Measures:

Inventory item @ItemBOM = IF(NOT ISEMPTY('Item BOM'),CALCULATE(SUM('Inventory today'[Qty]),REMOVEFILTERS('Item secondary')))

 

Inventory secondary item @ItemBOM = IF(NOT ISEMPTY('Item BOM'),CALCULATE(SUM('Inventory today'[Qty]),REMOVEFILTERS('Item')))

amitchandak
Super User
Super User

@drbr , I think secondary inventory Should be via BOM, this needs a little bit of modeling. Checking what best can be done

amitchandak
Super User
Super User

@drbr , Can item and item secondary join to same item_id in inventory ?

How These measures are calculated.

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Hi. Here is a link to a pbix file: https://fil.email/b8WyDoTX (valid for 7 days)

Thank you!

Comment: This is new file. Previous had one wrong relation!!!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.