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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Anonymous
Not applicable

Power Bi Data modelling - How to create a product lookup table for like for like sales

Hi

 

I am failry new to Powerbi, and I would appreciate a little help please. I have a situation where I need to create a report that will show like for like sales per product of the last two years. In itself this is not a big issue, my issue is that products tend  to be relaunched (same product) but under a new product id. So matching Like for sales by product id over a period will fail, due to a product name change.  I need to create a lookup table but I am not sure how to do it and reference it . It Might also be that some product id s do not change (so no alias) would be needed, example 

 

DShaw1971_0-1677072832673.png

DShaw1971_1-1677072864357.png

 

These  two tables are linked by product id,

 

Data example 

 

Sales 2022                                 Sales 2023

productid                                  Product ID

10221              alias                   8765

87986             alias                    9897

 

In this simplified case, comparing the two products on a year-week basis will fail.

 

I would really appreciate any kind help you could offer please

 

Thank you 

 

0 REPLIES 0

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.