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 guys, please bear with me. I am new with Power BI. I want to compare two columns of a table. In each column, within each cell there is another table (multiple values), on both the columns. I want to compare both the columns and create another calculated column, in which I want to get the differences or at least true of false. Attached image will explain it further. Thanks in advance.
Hello @WaheedAli,
According to your description, I created some data to show:
1. You must select the expanded icon, expand the table, and display the data in columns and rows before you can compare.
2. Create a calculated column to compare the difference between two columns or at least false.
Difference_column =
var _selectedDepartment= CALCULATE(SELECTEDVALUE(Merge1[Department ID]))
var _selectedProjectId= CALCULATE(SELECTEDVALUE(Merge1[Project ID]))
var _actualDepartment= CALCULATE(LOOKUPVALUE(Merge1[Master.Department ID],Merge1[Master.Project ID],_selectedProjectId))
var _result= IF(_actualDepartment=_selectedDepartment,TRUE(),FALSE())
return _result3. Result
You can download the PBIX file from here.
Best regards
Liu Yang
If this post helps,then consider Accepting it as the solution to help other members find it faster.
@WaheedAli , first you have to expand then as row/columns or maybe as list and then compare and take action.
@ImkeF , Can you help with this.
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.