---
title: "How to use a rule to capture the names of the headlines in a dataview which have 0 value"
description: "Using a rule to capture headline names with zero values in a dataview involves path aliases and string functions. The rule block example shows how to display these headline names in a specific \"OrderValue 0 Instance\" headline."
url: "https://docs.itrsgroup.com/docs/faq/geneos/9329130948253-geneos-how-to-use-a-rule-to-capture-the-names-of-the-headlines-in-a-dataview-which-have-0-value/index.html"
---
**This can be done with path aliases and some string functions in the rule block.**

For example, if the MKT# Order headlines below have zero values it needs to show the headline names in the "OrderValue 0 Instance" headline.

When the MKT# Order headlines have non-zero values.

![Geneos Toolkit Non Zero MKT# Order](https://docscdn.itrsgroup.com/faq/images/geneos/Geneos-How-to-use-a-rule-to-capture-the-names-of-the-headlines-in-a-dataview-which-have-0-value.png)

When the MKT Order headlines have 0 values.

![Geneos Toolkit Zero Value MKT# Order](https://docscdn.itrsgroup.com/faq/images/geneos/Geneos-How-to-use-a-rule-to-capture-the-names-of-the-headlines-in-a-dataview-which-have-0-value-2nd-picture.png)

The rule block looks like below:

![Geneos Toolkit Rule Code Block Example](https://docscdn.itrsgroup.com/faq/images/geneos/Geneos-How-to-use-a-rule-to-capture-the-names-of-the-headlines-in-a-dataview-which-have-0-value-3rd-picture.png)

![Geneos Toolkit Rule Path Aliases](https://docscdn.itrsgroup.com/faq/images/geneos/Geneos-How-to-use-a-rule-to-capture-the-names-of-the-headlines-in-a-dataview-which-have-0-value-4th-picture.png)

[Gateway Reference Guide](https://docs.itrsgroup.com/docs/geneos/current/processing/monitoring-and-alerts/geneos_rulesactionsalerts_tr/index.html#string-functions)

Attached is the xml file of the rule.

[Compute Headlines rule.xml.txt](/faq/downloads/geneos/Compute_headlines_rule.xml.txt "Download th compute headline rule")


