# Matrix with custom Sparklines

**URL:** <https://community.squaredup.com/t/matrix-with-custom-sparklines/1185>\
**Category:** Dashboard Server\
**Tags:** dashboards, scom\
**Created:** [October 1, 2020, 10:06am UTC](https://community.squaredup.com/t/matrix-with-custom-sparklines/1185 "2020-10-01T10:06:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![very\_best](https://community.squaredup.com/letter_avatar_proxy/v4/letter/v/c77e96/32.png) [@very\_best](https://community.squaredup.com/u/very_best)\
**Post date:** [October 1, 2020, 10:06am UTC](https://community.squaredup.com/t/matrix-with-custom-sparklines/1185/1 "2020-10-01T10:06:04Z")

</div>

Hello!

I want to create a Matrix Dashboard with some custom defined colums.

I have selected a class where I have some performance Monitors

All Instances should be visible with these performance Counters:

Example:

\<ObjectName\>HeapMemory Used\</ObjectName\>  
\<CounterName\>HeapMemory Used %\</CounterName\>  
\<InstanceName\>$Target/Property[Type="\<MyClass\>"]/InstanceName$\</InstanceName\>  
\<Value\>$Data/Property[@Name=‘HeapMemoryUsageUsedPercent’]$\</Value\>

&nbsp;

No I want to list this value in a colume in my matrix:

```
[
	{
		"_type": "celltile/status",
		"title": "State"
	},
	{
		"title": "HeapMemory Committed",
		"_type": "celltile/scomperf-as-sparkline",
		"config": {
			"display": {
				"height": 30,
				"width": 120,
				"labelTemplate": "{{ ( value ? Math.round(value) + 'MB' : '-' ) }}"
			},
			"source": {
				"objectname": " HeapMemory Used",
				"countername": "HeapMemory Used %",
				"Instance": "{{properties.instanceName}}"
			}
		}
	}
]
```

But no value is displayed

where is the error?

&nbsp;

rg

hansi

---

<div class="post-metadata">

**Author:** ![Jelly](https://community.squaredup.com/user_avatar/community.squaredup.com/jelly/32/812_2.png) [@Jelly](https://community.squaredup.com/u/Jelly)\
**Post date:** [October 1, 2020, 1:26pm UTC](https://community.squaredup.com/t/matrix-with-custom-sparklines/1185/2 "2020-10-01T13:26:06Z")

</div>

I’m not entirely sure that the property in the instance field will be accepted like this, but you may just need a transform:

See this page: [https://support.squaredup.com/hc/en-us/articles/360007917598-How-to-use-the-Matrix-tile](https://support.squaredup.com/hc/en-us/articles/360007917598-How-to-use-the-Matrix-tile) (search for Transform)

---

<div class="post-metadata">

**Author:** ![very\_best](https://community.squaredup.com/letter_avatar_proxy/v4/letter/v/c77e96/32.png) [@very\_best](https://community.squaredup.com/u/very_best)\
**Post date:** [October 5, 2020, 11:50am UTC](https://community.squaredup.com/t/matrix-with-custom-sparklines/1185/3 "2020-10-05T11:50:37Z")

</div>

Hello!

Thank you for answer.

I have found some other information. Instance should not be neccessary. But also without Instance I don’t get any data.
