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!Get Fabric certified for FREE! Don't miss your chance! Learn more
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!
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 68 | |
| 59 | |
| 48 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 107 | |
| 104 | |
| 39 | |
| 27 | |
| 27 |