How to turn off data formatting in table in time series data in grafana? - export-to-csv

How do I turn off formatted data option by default so that the user can download the data as it is without any extra steps ? See the images for reference
Formatted data on
Formatted data off

Related

How to Display a single Date in Google Data Studio?

I want to display a single date dynamically in Google Data Studio. e.g. I want to display last Monday's date whatever it was e.g. 09-11-2020 and it would change to 16-11-2020 as the Monday 16-11-2020 would pass and so on.
I have a connection with BigQuery and I can connect from there to bring the date dynamically from BigQuery as:
SELECT DATE_TRUNC(DATE_ADD(CURRENT_DATE(), INTERVAL 7 day), WEEK(MONDAY)) as coming_monday
&
SELECT DATE_TRUNC(CURRENT_DATE(), WEEK(MONDAY)) as last_monday
So calculating dates isn't a problem as they are being received in Google Data Studio, however, I could not display them appropriately using any of the Google Data Studio tools like Text, etc.
Dates can currently be displayed in Google Data Studio Scorecards; in addition, the Calculated Fields in the question could be recreated by copy-pasting the below into the respective Scorecards, aggregating by MAX or MIN (which would display the same Date in this scenario) and then setting the Type to Date (Default: Date & Time):
1) Coming_Monday
DATETIME_TRUNC(DATETIME_ADD(CURRENT_DATE(), INTERVAL 7 DAY), ISOWEEK)
2) Last_Monday
DATETIME_TRUNC(CURRENT_DATE(), ISOWEEK)
Editable Google Data Studio Report and a GIF to elaborate:
It cannot set single dynamic value with straightforward way as text in GDS now.
But, you can use normal Table tool of GDS with single row, and it will show as single dynamic value that you need. Scorecard can also be used.
Here is how-to of using Table.
Under Data menu, set the date column that you want to display in Dimension, and do not set Metric. Also, choose Rows per page as 1.
Under Style menu, uncheck the Show header checkbox, Rows numbers checkbox and Shows pagination checkbox.
When you view the report, it will show as text.

Filter uitable content by user parameters

I need some help. I have loaded large amount of data 52500x9 from .xlsx into UITable(whole year dataset 10min sampling period)component. I need to filter these data by date via DatePicker is it possible ? for example I want to display values from 1.1.2018 - to 12.1.2018
Here is how input looks like
enter code here

Metric showing higher value in blended data when date range comparison is added

I have two data sources in Google cloud storage buckets. I am blending them in Google data studio as follows:
I have created a simple table chart which is working fine:
But when I set Comparison date range option to Previous period, the cost numbers displayed in the same table go haywire but the summary row which displays the total cost is fine. I don't observe this issue if the data is not blended.
When you enable "Comparison data range" it only show comparable data (that means, data that can be comparable with something).
Since your data source probably contains rows of a dates that doesn't have a relative row to compare with (the previous period), that data is filtered out from your visualization.

Date in table is dd.mm.yyyy - Can't import to postgres via csv

I'm trying to add a .csv to a table in database.
All dates in the .csv is in this format dd.mm.yyyy ( 18.10.2017).
I'm importing via pgadmin and always get an invalid input error.
I've tried to use almost all date formatting options for the column but without any luck.
I would rather not change the csv manually.
Can anyone help me with this?
I almost always import data into a staging table where all the columns are strings.
Then I use queries to load the final table.
This has several advantages:
It gives me much more control over how the data is transformed.
It makes it easier to debug problems -- the entire staging table can be queried to find all rows with a particular issue (for instance).
Additional validations can be performed before loading into the final table.
This is just a suggestion, but you might find that overall this takes less time.
The DateStyle setting is probably set to MDY. You can check this by running:
show datestyle;
Although dd.mm.yyy isn't listed as a standard input format, if you expect it to work, you will need the DateStyle to line up with the ordering here (DMY).
The date/time style can be selected by the user using the SET datestyle command, the DateStyle parameter in the postgresql.conf configuration file, or the PGDATESTYLE environment variable on the server or client.
See section "Date Order Conventions":
https://www.postgresql.org/docs/current/static/datatype-datetime.html

Filling DateField and TimeField, according to a format, with incoming data

I have a datefield and a timefield in my ExtJS form and I have to fill them with data sent from the server. The server sends data in the following format (via Ajax):
date=2013-05-10T00:00:00.000+04:00,time=1970-01-01T00:30:00.000+03:00
How do I get that displayed in the form fields formatted as Y/m/d and H:i respectively? I have tried various combinations but they do not work. The fields remain either blank or filled with the entire data value sent from the server.
UPDATE:
If it would make things easier, I can make the server send the values in a different format, say milliseconds...
The data which u send from backend is in "ISO 8601 date" format this has been supported by extjs. This needs to be resolve with help of Ext.Date.format class. Refer below link for your reference.
http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.Date
You need to add 'format' config to datafield and timefield and pass your format as string.
Thanks