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.
Hi I have two tables..
TABLE 1 (DocNo, DocEntry, DocTotal, Date, Misc...)
TABLE 2 (DocNo, DocEntry, DocTotal, Date)
I want to pull Doc Total of TABLE 2 into TABLE 1 for Matching DocEntry field.
But there is not relationship between two tables.
So how to do that with DAX?
Solved! Go to Solution.
Hi, @rakeshmistry1
@rakeshmistry1
you can do using treats
Column 2 =
CALCULATE(
MIN('Table 1'[total]),
TREATAS(
VALUES('Table 1'[id]),
'Table 2'[id]
)
)
Hi, @rakeshmistry1
@rakeshmistry1
you can do using treats
Column 2 =
CALCULATE(
MIN('Table 1'[total]),
TREATAS(
VALUES('Table 1'[id]),
'Table 2'[id]
)
)
Thank you very much... it worked for me perfectly.
In Table1 create a calculated column:
DocTotal := LOOKUPVALUE(Table2[DocTotal], Table2[DocEntry], Table1[DocEntry])
User | Count |
---|---|
17 | |
14 | |
13 | |
13 | |
11 |
User | Count |
---|---|
19 | |
15 | |
15 | |
11 | |
10 |