# Tag values with Flux query

**URL:** <https://community.influxdata.com/t/tag-values-with-flux-query/14805>\
**Category:** Fluxlang\
**Created:** [June 13, 2020, 10:32am UTC](https://community.influxdata.com/t/tag-values-with-flux-query/14805 "2020-06-13T10:32:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexio](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/alexio/32/5154_2.png) [@Alexio](https://community.influxdata.com/u/Alexio)\
**Post date:** [June 13, 2020, 10:32am UTC](https://community.influxdata.com/t/tag-values-with-flux-query/14805/1 "2020-06-13T10:32:00Z")

</div>

Hello,  
I’m in need of help with a query that has been working fine for months but then suddenly stopped.  
I’m running Influx 1.8 with a “influxdb-client-java” connector. Thus I’m limited to Flux as a query language, A query I had working is:

> import “influxdata/influxdb/v1”  
> v1.measurementTagValues(bucket: “mydb/autogen”, measurement: “marketData”, tag: “symbol” )

Data is still there is I query the database with

> show tag values from marketData with key=“symbol”

But Flux query returns empty. What could go wrong ? Direction to investigate

---

<div class="post-metadata">

**Author:** ![rawkode](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/rawkode/32/5161_2.png) [@rawkode](https://community.influxdata.com/u/rawkode)\
**Post date:** [June 15, 2020, 9:36am UTC](https://community.influxdata.com/t/tag-values-with-flux-query/14805/2 "2020-06-15T09:36:34Z")

</div>

This sounds like a bug. Can you raise this on our GitHub issue tracker, please? Tag me in it and I’ll make sure it gets picked up

Same username on GitHub

Sorry for the problem, but we’ll help get this sorted 👍

---

<div class="post-metadata">

**Author:** ![Alexio](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/alexio/32/5154_2.png) [@Alexio](https://community.influxdata.com/u/Alexio)\
**Post date:** [June 17, 2020, 6:57pm UTC](https://community.influxdata.com/t/tag-values-with-flux-query/14805/3 "2020-06-17T18:57:55Z")

</div>

Hey! Thanks for attention to the matter.  
I did some more research and found that  
function “v1.measurementTagValues” is essentially

> tagValues(  
> bucket: bucket,  
> tag: tag,  
> predicate: (r) =\> r.\_measurement == measurement  
> )

“start” param is omitted and seems to default to “-30d”, So I have changed to a call

> import “influxdata/influxdb/v1”  
> v1.tagValues(  
> bucket: “mydb/autogen”,  
> tag: “symbol”,  
> predicate: (r) =\> r.\_measurement == “marketData”,  
> start: -10y)

That worked like a charm, looks like “v1.measurementTagValues” isn’t designed for older measurements but seems wrong and unexpected.  
Anyways, would you like to get a ticket for this issue still ?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/3X/2/f/2feb065bdfd5e4b7728243aa3b9192ad3e8447c1.png) [@system](https://community.influxdata.com/u/system)\
**Post date:** [June 23, 2020, 6:06pm UTC](https://community.influxdata.com/t/tag-values-with-flux-query/14805/4 "2020-06-23T18:06:45Z")

</div>

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.
