Measure to getting value from table using multiple variables

luirib

Board Regular
Joined
Sep 21, 2005
Messages
56
I need to write a DAX measure that will pull the rate from the below table (ER). My report will have a date and an entity, that will determine what rate is to be picked. For example, if I pick eas (see entities table below) and my month is Jan., the measure should show 60.333.

I think that the LOOKUPVALUE is intended for calculated columns only. Should I go CALCULATE(SUM(ER[Rate]), FILTER... [and here is where I get lost. I know that I need to include the country as a filter so it knows what conversion to use].

Thanks a lot.
This is the ER table
1588909299488.png

This is the Entities table
1588909705428.png
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Power Pivot is a model based tool. You build a model and then use it to extract the data. Join the entities[orcurr] to er[to]
you can then put date and code in a matrix with a simple measure like AVERAGE(er[rate])
 
Upvote 0

Forum statistics

Threads
1,223,793
Messages
6,174,624
Members
452,575
Latest member
Fstick546

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