Hi, I would like to have a dashboard panel with just a number, which should be the substraction of two values obtained from two searches. Both searches work individually, but I can't find the way to put them together in one search. Search 1: index="opex_mobile_index" | eventstats max(source) as last_source | where match(source,last_source) | table "CECO", "Descripcion_Partida_Total", "Partida", "ImporteSolicitado_EUR_Partida_Total" | dedup "CECO", "Descripcion_Partida_Total", "Partida", "ImporteSolicitado_EUR_Partida_Total" | stats sum("ImporteSolicitado_EUR_Partida_Total") as total_budget Search 2: index="opex_mobile_index" | eventstats max(source) as last_source | where match(source,last_source) search "Descripcion_Partida_Detalle"="Entregado QFC2" | table "CECO", "Descripcion_Partida_Total", "Partida", "ImporteSolicitado_EUR_Partida_Detalle" | dedup "CECO", "Descripcion_Partida_Total", "Partida", "ImporteSolicitado_EUR_Partida_Detalle" | stats sum("ImporteSolicitado_EUR_Partida_Detalle") as QFC2_budget Combination: index="opex_mobile_index" | eventstats max(source) as last_source | where match(source,last_source) | table "CECO", "Descripcion_Partida_Total", "Partida", "ImporteSolicitado_EUR_Partida_Total" | dedup "CECO", "Descripcion_Partida_Total", "Partida", "ImporteSolicitado_EUR_Partida_Total" | stats sum("ImporteSolicitado_EUR_Partida_Total") as total_budget | append [search "Descripcion_Partida_Detalle"="Entregado QFC2" | table "CECO", "Descripcion_Partida_Total", "Partida", "ImporteSolicitado_EUR_Partida_Detalle" | dedup "CECO", "Descripcion_Partida_Total", "Partida", "ImporteSolicitado_EUR_Partida_Detalle" | stats sum("ImporteSolicitado_EUR_Partida_Detalle") as QFC2_budget] | eval diferencia = total_budget - QFC2_budget This does not work. Nothing is output from the append [ ]. I used append, appendpipe, appendcols, multisearch... I don't know what I am doing wrong. Any help would be highly appreciated. Thanks!
... View more