Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
There are 2 product names in the table.
How do I display the 'Comparsion' value as 'Yes' when the cell value in 'Category' is the same as 'config', and 'No' when they are different for the same product name?
| Machine | Product | config | Category | Comparison |
| X.Y | ABC | 100% | 100% | Yes |
| X | ABC | SAMPLING | 100% | No |
| X.Y | DEF | 100% | SAMPLING | No |
| X | DEF | SAMPLING | SAMPLING | Yes |
Solved! Go to Solution.
Table.AddColumn(#"Changed Type", "Custom", each if [config] = [Category] then "Yes" else "no")
Hi,
add a custom column in power Query and place this.
Hope this helps.
if this has solved your problem you can mark this as a solution.
Table.AddColumn(#"Changed Type", "Custom", each if [config] = [Category] then "Yes" else "no")
Hi,
add a custom column in power Query and place this.
Hope this helps.
if this has solved your problem you can mark this as a solution.
or add a conditional column like this
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.