cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
bookie Frequent Visitor
Frequent Visitor

link sales of former product to succeeding product

Hi there, 

 

I am trying to link sales on one product (A) to the sales of another product (B) where product (A) is the predecessor of product (B). 

Both of these products are maintained in the same table which contains ~ 30K records. 

A variant of this would be to add product (C) which is the successor of product (B). In essence all 3 products are the same, yet next iterations / improved versions of the 1st version. 

The sales for each of these products are maintained in a different table, which is linked by the product ID. Please see below examples of tables and the intended output.

 

table1 pre-succ.png

 

 

 

 

 

 

 

Note that succeeding products B&C have multiple predecessors. This is not the norm, mostly it'd be one product succeeding one, but it does occur. 

table2 pre-succ.png

 

 

 

table3 pre-succ.png

 

 

 

the periods 4 and 8 show overlapping sales of the predecessor and successor. For these periods, the total value could either be the sum of the overlapping sales or the max for example of the predecessor / successor values. 

 

I've not listed the table which contains the sales. It's a 'typical' sales table though with product id, quantities and dates. 

So, in short I'm looking for a way for power bi to create the last table for me. (labelled 'intended output/ result). 

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: link sales of former product to succeeding product

Hi @bookie ,

You could accept your answer as a solution so that we can close the thread.

 

Best Regards,

Xue Ding

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

View solution in original post

4 REPLIES 4
Community Support Team
Community Support Team

Re: link sales of former product to succeeding product

Hi @bookie ,

Can you please share a dummy file?  Then we can understand clearly about your data model.

 

Best Regards,

Xue Ding

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

bookie Frequent Visitor
Frequent Visitor

Re: link sales of former product to succeeding product

Hi @v-xuding-msft 

 

thanks for your response. in the meantime I've had someone in our office help out. I can't explain really how, but I've got my successors correctly linked to my predecessors and are able to work with the output now. 

 

again, your intended help is well appreciated. 

 

Community Support Team
Community Support Team

Re: link sales of former product to succeeding product

Hi @bookie ,

I'm glad that it is solved. If you fully understand it someday,  welcome to share your own solution.  More people will benefit from here.

 

Best Regards,

Xue Ding

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

Community Support Team
Community Support Team

Re: link sales of former product to succeeding product

Hi @bookie ,

You could accept your answer as a solution so that we can close the thread.

 

Best Regards,

Xue Ding

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

View solution in original post

Helpful resources

Announcements
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 181 members 1,742 guests
Please welcome our newest community members: