Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello all,
I created a DAX table in which I created 2 variables, with which I get the data from 2 different tables.
I want to join these 2 tables in only one. I tried with UNION (but I don't have the same amount of columns in the 2 tables), et NATTURALLEFTOUTERJOIN (but it doesn't work). Could someone help please ? Here's my code below :
T04_MDPF_CDC V2 =
Solved! Go to Solution.
@Raphael33 Assuming that the relationship between the 2 tables is Material Code, perhaps this as your "join" VAR:
var FirstJoinTable =
ADDCOLUMNS(
Launch_Intro_Table,
"Affaire Planning Mode",
VAR __MaterialCode = [Material Code]
VAR __Result = MAXX( FILTER( MDPF71, [Material Code] = __MaterialCode), [Affaire Planning Mode" )
RETURN
__Result
"Affaire Name",
VAR __MaterialCode = [Material Code]
VAR __Result = MAXX( FILTER( MDPF71, [Material Code] = __MaterialCode), [Affaire Name" )
RETURN
__Result
)
@Raphael33 Assuming that the relationship between the 2 tables is Material Code, perhaps this as your "join" VAR:
var FirstJoinTable =
ADDCOLUMNS(
Launch_Intro_Table,
"Affaire Planning Mode",
VAR __MaterialCode = [Material Code]
VAR __Result = MAXX( FILTER( MDPF71, [Material Code] = __MaterialCode), [Affaire Planning Mode" )
RETURN
__Result
"Affaire Name",
VAR __MaterialCode = [Material Code]
VAR __Result = MAXX( FILTER( MDPF71, [Material Code] = __MaterialCode), [Affaire Name" )
RETURN
__Result
)
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
11 |
User | Count |
---|---|
19 | |
15 | |
14 | |
11 | |
10 |