New to DAX . . . simple RELATED

Jeffrey Green

Well-known Member
Joined
Oct 24, 2007
Messages
1,021
i did this years ago, but cant replicate what i did.

I have Table1 and Table2 and with a relationship of Column1 = Column1.
there is only one column in table1 and two columns in table 2.

All i want to do is bring in the value in Column2, called junk, into Table1.

There are 500,000 rows in both, and using Related is WAY faster than vlookup.

i am using =RELATED(Table2[junk] in a calculated column in table1. it errors, "table1 calc column has syntax error"

1. i do this in the data model right? not the exdel?
2. how do i toggle between the data model and the excel workbook?

thanks
 
Last edited:

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
ah, it seems like my relationship isnt staying as i set it. i am setting TABLE1/Column1 = Table2/Column1. But when i look at it again in MANAGE RELATIONSHIPS, it reversed. and if i do the RELATED fuction in table2, i works, pulling data from table1. Thoughts?
 
Upvote 0
I did at the beginning; I thought fixed that; but i re-did entire process from the start . . it is ok now . . . BUT
I was able to do my RELATED in the Data Model, but how do i update the EXCEL workbook? thanks
 
Upvote 0
Maybe the best way is to do it in Power Query rather than PowerPivot (using Merge Queries) and load the results to a new table in Excel.
 
Upvote 0

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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