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!View all the Fabric Data Days sessions on demand. View schedule
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!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!