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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Help with using all values from many-to-many relationship

Hello,

 

I have this model which connects parts to models and we are looking at cumulative sales (already calculated in data table)  of all models that are connected to each part. We have the part to model table as follows showing which part is used by which model.

kamsingh11_1-1659716633929.png

 

With the help of this community, we were able to get the right totals on models for specific part as shown in the attached file. However, we realized that we are also interested in getting cumulative sales of models that were not sold in the selected date. As long as a model is sold in any of the last 10 years, we would like to consider it. So, in my output, we would also like to see M4 when we select 2022 for Part A01 as an example apart from M1 & M2 because A01 was used in Model M4 10 years ago. It would be true to include it if it was sold last year or any previous years until previous 10 years even if it was not sold in current chosen date.

 

kamsingh11_0-1659716503603.png

 

kamsingh11_2-1659717559009.png

 

 

PBI File: https://drive.google.com/file/d/15ProVCYds0H4peb6INQzHciay9fFxoek/view?usp=sharing

 

 

Anhy help is highly appreciated. 

 

Thanks!

 

 

 

 

6 REPLIES 6
lbendlin
Super User
Super User

I would propose a slightly slimmer data model

 

lbendlin_0-1659813758345.png

For any "not sold in a certain timeframe"  questions you need to use disconnected tables and/or cross joins.

Anonymous
Not applicable

Thanks @lbendlin!

Can you please show how we can see M4 as well in above example? That would be super helpful! Thank you!

 

For any "not sold in a certain timeframe"  questions you need to use disconnected tables and/or cross joins.

Anonymous
Not applicable

So, are you sayijng, I would need to create a separate table consisting of all models. I am still not able to figure this out. Can you please help on this small example that I have provided with required measures or queries. That would be helpful!

 

My real data is huge and trying to use above example for my purpose. 

 

You need a disconnected calendar table, not a disconnected products table.

Anonymous
Not applicable

I am not able to figure this out still. If someone can please help me achieve the output by solving this small sample data in .pbi file, it will be super helpful. 

 

I am thinking performing crossjoin on Date table & Model_Sales might work, but because both of these tables have date, I am not sure how to proceed with cross-join.

 

Thanks a bunch in advance!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.