DAX = Index and match question

shophoney

Active Member
Joined
Jun 16, 2014
Messages
286
Hi, I have 2 tables:

SalesGOALSAppend, has LOCATION and SALES GOAL and DATES

EWCHoursBudget, has LOCATION and SALES GOAL and HOURS BUDGET

I would like SalesGOALSAppend to look up in what the EWCHoursBudget are when SALES hit a number.

So if sales at 9100 in SalesGOALSAppend hit $100,000 look up in EWCHoursBudget what the budgeted hours would be.

My sales range is listed in values of about $10,000 so if the sales are between $100,000 and 109,999 then return 400 hours. If it's between 110,000 and 119,999 return the next value which would be 420 hours.

Is this possible?

EWCHoursBudget
locationsaleshours
800060000520
800070000540
800080000590
800090000630
8000100000670
8000110000710
900050000400
900060000450
900070000550
900080000600


SalesGOALSAppend
LOCATIONDATESALES
100001/28/19$37,000
100002/11/19$44,500
100002/25/19$39,700
100003/11/19$62,100
100003/25/19$57,100
100004/08/19$50,100
100004/22/19$63,100
100005/06/19$77,800
100005/20/19$63,400
100006/03/19$34,400
100006/17/19$49,100
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
A simple VLOOKUP or XLOOKUP should work...
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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