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
Anonymous
Not applicable

Match and no match

Hi Community,

 

I would like to be able to show customers a list of engineers where the Engineer specified the product that they care about, but did not specify the company brand.  I believe we could do this by creating a new measure, or possibly a new column. 

 

Example: 

If project 123456 is a match for the product search (ID # 3) AND is NOT a match for the brand search (ID # 😎 then I want to show the Engineer for that project.  If both IDs are a match, I do not want to show the architect for that project.

 

So, a visual way of explaining this is, if:

 

Project                 ID 3                        ID 8          Show Engineer?

123456               Match                  Match                                 No

123456               Match                  No Match                           Yes

123456               No Match            Match                                 No

123456               No Match            No Match                           No

 

Please Help.

 

Thanks,

Paruchuri

1 ACCEPTED SOLUTION

@Anonymous,

 

You may refer to the measure below.

Measure =
IF (
    CONTAINS ( Table1, Table1[Id], 3 ) && NOT ( CONTAINS ( Table1, Table1[Id], 8 ) ),
    1
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Interkoubess
Solution Sage
Solution Sage

Hi @Anonymous,

 

Please try this formula in a column and check image below:

Test = if(AND(Data[Product]="Match",Data[Brand]="No Match"),"No","Yes")

Match.PNG

 Let us know if it does not work...

 

Ninter.

 

 

Anonymous
Not applicable

 Hi Interkoubess

 

Thanks for your reply. This  is not what i am looking for.

 

I have explained the same in the example. If the project number is found in both id(3 and 😎  then i don't want to show the record. If the project number is found in only one of the search then i want show the record. 

 

Project No       Id
123456             3
123456             8

If the data is like above i don't want to show.

Project No       Id
123456             3

If the data is like above i want to show.


Thanks,

Paruchuri

 

@Anonymous,

 

You may refer to the measure below.

Measure =
IF (
    CONTAINS ( Table1, Table1[Id], 3 ) && NOT ( CONTAINS ( Table1, Table1[Id], 8 ) ),
    1
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.