This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
I have 2 disconnected tables:
ProductValueLookup Column
| A | 2 | ? |
| A | 3 | ? |
| B | 4 | ? |
| B | 5 | ? |
and
ProductValue2
| A | 3 |
| A | 2 |
| A | 2 |
| B | 1 |
I can create a measure to lookup and sum the value from Table 2 to Table 1:
Lookup Measure = CALCULATE(SUM(Table2[Value2]), TREATAS(VALUES(Table1[Product]), Table2[Product]))
How can I create a calculated column in Table 1 to have the same result as the measure above?
Here is the PBI file link: https://1drv.ms/u/s!Aps8poidQa5zmbVOuWoPQC_VC5yysw?e=XGeX4T
Thanks
Solved! Go to Solution.
Lookup Column =
CALCULATE(
SUM( Table2[Value2] ),
TREATAS( { ( Table1[Product] ) }, Table2[Product] )
)
| Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Lookup Column =
CALCULATE(
SUM( Table2[Value2] ),
TREATAS( { ( Table1[Product] ) }, Table2[Product] )
)
| Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 24 | |
| 23 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 35 | |
| 29 | |
| 23 | |
| 22 |