Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi All..!!
I have two tables like
Table A like below
and
Table B like below
and
i will get Result Table as follows
Any one pls help inthis regard.
Thanks in Advance...
@Incom @com
Solved! Go to Solution.
Hello @suparnababu8
use the below Dax to create the table.
ResultTable =
SUMMARIZE (
UNION (
SELECTCOLUMNS ( 't1', "Month", 't1'[Month] ),
SELECTCOLUMNS ( 't2', "Month", 't2'[Month] )
),
[Month],
"Amt",
LOOKUPVALUE ( T2[Sales], T2[Month], [Month] )
+ LOOKUPVALUE ( T1[Sales], T1[Month], [Month] )
)
Let me know if this helps!
If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!
You can do this in power query quite easily.
Hello @suparnababu8
use the below Dax to create the table.
ResultTable =
SUMMARIZE (
UNION (
SELECTCOLUMNS ( 't1', "Month", 't1'[Month] ),
SELECTCOLUMNS ( 't2', "Month", 't2'[Month] )
),
[Month],
"Amt",
LOOKUPVALUE ( T2[Sales], T2[Month], [Month] )
+ LOOKUPVALUE ( T1[Sales], T1[Month], [Month] )
)
Let me know if this helps!
If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |