Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi,
I have 2 tables
table 1
table 2
I try to create a conditinal column for table 2
<= 30 = If table1[Aging] <= 30 then Sale else 0
>30 = If table1[Aging] > 30 then Sale else 0
Thank you for your help!
Please try the following:
If (table1[Aging])<= 30 ,[Sale],0)
If (table1[Aging] > 30,[Sale],0)
@Harry_Tran - It looks like Solved: Re: How to lookup values in another table in the Q... - Microsoft Power BI Community does the trick for you.
= Table.AddColumn(#"Changed Type", "<=30", each if (let currentID = [ID] in Table.SelectRows(#"table 1", each [ID] = currentID)){0}[Aging] <= 30 then [Sale] else 0)
= Table.AddColumn(#"Added Custom", ">30", each if (let currentID = [ID] in Table.SelectRows(#"table 1", each [ID] = currentID)){0}[Aging] > 30 then [Sale] else 0)
Proud to be a Super User!
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 51 | |
| 46 | |
| 23 | |
| 19 |
| User | Count |
|---|---|
| 141 | |
| 113 | |
| 50 | |
| 37 | |
| 30 |