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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
CarolLoveRabbit
New Member

How to link data from other table

Hi Team,

Need your help for this one. I have two tables as below.

 

Table 1: monthly units forecast. My painpoint is,

1. How can I get price from Table 2

2. How to calculate revenue once getting price

 

CarolLoveRabbit_0-1671101511053.png

Table 2: monthly unit price for products

CarolLoveRabbit_1-1671101529197.png

 

Thanks.

Br,

Carol Yan

 

1 ACCEPTED SOLUTION
Uspace87
Resolver III
Resolver III

@CarolLoveRabbit 

 

1) Load your 2 tables in power bi and "Unpivot" the date Columns in the "monthly unit price for products".

you should have a table like this:

 

Uspace87_1-1671102717074.png

 

2) Then you can Create a new Column mergin the "Product Number" and the "Date" in both tables

 

Uspace87_2-1671102795659.png

 

3) Then you can link the 2 tables with the new column you have just created 

 

Uspace87_3-1671102850460.png

 

4) Write the following measure for Revenue=

SUMX(
    'Units Forecast','Units Forecast'[Units]*RELATED(Prices[Value])
)

 

 

 

 

 

Uspace87_0-1671102632015.png

 

View solution in original post

2 REPLIES 2
Uspace87
Resolver III
Resolver III

@CarolLoveRabbit 

 

1) Load your 2 tables in power bi and "Unpivot" the date Columns in the "monthly unit price for products".

you should have a table like this:

 

Uspace87_1-1671102717074.png

 

2) Then you can Create a new Column mergin the "Product Number" and the "Date" in both tables

 

Uspace87_2-1671102795659.png

 

3) Then you can link the 2 tables with the new column you have just created 

 

Uspace87_3-1671102850460.png

 

4) Write the following measure for Revenue=

SUMX(
    'Units Forecast','Units Forecast'[Units]*RELATED(Prices[Value])
)

 

 

 

 

 

Uspace87_0-1671102632015.png

 

Solved. Thanks so much for your help😁

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.