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
Kratchie
Frequent Visitor

Search with multiple words

Hi, 

 

How can I make search like this

 

If it finds Australia = TRUE

If it finds both Australia + USA, then it should be TRUE

If it finds only USA, then it should be FALSE as result.

 

 

 

COLUMN = 
IF (
ISBLANK ( SEARCH ( "Australia", MERGE[DESCRIPTION], 1, BLANK () ) ),
"FALSE",
"TRUE"
)

 

 

 

1 ACCEPTED SOLUTION
SamInogic
Solution Sage
Solution Sage

Hi,

In order to get the true /false result as per the mentioned conditions, you can try below DAX expression on the report.

Column = IF(SEARCH("Australia", 'Test Table'[Name], 1, 0) = 1, IF(SEARCH ("USA", 'Test Table'[Name], 1, 0)=1,TRUE(),TRUE()) , IF(SEARCH ("Australia", 'Test Table'[Name], 1, 0) =1,FALSE()) )


Please refer to the below screenshot for the same.

SamInogic_0-1671541737633.png

 

If this answer helps, please mark it as Accepted Solution so it would help others to find the solution.


Thanks!

Inogic Professional Services

An expert technical extension for your techno-functional business needs

Power Platform/Dynamics 365 CRM

Drop an email at crm@inogic.com

Service:  http://www.inogic.com/services/  

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

Inogic Professional Services: Power Platform/Dynamics 365 CRM
An expert technical extension for your techno-functional business needs
Service: https://www.inogic.com/services/
Tips and Tricks: https://www.inogic.com/blog/

View solution in original post

4 REPLIES 4
SamInogic
Solution Sage
Solution Sage

Hi,

In order to get the true /false result as per the mentioned conditions, you can try below DAX expression on the report.

Column = IF(SEARCH("Australia", 'Test Table'[Name], 1, 0) = 1, IF(SEARCH ("USA", 'Test Table'[Name], 1, 0)=1,TRUE(),TRUE()) , IF(SEARCH ("Australia", 'Test Table'[Name], 1, 0) =1,FALSE()) )


Please refer to the below screenshot for the same.

SamInogic_0-1671541737633.png

 

If this answer helps, please mark it as Accepted Solution so it would help others to find the solution.


Thanks!

Inogic Professional Services

An expert technical extension for your techno-functional business needs

Power Platform/Dynamics 365 CRM

Drop an email at crm@inogic.com

Service:  http://www.inogic.com/services/  

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

Inogic Professional Services: Power Platform/Dynamics 365 CRM
An expert technical extension for your techno-functional business needs
Service: https://www.inogic.com/services/
Tips and Tricks: https://www.inogic.com/blog/

Hi @SamInogic  It worked like a charm. Thank you very much!

ppm1
Solution Sage
Solution Sage

Please try this instead.

COLUMN = 
IF (
SEARCH ( "Australia", MERGE[DESCRIPTION], 1, 0 ) > 0,
"TRUE",
"FALSE"
)

Pat

Microsoft Employee
Kratchie
Frequent Visitor

Hi @ppm1 

 

Check @SamInogic 's solution above! 

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.

Top Solution Authors