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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to get results from IF SEARCH

I am looking to get results for if a country has a certain product (lets say that product is called "product x). For example: I have a list of all the products in Canada. Canada has product x but also has other products. when I use the below IF statement I get a bunch of "YES" and "-". Is it possible to have a seperate table with a column that says " If Canada has the product x only "YES" will appear" as a single row. I am looking to do this for all countries. In the end each country will have its own single row of either "Yes" or "-" meanign that country either has the product or not.

 
"column name" =
IF (
SEARCH ( "product x", products_data_matrix[type],, 0 ) > 0,
 
"YES",
"-"
)
 
1 ACCEPTED SOLUTION
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

1, Create a calculated column in 'products_data_matrix' table.

 

v-lionel-msft_1-1607673421306.png

 

2, Create a calculated table.

v-lionel-msft_2-1607673455518.png

 

Best regards,
Lionel Chen

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

2 REPLIES 2
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

1, Create a calculated column in 'products_data_matrix' table.

 

v-lionel-msft_1-1607673421306.png

 

2, Create a calculated table.

v-lionel-msft_2-1607673455518.png

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

Ashish_Mathur
Super User
Super User

Hi,

What problem do you face with this formula?  Could you share some data, show the result of your formula and also show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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
Top Kudoed Authors