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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have two joined tables, I want to create a new column containing a value from one table based on a colum value in the other.
e.g based on table COA1 colum name "accounttype" evaluating to a "S" or a "C" , I want the value from table GLDetail column name "postingamount" to be added to the new column, if evaluation is not "C" or "S" than 0
Tried this and a bunch of others but no luck...
Hi,
Share some data to work with and show the expected result.
Hi @nrowey,
You can use:
Gross = IF('COA1'[AccountType] = "C" || 'COA1'[AccountType] = "S",
LOOKUPVALUE('GLDetail'[PostingAmount], 'GLDetail'[JoinColumn], 'COA1'[JoinColumn]), 0)
Mark this post as a solution if that works for you!
Consider taking a look at my blog: Forecast Period - Previous Forecasts
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |