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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!