Quantcast
Channel: SQL Server Master Data Services forum
Viewing all articles
Browse latest Browse all 1311

Get value of a member from an other entity

$
0
0

Hello ! 

My problem seems simple but I can't how to do it with MDS... or even if it's possible !

I've got 2 entities "Agent" and "Function". 
"Agent" has a code, a name, and an attribute called "function_code" which refers to "Function"'s code
"Function" as a code and a name. Name is the description of the function. 

I'd like to see in a single row : 

"Code", "Name", "Funcion_code" and "Name" (the last one from the entity "Function"). 

In SQL it will something like 

Select a.code, a.name, a.function_code, f.name
from agent a, function f
where a.function_code = f.code

I've tried with explicit hierarchy, derived hierarchy, consolidated members... 
I was able to have an entity with all those attributes but I can choose the attribute I want. My goal is that, according to "Function_code" in Agent, I get the "Name" of the function... 


Thanks a lot ! 


Viewing all articles
Browse latest Browse all 1311

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>