I am using Grafana WorldMap panel and Influxdb as the data source to plot the points of a vehicle.
Now, I when I hover over these points, it displays like this n/a:NaN
I don't know what is this n/a : NaN,
I want that when I hover
over these points, I should get that how many times this point is stored in the database(or any other info like the tags associated with these points). How can I do that?
Some data from Influx:
time geohash host location value
1490602036767444479 tekx7nfjs6rt Luv-Inspiron 100
1490603677196025990 tduw7hf1k3zs Luv-Inspiron 15
1490603780222510535 ttw58x6qxue9 Luv-Inspiron 6
1490603911122290125 ttw58x6qxue9 Luv-Inspiron 6
1490604983924097158 ttqn096mpz59 Luv-Inspiron 19
1490699614650281185 dr5rsgyct32n Luv-Inspiron Bangalore 19
1490699654166573019 fdf92s8typst Luv-Inspiron Bangalore 19
I added location just recently, thats why some are not having that location data.
When I add alias(metrics) in the Metrics tab, then these show different colors according to the values,
Can you please explain why?
You are missing two additional steps:
add alias(metric) to your select query
Add metric to your Table Label Field in the Worldmap tab
Read more about it in the readme
When I add alias(metrics) in the Metrics tab, then these show
different colors according to the values, Can you please explain why?
That's because you defined Thresholds under Worldmap -> Threshold Options
Related
I am having trouble understanding how can I enable color pallet for my timeseries graph.
My table view of data coming in Time series graph is like this
name
count
timestamp
abc
2
2023-02-13 06:14:00
bcd
5
2023-02-13 06:20:00
xyz
3
2023-02-13 06:31:00
xyz
7
2023-02-13 06:45:00
Now according to me if I select Classic pallet for color scheme it should assign individual color for each unique column name entry. But right now it is assigning Single base color to all the entries.
Am I doing something wrong or is there some setup which I am not doing correctly.
-I'm trying to create a google sheet that tracks progress of players in a team.
-Each season has its own tab.
-A tab that combines data from all sheets is needed.
-The players in the seasonal tabs are going to be in different order each season based on their performance, there are also going to be players coming and going so I can't know which row is going to include which player's data.
-The combined table needs to be able to refer to rows in other tabs where the player name is present, and count up total points for them.
Picture 1 is individual season table. Picture 2 is where I was stuck. Picture 3 is the desired output, which was achieved using the answer provided.
Example of desired output:
Player
Season 17
Season 18
Total
Player1
1800
880
1680
Player4
100
100
200
Player12
50
21
71
Player2
33
11
44
Player3
2
5
7
Player33
1
2
3
You can merge all the data in a new sheet by using the following formula:
={FILTER(Sheet1!$B$3:$P, len(Sheet1!$B$3:$P)),
FILTER(Sheet2!$B$3:$P, len(Sheet1!$B$3:$P)),
FILTER(SheetN!$B$3:$P, len(Sheet1!$B$3:$P))}`
You have to repeat the FILTER(...) part for each sheet.
In the new sheet, get the list of unique user names with =UNIQUE($A:$A), where A is the column with the player names. You can also use a list you already have instead.
You can then use =SUMIF($A:$A;P1;$B:$B) to compute the grand total for each player, where A is the column containing all the names, B the column containing all the total scores, and P the column containing the UNIQUE player names.
Alternatively, you can use =VLOOKUP(P1, SheetN!$B$3:$N$100, 13, FALSE) in the new sheet to read the total score of the player with the name in the cell P1.
I think that with more advanced magic you may be able to automatically gather the data from all the sheets, but in this case you have to manually type each heet name.
I am new to tableau. I need your help to create a calculation field in Tableau.
I have a big data an excel file format.
A sample data is shown below.There are two model runs for same units and both models derive different values.
Unit Latitude Longitude Model_Name Value
1 43.12 9.12 Model_1 53
1 43.12 9.12 Model_2 42
2 52.09 10.11 Model_1 105
2 52.09 10.11 Model_2 206
I want to create a calculation field in tableau which gives me the difference between values of same unit and different model (here between Model_1 and Model_2).
It should be look like:
Unit Latitude Longitude Difference
1 43.12 9.12 11
2 52.09 10.11 -101
Could anyone please help me to create this calculation to plot a graph/visualization?
Thank you.
Having the following statement:
SELECT * INTO ZZZD FROM P4978
Output:
result
time written
1970-01-01T00:00:00Z 231
Using:
SELECT * FROM ZZZD
I get only 7 lines even if there where 231 lines written. I can't figure why there are only 7 lines. Is there some setting or this is a defect? I'm not able to copy from a measurement to another measurement more than 7 lines.
If you want an exact copy use:
SELECT * INTO ZZZD FROM P4978 group by *
If you don't specify group by *, the tags will turn into fields.
You can verify the tags with show tag keys from ZZZD and the fields with show field keys from ZZZD
Source: https://docs.influxdata.com/influxdb/v1.5/query_language/continuous_queries/#common-issues-with-basic-syntax scroll to issue-4
Into clause is now working with influxDB 0.12 and above.
SELECT * INTO ZZZD FROM P4978
This will work
The INTO clause is intended for use with the downsampling continuous queries. Kapacitor is a better tool for copying data from one measurement to another.
I've got data that looks something like this:
Campaign Date Clicks
EmailA 14/08/01 20
EmailB 14/08/01 10
EmailC 14/08/01 5
EmailA 14/08/02 15
EmailB 14/08/02 7
EmailC 14/08/02 3
EmailA 14/08/03 10
EmailB 14/08/03 5
EmailC 14/08/03 1
I'd like to be able to set up a Google Spreadsheet chart to draw a line for each campaign, with the clicks charted out over time.
However, I've got to do this with lots of data, so manually adjusting the data (besides changing sorting) isn't really an option. And I don't want to have to manually define data ranges.
Is this possible? I know Google Spreadsheets isn't as complex as Excel, but I'm hoping this is doable.
Thanks for your help!
You can create a new table using QUERY (this will dynamically update as the source data changes):
=QUERY(A:C,"select B, sum(C) where B is not null group by B pivot A",1)
This pivots the data on the campaigns, and should facilitate charting the three series.