11 Apr 2025 04:05 PM
Hello @Etienne1
How is going? I can help you with that 🙂
You can simply add this code snippet to yours:
| fieldsAdd Name = replaceString(entityName(dt.entity.host), "SP00", "SQL")
| fields arrayLast(availability), Name
and should work as you want.
14 Apr 2025 09:20 AM - edited 14 Apr 2025 09:26 AM
Hello,
Thank you for your help.
After having tried a number of methods I can't manage to ensure that there is a single column with the name of all the renamed servers and not lots of different columns.
Example of a column I would like to have :
Host
App
SQL
Web
edit
14 Apr 2025 10:31 AM
Hello, @Etienne1 !
Yeah, make sense, the fieldsadd creates a new Field (Column), so putting all in the same Field name as "Host", must work. But I'm not sure what you want, could you share your full example (Change the data of course), and your purpose with this query.
Best regards,
Maximiliano Lopes
14 Apr 2025 10:38 AM - edited 14 Apr 2025 10:39 AM
Hello,
Even when I use the Fields function and not FieldsAdd, it still creates other columns