Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
lennox25
Post Patron
Post Patron

Help on Finding Matches In One Column Only

My table is currently set up as below. 

I need to match only the codes  (if they match - there maybe a Code for Product A but not for B and Vice Versa) in which case it would leave a blank on the row for the Product which isnt in this example but it will be the case)

lennox25_1-1715787051547.png

 

I would like the final result like this(ignore the colouring)

lennox25_0-1715786793027.png

 

2 REPLIES 2
amitchandak
Super User
Super User

@lennox25 , Pivot Product column in Power Query, and then you can have column

if  [A] <> null && [B] <> null then "True" else false

 

Pivot Data(Power Query) :https://www.youtube.com/watch?v=oKByyI09Bno&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=12

 

or create measures like

 

A=  calculate(sum(Table[No Sold]), Filter(Table, Table[Product] = "A") )

 

B=  calculate(sum(Table[No Sold]), Filter(Table, Table[Product] = "B") )

 

Result = if(isblank([A]) || isblank([B]) , False(), true() )

 

Use them in visual with other group bys

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

HI @amitchandak  I know how to Pivot and have Pivoted but the column is not working its syntax error?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors