I have 2 query's where i count the number of nodes and interfaces with CustomProperties like 'FIN-P' and status <>1
Query for nodes :
SELECT count(1) as Number_of_Nodes
FROM Orion.Nodes n
Where n.CustomProperties.Node_Type like 'FIN-P' and n.status <>1
Query for Interfaces :
SELECT count(1) as Number_of_interfaces
FROM Orion.NPM.Interfaces i
Where i.CustomProperties.Interface_Type like 'FIN-P' and i.status <>1
The result : Number_of_Nodes = 60 Number_of_Interfaces = 160
How can i make a query who gives me as result the sum of Number_of_Nodes and Number_of_Interfaces ( should be 220) to implemet this in a modern dashboard.