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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Domenik
New Member

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 @Domenik ,

 

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 @Domenik ,

 

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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