Forum Discussion
Direct query and local table
Hi,
in the report I'm useing DirectQuery dataset and manual created table with name "Country", it contain columns "Country Code" and "Country Name". In the table from DirectQuery with name "Units" is column with country codes.
local table
| Country Code | Country Name |
| UA | Ukraine |
| BE | Belgium |
| CH | Switzerland |
| CZ | Czech Republic |
table in DirectQuery with name Units
| Country Code |
| UA |
| BE |
| CH |
| CZ |
I have created relationship between this two tables using columns Countru Code. And If I want to copy Country Names from local table to table Units by
Country Name = Related(Country[Country name])
it retusn error "The column Country[Country name] cannot be pushed to the remote data source and cannot be used in this scenario."
I tried function lookupvalue too, but with same result.
Any idea how to combine data from direct query and local tables?
3 Replies
- vanessafvgCommunity Champion
and you created a relationship between them? what type of relationship is it?
- AnonymousNot applicable
Relationshis is *:1 Units[Country Code] (DirectQuery) : Country[Country Code] (local table) single direction
- AnonymousNot applicable
correction of original info:
function
RELATED generate error : "The column 'Country[Country Name]' either doesn't exist or doesn't have a relationship to any table available in the current context.
LOOKUPVALUE generate error: "The column 'Users'[Country Name] cannot be pushed to the remote data source and cannot be used in this scenario."