# Historian Quality Code 1,073,742,080 (1073742080) - How to filter values with \`Uncertain\` quality

**URL:** <https://forum.inductiveautomation.com/t/historian-quality-code-1-073-742-080-1073742080-how-to-filter-values-with-uncertain-quality/106578>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [May 22, 2025, 5:38pm UTC](https://forum.inductiveautomation.com/t/historian-quality-code-1-073-742-080-1073742080-how-to-filter-values-with-uncertain-quality/106578 "2025-05-22T17:38:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tyler.bennett](https://avatars.discourse-cdn.com/v4/letter/t/f04885/32.png) [@tyler.bennett](https://forum.inductiveautomation.com/u/tyler.bennett)\
**Post date:** [May 22, 2025, 5:38pm UTC](https://forum.inductiveautomation.com/t/historian-quality-code-1-073-742-080-1073742080-how-to-filter-values-with-uncertain-quality/106578/1 "2025-05-22T17:38:04Z")

</div>

On a few different occasions I have run into a strange quality code on my historical data.

The code is 1,073,742,080 (1073742080).

In [a related forum thread](https://forum.inductiveautomation.com/t/historian-quality-code-1073742080-what-is-it/102279) I found.

> [@Historian Quality code 1073742080 - What is it?](https://forum.inductiveautomation.com/t/historian-quality-code-1073742080-what-is-it/102279/4):
>
> 256 is the code for Uncertain, and the high bits are the Uncertain severity

Indeed the hex value of 1073742080 is `4000 0100` and the hex value of 256 is `0100` so this is arguably a value of 256 ([uncertain](https://www.docs.inductiveautomation.com/docs/8.1/platform/tags/quality-codes-and-overlays#:~:text=Uncertain%20Quality%20(subcodes%20256))) with one higher order bit set.

While I don't know exactly why I am getting this quality code my more pressing need is how to eliminate these apparently "uncertain" values from inclusion results a tag history query ([system.tag.queryTagHistory](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-tag/system-tag-queryTagHistory)). The function does have a `ignoreBadQuality` parameter but when this is set `True` is does not filter out the `Uncertain` quality values.

Is there a way to filter the uncertain quality values as part of the tag history query?

I have custom aggregation functions to find the change in a counter value between intervals and the erroneous values are messing up the algorithm.

---

<div class="post-metadata">

**Author:** ![tyler.bennett](https://avatars.discourse-cdn.com/v4/letter/t/f04885/32.png) [@tyler.bennett](https://forum.inductiveautomation.com/u/tyler.bennett)\
**Post date:** [May 22, 2025, 6:26pm UTC](https://forum.inductiveautomation.com/t/historian-quality-code-1-073-742-080-1073742080-how-to-filter-values-with-uncertain-quality/106578/2 "2025-05-22T18:26:56Z")

</div>

UPDATE  
Looks like the `ignoreBadQuality` may actually filter out the `Uncertain` quality values. In my data I had an anomalous value that was actually marked with "Good" quality and that is causing the issues I was attributing to the "Uncertain" quality values.
