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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
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
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 16 | |
| 12 | |
| 8 | |
| 7 | |
| 6 |