Trouble with lookup in DAX

Guttmann1983

Board Regular
Joined
Jul 27, 2015
Messages
181
Hi, I am trying to use something similar to a vlookup in dax and am not able to get it working..

I've attached an example workbook.

In table "Sheet1" I have got a column named "BucketID" which is generated from a formula (from dates being completed or not --- giving me a string of 1's and 0's...) -- I am trying to take that string of numbers, and look it up from table "BucketID" --- by looking up the tableID and then providing the corresponding text.... (this output/formula will be in column "Bucket"

can anyone help me?

link to the example file is here : https://1drv.ms/f/s!AjKuL-NFEjPStGN8rFzGGUA-M4Ia
 

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"
I saw that someone replied to this but since all posts for the past day and a half were lost i obviously cant see it...
 
Upvote 0
Hello,

This is very weird. I have already posted the answer to this post.
I will do it again. Hopefully, it will not disappear this time.

In a nutshell, I am suggesting two DAX alternatives to EXCEL VLOOKUP. You can see them below.


BUCKET ID NAMES V.01 =
LOOKUPVALUE ( BucketID[Bucket Name], BucketID[BucketID], Sheet1[BucketID] )


BUCKET ID NAMES V.02 =
CALCULATE (
VALUES ( BucketID[Bucket Name] ),
FILTER ( BucketID, [BucketID] = Sheet1[BucketID] )
)



This particular example is having an additional complication since the LOOKUP search value is being generated by CALCULATE and this method throws in a circular dependency for both lookup methods used. I had to create a separate dummy table (Table2) and linked it with the principal source table (Sheet1) to break the circular dependency

Here is the example.

https://1drv.ms/x/s!AtVaiaKuHugAojUmkQlNtr4REOzg


Thank you, Nick -
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,823
Members
449,049
Latest member
cybersurfer5000

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