Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I am trying to filter out records where the column Device_Name contains = "ESX" or "Appliance". I have this query:
IF(NOT(CONTAINS(TableName,Device_Name,"ESX||"Appliance")))
The problem is there are values under Device_Name such as Labesx which I don't want filtered out. I just want to filter out device names that just contain the word ESX separately such as (esx-111, esx-222, esxI, rather than being a part of a string such as labesx.
How do I accomplish this?
Solved! Go to Solution.
Hi,
According to your description, i advise using LEFT function.
I create a simple sample to test:
Then create a column to extract specified string like 'esx' or 'Appliance':
Column = IF(LEFT('Table'[Device_Name],3)="esx"||LEFT('Table'[Device_Name],9)="Appliance",1,0)
Apply a filter about this column to the visual, the result shows:
Hope this helps.
Best Regards,
Giotto Zhi
Hi,
According to your description, i advise using LEFT function.
I create a simple sample to test:
Then create a column to extract specified string like 'esx' or 'Appliance':
Column = IF(LEFT('Table'[Device_Name],3)="esx"||LEFT('Table'[Device_Name],9)="Appliance",1,0)
Apply a filter about this column to the visual, the result shows:
Hope this helps.
Best Regards,
Giotto Zhi
Try something like this:
Table 2 =
FILTER(
'Table',
SEARCH("ESX",[Name],1,-1) <> 1 &&
SEARCH("Appliance",[Name],1,-1) <> 1
)
PBIX attached.
Make it an AND statement:
IF(NOT(CONTAINS(TableName,Device_Name,"ESX")) && NOT(CONTAINS(TableName,Device_Name,"Appliance")), <value for true>, <value for false>)
Proud to be a Super User!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 103 | |
| 80 | |
| 59 | |
| 51 | |
| 46 |