How to find rate based on client, date and rate history

Leah T.

New Member
Joined
Jun 29, 2007
Messages
4
I'm loving PowerPivot, but admit that I still have my training wheels on! I'm attempting to get info that is beyond my experience of straightforward RELATED() and IF() formulas.

I need a calculated column in a PowerPivot table that returns a client's rate based on a date of contact and the start and end dates of a client's rate. Eventually, the rate will be added as a slicer in a pivot table report.

I have three tables in my PowerPivot window: [1] ContactHistory, [2] RateHistory and [3] ClientIdentifiers.

The ClientID columns in [1] ContactHistory and [2] RateHistory both have a relationship established with the ClientID column in [3] ClientIdentifiers.

The [1] ContactHistory table has rows containing the ClientID and Date_of_Contact.
The [2] RateHistory table has rows containing the ClientID, the ClientRate, Rate_Start_Date, and Rate_End_Date. Some Rate_End_Date(s) are null/blank because they are current, some clients have no start or end dates and/or are not on the RateHistory table ("unknown").

For clients for whom we do know the rate, I would like to calculate their rate at the Date_of_Contact in the [1] ContactHistory table.

Can someone point me in the right direction?

Thanks!
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hi Leah! Drop me a note at my email address (in my sig) and I will shoot you a workbook. If it solves your problem, I will post it as a solution on the blog :)
 
Upvote 0

Forum statistics

Threads
1,223,250
Messages
6,171,036
Members
452,374
Latest member
keccles

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