# How to find highest 3 value tags and print tag name to another display

**URL:** <https://forum.inductiveautomation.com/t/how-to-find-highest-3-value-tags-and-print-tag-name-to-another-display/41720>\
**Category:** Ignition\
**Tags:** perspective, scripting\
**Created:** [December 22, 2020, 1:28pm UTC](https://forum.inductiveautomation.com/t/how-to-find-highest-3-value-tags-and-print-tag-name-to-another-display/41720 "2020-12-22T13:28:19Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [December 28, 2020, 1:31pm UTC](https://forum.inductiveautomation.com/t/how-to-find-highest-3-value-tags-and-print-tag-name-to-another-display/41720/10 "2020-12-28T13:31:34Z")

</div>

You can get the 'pretty print' of a dataset by using the function found here.

> [@View Dataset from script console](http://forum.inductiveautomation.com/t/view-dataset-from-script-console/36704/4):
>
> Sorry, I'm on vacation, but family is napping, so I get to play. Yes, this is how I relax. Don't judge. EDIT: Added option for printing from Perspective. Sorry, not quite ready for prime time. roll_eyes def printDataSet(datasetIn): from itertools import izip import ast if 'PropertyTreeScriptWrapper$ArrayWrapper' in str(type(datasetIn)): headers = datasetIn[0].keys() data = [] for row in datasetIn: data.append([item.value for item in row.values()]) datasetIn = system.dataset…

For actual use, write the entire dataset to a tag. Read that tag is into a custom property of the view. Use expressions on your display fields to get the value of a row/column in the custom property.  
That way, you have a single tag read from the client.

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-to-find-highest-3-value-tags-and-print-tag-name-to-another-display/41720)._
