Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi All,
I want to create a new column to check if (RECOMMENDED_BLK = PR_BLK) if values match return a 1, if they do not match return a 0. Does anyone know if this is possible.
Solved! Go to Solution.
@aishak12
Are these two columns in the same table or different tables? If som in which table do you want to create a new column?
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
They are all the same table. I would like to create a new column in that same table
@aishak12
Add a new column as follows:
Match = IF ( TABLE[RECOMMENDED_BLK] = TABLE[PR_BLK] , 1 , 0 )
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Hi I am receiving error do you know why
Hi,
Fowmy's suggestion is to write the calculated column formula in DAX whereas you are writing the formula in the Query Editor. If you want to write it in the Query Editor, then try this
=if TABLE[RECOMMENDED_BLK] = TABLE[PR_BLK] then 1 else 0
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 84 | |
| 49 | |
| 37 | |
| 30 | |
| 30 |