Charts don't plot if using values below 1 second - influxdb

I am extremely new to Grafana, I am using Grafana v4.1.1, influxdb 1.2 and have a range of charts showing my data :)
If I change my __interval from 1s to 100ms, nothing plots on the charts. I can hover over and it has values at ever one second though?
I have also added the table view and cannot get milliseconds to display (tried ss.sss, ms etc). I know the data has them as viewing the date as a string displays as below

That's because there are lots of null values in your serie.
Change fill(null) to fill(none) or set Display -> Stacking & null values -> Null value to connected then Grafana will connect the value you have and skip null values.

Related

How to generate a distribution based bar chart on row_numbers

I have a SQL query that acts as a data source in my tableau desktop:
SELECT
row_number() over (order by sales) as rn,
article_number,
country,
SUM(sold_items) as si,
SUM(sales) as sales
FROM data.sales
WHERE sales.order_date between '2021-01-01' and '2021-12-31'
GROUP BY 2, 3
On tableau I dragged rn to column and sales to row to generate a bar chart. The following is the output:
I want to convert this into a 0-100% distribution chart so that I can get the following result:
How can I achieve this? Also, I want the user to filter by country level so even if the # of records increase or decrease, the distribution should always be consistent with the filtered data.
You can do this with nested table calcs.
For example, the following uses the Superstore sample data set, and then first computes a running total of SUM(Sales) per day, then converts that to a percent of total. Notice the edit table calc dialog box - applying two back to back calculations in this case.
The x-axis in this example is Order-Date, and in your question, the the x-axis is a percentage somehow - so its not exactly what you requested but still shows that table calcs are an easy way to do these types of operations.
Also, realize you can just connect to the sales table directly, the custom sql isn’t adding any value, and in fact can defeat query optimizations that Tableau normally makes.
The tableau help docs explains table calculations. Pay attention to the discussion on partitioning and addressing.

Data validation drop down list from a range, than only displays values conditionally WITHOUT using a second calculation sheet

I have a function in a data validation drop down list that shows options from a range A2:A30, but I only want it to show options that have a value greater than or equal to 10 in the column over B2:B30. The cell I am referring to is O5.
Example sheet
The purpose/objective is that I have a linear regression formula building projections based on past data about the selected mode, and I don't want the dropdown to be able to select options that have a count less than 10 (because the projection is wildly inaccurate). I would like to do this without creating a second tab or hidden section that populates a second range under those conditions, and then rerouting the data validation to that range.
Any suggestions towards this goal or towards learning about the general idea will be appreciated.
I have come to an indirect solution by manipulating the data in a different way specific to my example sheet. I changed the data validation drop-down range from A2:A30 to A2:A5, and then changed the =unique() formula to a query that fill in the options, the count for that option, and then sorts it ascending so that the top spots are the ones with the most data. Therefore the linear regression will be somewhat limited to the options with better data.
The query is:
=query('Data Sheet'!$A$2:$C, "select A, count(A) where A is not null group by A order by count(A) desc label count(A) ''")
All of the rest of the formulas are built off of that query, including the data validation drop down. It is in my example sheet.

Google Data Studio: how to create time series chart with custom Big Query query

I have a Data Studio report with a Time Series added. The data source is from a custom query using the Big Query connector:
select user_dim.app_info.app_version, count(1) as count
from [my_app_domain_ANDROID.app_events_20160929]
group by 1
According to the Data Studio documentation at: https://support.google.com/360suite/datastudio/answer/6370296?hl=en
BigQuery supports querying across multiple tables, where each table has a single day of data. The tables have the format of YYYYMMDD. When Data Studio encounters a table that has the format of YYYYMMDD, the table will be marked as a multi-day table and only the name prefix_YYYYMMDD will be displayed in the table select.
When a chart is created to visualize this table, Data Studio will automatically create a default date range of the last 28 days, and properly query the last 28 tables. You can configure this setting by editing the report, selecting the chart, then adjust the Date Range properties in the chart's
However, in the Time Series Properties DATA tab, there no no valid "Time Dimension" to select. According to the documentation, I should not need to select a Time Dimension. It should query the right table automatically.
Something I am not understanding yet?
There are 2 issues with the query in the question:
To get a time series, you'll need to add a time based column to the custom query.
For example:
SELECT created_at, COUNT(*) c
FROM [githubarchive:day.20160930]
WHERE type='WatchEvent'
GROUP BY 1
Data Studio won't do the 28 day expansion with custom queries. To get the expansion featured in the documentation, you need to point to an actual table (and Data Studio will figure out the prefix and date expansion).
I left a working example at:
https://datastudio.google.com/open/0ByGAKP3QmCjLSjBPbmlkZjA3aUU

How can I create a table in Grafana that shows Tag and min/max columns (no time)

I'm trying to figure out how I can set up a chart/table in Grafana that will group by a tag and then show the min max in two columns. So basically 3 columns, TagName, Min, Max. I've been trying to set it up, but the Time column is always there. Any suggestions?
You could use the Table Graph type and achieve that. Something like this

Excel 2010 dynamic named range is replaced with the calculated range

I am trying an experiment using a series of dynamic named ranges to generate a series of charts under Excel 2010 (Microsoft Office Professional Plus 2010).
The problem I am running into is that the name of the dynamic range gets replaced by that calculated range after the name is entered.
In this experiment I am using a simple line chart to show the data.
I am selecting the Select Data... pop-up menu option for the chart.
In the Select Data Source dialog box, I enter the named data range into the Chart data range TextBox, and hit enter.
I enter ChartNumbers and it gets replaced with =Drawings!$E$316:$E$465
I have ChartNumbers defined as =OFFSET(Drawings!$E$11,Drawings!$X$4,0,Drawings!$W$4,1)
After setting the chart's data range, any changes I make to the size of the data table are not reflected in the chart. I have to reapply the named data range to get the chart to show the new data set.
All the examples I have seen, mention nothing about Excel replacing the named data range with the calculated range.
Is there a different method I have to use for charting a named dynamic data range?
Is there a checkbox somewhere to prevent this from occurring?
There are 2 issues you may be running into when using named data range:
You MUST do this to the chart series not the chart data range as Excel will translate the Offset named range to an actual range that will not remain dynamic.
When adding the named range to the chart series, you MUST reference both the file name as well as the named range (i.e. FileName!NamedRange).
Here is a detailed posting and video to help you out.
case-study-creating-a-dynamic-chart-in-excel-using-offset-formula
Let me know if it helps.

Resources