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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
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!

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.