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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Modeling Help

Hi,

I need help with modeling my data model to give certain results.

So the tables I have are:

  • Item Master Table
  • Sales Data
  • Product Recipe Data

Item Master Table

Item Master
A
B
C
1
2
3

Sales Data

ItemSalesBase Currency
A100GBP
A200EUR
B300GBP
B400EUR
C500GBP
C600EUR

 

Product Recipe Data

Parent ItemRecipe Item
A1
A2
A3
B2
B3
C1
C2

My Model currently:

8048237_0-1681395398604.png

What I want to do:

8048237_1-1681395467238.png

When I search for a Recipe Item Number, I want a list of all Parent Items associated with it and then YTD Sales of the corresponding Parent Item.

 

Example:
When you search "2", you should get a list of {"A", "B", "C"}.

 

Please help!

 

Thanks & Regards.

2 REPLIES 2
Anonymous
Not applicable

Hi,

I checked the file you shared. My Item Master table is not the way you've created it.

8048237_0-1683117376596.png

 

Rather, it is this way, which changes how the filtering works.

8048237_1-1683117414497.png

 

v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

You can try the following methods.

Measure:

Sales YTD = 
CALCULATE ( SUM ( 'Sales Data'[Sales] ),
    FILTER ( 'Sales Data',
        [Item] = SELECTEDVALUE ( 'Product Recipe Data'[Parent Item] )
    )
)

vzhangti_0-1681710367084.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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