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! Request 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
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