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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors