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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.