Kusto - Conver table data to time series chart - azure-data-explorer

I have a Kusto table result with different package sizes released for 2 types of VM´s on daily basis. On the table I have the 3 columns - 1) Timestamp, 2) VM Type (Win & Linux split), 3) Package size in MB.
Could you please tell me how do I create a graph that will have Y axis as timestamp, x axis as Package size and with the line representing the package size for VM (Win & Linux) Basically it will appear as 2 lines on the graph showing the package sizes for diff days.
I tried with visual type - line chart option but it does not work with any combination of X and Y axis in Data column. I am not sure if the render time chart will work . Could you pls provide any suggestion. Thanks

If I understood your description correctly, you could try something like this, assuming Timestamp is a datetime column:
TableName
| summarize take_any(PackageSize) by VmType, bin(Timestamp, 1d)
| render timechart

Related

In App Insights how to assign text labels to the X-axis values?

Consider the following query:
...
| project minutes, agentCount, maxDOP
| summarize round(avg(minutes)) by agentCount, maxDOP
| order by avg_minutes asc
| project rn=row_number(), avg_minutes, strcat('A', agentCount, 'x', maxDOP, 'M')
| render columnchart
This produces the following graph:
The problem is that the labels down below are sorted lexicographically, which does not correspond to the actual order by avg_minutes. I would like to have these text labels instead of the row numbers on the graph, but I cannot figure out how to do it.
Displaying them inside the bars (turned vertically, of course) is also a solution, if possible. Anything that would make clear which label corresponds to which bar would be much better than the current display.
Column chart is a type of categorical charts allow users to represent a dimension or column on the X-axis of a chart, this is especially useful in histograms.
Coming to your problem -
I would like to have these text labels instead of the row numbers on the graph, but I cannot figure out how to do it.
You can achieve it simply by removing the row number from the project line of the query, as shown below.
...
| project minutes, agentCount, maxDOP
| summarize round(avg(minutes)) by agentCount, maxDOP
| order by avg_minutes asc
| project strcat('A', agentCount, 'x', maxDOP, 'M'), avg_minutes
| render columnchart
I tried something similar with sample data in Azure Data Explorer as and achieved the desired result as shown in the picture below.
I would suggest to read Use Kusto queries document from Microsoft and Chart visualizations document for more information.

PowerBI skipping month in bar chart

I have created the attached dashboard in powerBI. It is a monthly report. That shows the count of item each month. The dates are in this format 1/1/18, 1/2/18, 1/3/18 that the first day of every month
When I created the report powerBI are skiping one month at interval. See Pix attached.
how can i show all months?
Desired
I believe you'll need to change the "X-Axis" type to "Categorical". It looks like it's defaulting to Scalar, which makes a continuous axis and picks tick marks based on available space.
You could try decreasing the font size of the month labels since Power BI might be avoiding overlap. You could also try shortening the length of the label from MMM-YYYY to MMM-YY.

Plotting multiple lines in Tableau

I read every possible forum and I couldn't find a specific answer. I'm new to Tableau and I need to perform what I thought would be a very simple task but I can't figure it out.
I need to create a chart with multiple lines plotted in the same graph. On one column, I have a timestamps in seconds (decimal). For each timestamp value, I have 4 columns associated (Temperature, Pressure, Humidity, Voltage) and I need to visualize how they trend over time. The data in Excel looks something like this (I simplified it for visualization purpose):
In Excel, it takes me less than seconds to obtain a chart that looks like this:
How can I replicate the same exact chart in Tableau? I would like someone to tell me exactly how each column should be formatted, if the data has to be a dimension or a measure and data type for each (string, number etc) and what steps to take in the chart. I would do this in Excel but the file is almost 1M rows and Excel keeps crashing.
drag & drop measure values & timestamp.
EDIT - first make Timestamp a dimension instead of a measure, and make sure it remains continuous instead of discrete. So you should not see the word SUM in front of Timestamp
remove no. of row & timestamp from the measure values.
uncheck aggregate measure.
EDIT this step is not usually needed or desirable. If you do have multiple recordings per Timestamp, you will want to select the best aggregation function for each measure, perhaps AVG or MEDIAN instead of SUM
select line from mark and drag measurement to color
If your X-axis is a Date Column, (i.e. You have a list of dates on your X-axis)
Drag your 'date column' to Columns and choose Month/Year/Week etc. and make it continuous
Drag 'Measure Names' to Filters and choose your Measures
Drag 'Measure Values' to Rows
Drag 'Measure Names' to the Colors section of the Marks card

Plot actual value on y axis in kibana 4

I want to plot time on x axis and a numeric field 'f' occurring at that time on y axis in kibana 4.
I have changed the data type of 'f' to integer and I can confirm that it has changed from kibana index settings.
However, the only aggregation options available for Y axis are count/min/max/sum etc. This post has an answer for plotting sum but I'm interested in plotting actual values.
Is there a way to do this?
You probably want to check this.
tl;dr
The data you want to plot, are not numbers.
Update your grok filter to something like this %{NUMBER:time:float} instead of whatever you have.
Re-index/re-hash your elasticsearch (i just deleted my data and restarted the whole thing)
Goto Kibana4 -> Visualize -> New line graph
In Y axis select max and in the field, select your number field.
Kibana is plotting a bucket, e.g. every minute.
As such, aggregations are in order. I frequently plot average and max on the same chart to give me a good overview.
If you reduce the time period, the buckets get smaller, but I don't think you can ever make them "just 1 document".

Date Axis in a Telerik Reports Line Graph

Does anyone know how to set up a date time axis to use DateTime Scale in a line graph in Telerik Reports? I have been trying to figure it out for over a week now. I don't understand why this thing has to be so difficult to use. I started by setting up a line graph.
I have three columns DATE, SALES_COUNT, and SALES_TYPE. I want there to be three lines on the graph. One for each value of SALES_TYPE. I used SALES_TYPE for the series, SALES_COUNT for the value, and since I didn't have any other options left, I used DATE for Categories. I clicked finish and previewed my graph. The graph looked right except I wanted to make a few customization to the DATE axis. Specifically I only wanted it to write out a date label for every 5 ticks or so. There was no way to do this.
Eventually I figured out that I have to set the axis to use DateTime Scale since it defaults to Category Scale. I set it to date time scale and previewed the graph again. I got the error: "X value cannot be null or empty when using DateTimeScale, lineSeries1", so I went to lineSeries1 and set the X value to "= Fields.DATE", and clicked preview. Now the graph nolonger displays any of my data points, and there is only one tick on the DateTime axis and its labeled as 1/1/2015 12:00:00 AM, a DateTime that is not even in my dataset. I have been struggling for over a week now to figure out how to do this simple task. Please help me.
The SQL query I was using was handed to me by the DBA. I never really looked at it, I just stuffed it into the report. It turns out the query was returning the DATE column as a varchar. Once I cast the DATE column as a date in the select column list of the query, Setting the axis to use DateTime Scale worked fine. If anyone else runs into a similar problem, check the return types of your columns.

Resources