# Dataset in tag expresion in fault

**URL:** <https://forum.inductiveautomation.com/t/dataset-in-tag-expresion-in-fault/22996>\
**Category:** Ignition\
**Created:** [March 1, 2019, 5:10pm UTC](https://forum.inductiveautomation.com/t/dataset-in-tag-expresion-in-fault/22996 "2019-03-01T17:10:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![GeraGarcia](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/geragarcia/32/18471_2.png) [@GeraGarcia](https://forum.inductiveautomation.com/u/GeraGarcia)\
**Post date:** [March 1, 2019, 5:10pm UTC](https://forum.inductiveautomation.com/t/dataset-in-tag-expresion-in-fault/22996/1 "2019-03-01T17:10:16Z")

</div>

hello I have a tag of which I have a split, of this tag I want to make another tag with a part of the split and the tag is in fault, how do you handle a tag when it is a dataset?

this is my expresion i find this with the insert tag of the tag editor. see the imagin  
{[.]idPilaCerradaSplit[parts][2, 0]}

 ![Imagen1](https://us1.discourse-cdn.com/inductiveautomation/original/2X/9/9619a0e8e270f94c4906240d6c9ddada1a28c694.png)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [March 1, 2019, 5:17pm UTC](https://forum.inductiveautomation.com/t/dataset-in-tag-expresion-in-fault/22996/2 "2019-03-01T17:17:30Z")

</div>

Use `{[.]idPilaCerrradaSplit}[2, "parts"]` - the `{tagpath}` brings the entire dataset into the expression, then the `[row, column]` after dictates exactly which cell of the dataset you want to refer to.

See the manual for more info: [https://docs.inductiveautomation.com/display/DOC79/Expression+Overview+and+Syntax#ExpressionOverviewandSyntax-DatasetAccess](https://docs.inductiveautomation.com/display/DOC79/Expression+Overview+and+Syntax#ExpressionOverviewandSyntax-DatasetAccess)

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [March 1, 2019, 5:21pm UTC](https://forum.inductiveautomation.com/t/dataset-in-tag-expresion-in-fault/22996/3 "2019-03-01T17:21:23Z")

</div>

> [@GeraGarcia](#):
>
> insert tag of the tag editor  
> `{[.]idPilaCerradaSplit[parts][2, 0]}`

Yes, I've noticed the tag selector in the tag expression editor inserts the path to datasets as shown above (which does not work).

> [@paul-griffith](#):
>
> Use `{[.]idPilaCerrradaSplit}[2, "parts"]`

@paul-griffith is there a reason the tag selector in the editor doesn't insert it in the correct format you note, or just a bug?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [March 1, 2019, 5:24pm UTC](https://forum.inductiveautomation.com/t/dataset-in-tag-expresion-in-fault/22996/4 "2019-03-01T17:24:10Z")

</div>

Looks like just a bug. I’ll file a ticket - didn’t realize that’s what it was doing.

---

<div class="post-metadata">

**Author:** ![GeraGarcia](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/geragarcia/32/18471_2.png) [@GeraGarcia](https://forum.inductiveautomation.com/u/GeraGarcia)\
**Post date:** [March 1, 2019, 5:27pm UTC](https://forum.inductiveautomation.com/t/dataset-in-tag-expresion-in-fault/22996/5 "2019-03-01T17:27:45Z")

</div>

> [@witman](#):
>
> `{[.]idPilaCerrradaSplit}[2, "parts"]`

Thanks PGriffith is correct your dataset expression
