Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I have this table and I need to automatically exclude some values from the column Db_User_Name. And I would like to do it directly in the code. For example, I would like to exclude the two values: NT AUTHORITY\SYSTEM and DBSNMP.
Can you help me please?
Remove the first row.
Use only
If(match(Db_User_Name,'NT AUTHORITY\SYSTEM', 'DBSNMP')=0,
Db_User_Name,
Null()
)
Hi
I think you can use the Drop Fields() take a look here... https://help.qlik.com/en-US/sense/June2018/Subsystems/Hub/Content/Scripting/ScriptRegularStatements/...
I don't sure but I think you can use "where" with drop fields, try it.
I hope this was help you.
thanks for the reply. Maybe I didn't write well. I would like to automatically filter some values using the function.
I'm not sure if the drop command is the right one or am I wrong?
Remove the first row.
Use only
If(match(Db_User_Name,'NT AUTHORITY\SYSTEM', 'DBSNMP')=0,
Db_User_Name,
Null()
)
The response of Vegar is correct
Use just the
If(match(Db_User_Name,'NT AUTHORITY\SYSTEM', 'DBSNMP')=0,
Db_User_Name,
Null()
)
Don't need the first line 😊.
Thank you @Vegar , this is not the first time that you help me!!!