lookupvalue Query

gmazza76

Well-known Member
Joined
Mar 19, 2011
Messages
769
Office Version
  1. 365
Platform
  1. Windows
Good Afternoon,

I am new to the Power BI world and could do with a hand if possible.
I currently have a table that has continual data that updates on a weekly basis and need to have my main table read from this based on the
"AccNo", "contacttype" and "date".

Currently when I use this function it confirms the equation cannot be done as the account number is duplicated more than once.
For me to reduce this is there anyway I can include an AND function to restrict the date it would look at.

ie AccNo = Match
Contacttype = match
Date = Day -1 to D+5 of the Date I have in my actual table

something like
=LOOKUPVALUE(Table1[issue_date],View[account_number],Table1[accnumber],View[letterid],Table1[letterid],and(View(Issue_Date]>=Table1[Issue_date]-1,View(Issue_Date]>=Table1[Issue_date]+5))

Or is there a more sensible way of doing this. I currently rank the data and search via a concatenate of the information, but this only leaves me with the most recent information, where as I need the file to be an ongoing file instead of a week or a month.

thanks in advance
Gavin
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
I think this is done via an INDEX and MATCH in excel, but I am unsure of the equivalent in Power BI

thanks
 
Upvote 0

Forum statistics

Threads
1,223,578
Messages
6,173,167
Members
452,504
Latest member
frankkeith2233

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