Multiplication between 2 tables in PowerPivot

wethernt

New Member
Joined
Jan 27, 2016
Messages
16
Hello, I was hoping someone can help me create a formula in PowerPivot. I have 2 tables:

Table one (lookup table): Country
Foreign Exchange Rate

Table two (facts): Customer
Country
Sales Local Currency

I would like to create a measure for Sales USD by multiplying the Sales Local Currency in Table two, by the Foreign Exchange Rate in Table one. Not sure how to go about this, nor proper syntax. Calculated column? Create a calculation? What function to use? Thanks for any assistance.

Tom in Atlanta GA USA.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Interesting.... I used something called "Related" and I believe I did what I need.

=[Gross Sales Loc]*RELATED('Curr Fx Constant'[Fx Rate])
 
Upvote 0
Hi Tom from ATL GA. I have spent a lot of time in your home town over the years and I quite like the place.

You say you want to write a measure, but this doesn't look like a measure to me - it looks like a calc column. You may like to read my knowledge base article about the difference and why you should use a measure. Calculated Columns vs Measures in DAX - Excelerator BI

the correct measure (when you are ready) is

=sumx('Current FX Constant',calculate(sum(factTable[sales column])))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,163
Messages
6,176,789
Members
452,743
Latest member
Unique65

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top