I am starting to use Data Studio, and I need to use more than one Date Range Filter to filter different dates, in the case of the table below:
I have already tested some Community Visualizations, but none of them met my needs, as they do not have the same date selection and view mode as the Date Range Filter (image below).
Is there a way for me to do this using the official version? If it is not possible to do it with the official version, what would be another possibility for this.
EXPLANATION:
I'm using a custom data connector created by our team, which brings data to the table according to our platform tables, this part works correctly, we bring data of names, values, ids, and dates, everything works correctly, which what I need is to add 3 Date Range Filters so that each one of them filters based on a different date field, as in the image above, but so far I haven't been able to do that, it only allows filtering on a date that I choose as a period of dimension. I've already used some community visualization extensions, but they didn't work well.
Related
I am trying to join Google analytics page views to a salesforce connected dataset of email campaigns via a blended data set.
As you can see from the screenshot below I have date fields in both cases, but I see now pairing key icon. I assume pairing happens automatically or not at all ?
My guess is that the date formats are different and that is why data studio can't pair them. I've tried lots of date fields from both sides and I never see this pairing key icon appear that I've seen in tutorial videos/online documentation.
Can I correct this by just setting up some kind of custom format function over one of the date fields ? Or is there likely something else wrong that is causing the join to not appear ?
If the fields you want to join on aren't the same format, you can create a Calculated Field. From the docs, emphasis mine:
You can create a calculated field in the data blending configuration. To do this, create or edit a blended data source, then:
In the data source that provides the fields to be used, in the calculation, click Add dimension or Add metric.
Click CREATE FIELD.
Type in the formula in the editor window, then click APPLY.
Steps to create a calculated field in a blended data source.
Creating calculated fields on a blended data source can be convenient when configuring join keys if the columns in your data sources aren’t perfectly compatible (for example, differently formatted dates or mismatched capitalization). It can also be useful for reports based on reusable data sources as report editors don't need access to that data source and can create calculations on the blended data source instead.
I'm building a model in power pivot, and have so far 2 tables retrieved from API calls. I added a calendar, linked it to my tables, and it was working fine. I was able to add a timeline linked to my Calendar date field (not fact tables date fields).
Link to the Calendar table are seen by Power Pivot
Then I updated the range of dates of my Calendar table, to go further in the past, and further in the future. Since then, when I try to add a timeline linked to the Calendar date field, nothing happens. It's weird, because Power Pivot is seeing the relationship with the calendar table, when I add the Calendar date fields in the power charts (see image 1). It's really the timeline that's not appearing anymore. If I try to add original date fields from fact tables, then the timeline adds correctly but that's not what I want.
Steps to update Calendar date range
Clicking Okay does nothing, when it usually adds a timeline
I don't know if it's a bug in Power Pivot or I broke something?
The Excel model is below
Data model, with relationships to Calendar table
Okay so I found the solution to my problem after 3 days of research. Basically by adding the timeline outside of a pivot chart, linking it to my calendar table, instead of not showing anything, it showed the error message pretty much saying that dates were not supported in Excel. So then I figured my date format was correct as it's the native calendar table, so it was probably a problem linked to the range. After a few tests, it seems anything before 1900 is not supported in the timeline, same goes for after 2099. Adjusting the range fixed it!
I have this Datastudio report with one Chart (with optional date range) and one table showing all cases.
Issue is that when I change date range for chart, it also change table values accordingly.
I understand this logic, but what if I want have one separate table showing all numbers of all time next to this selectable time chart.
Is it even possible?
So can I have two data objects independent in one report ?
https://datastudio.google.com/reporting/23ff0aaf-629c-495b-a629-a92d52af15e9
here is website with all reports
https://webcovid19.live/
Nimantha's answer is a valid approach. However, this approach can be used only for the date range filter. If you change the Country/Region filter values, both charts will get updated.
If you want both date and dimension filters to apply to certain charts, you can simply group them. From the official help docs: Restrict a filter control to specific charts: "To do this, select the filter and one or more charts. Then use the Arrange > Group menu (or right-click and and select Group). Now, the filter only applies to the charts in this group."
Groups
Minhaz Kazi's solution on Groups would be the way to go.
For future reference, adding a Google Data Studio Report and a GIF to elaborate on the method:
Original Post
It can be achieved by setting the Default Date Range of the Table to Custom and then setting the Date Range as required (in this case, the default, Auto Date Range will do the trick).
Google Data Studio Report and GIF to elaborate:
I created a simple report to track the funds raised for our primary school. Just a pie chart that picks data from a Google Sheets being maintained by the treasurer.
There is now a request to add a timestamp on the screen (the report is being shared by taking a screenshot and sharing in various social media platforms to report progress).
After some Googling I couldn't find a function that returns current time. Something like =now() in Sheets. However, it was recommended to try create the time in the source data.
So I created a field that stores the value of the current time in Google Sheets using this function:
=(now()-date(1970,1,1))*86400
I also set the Sheets to refresh every minute. The Sheets works perfectly.
On the Studio side I added a calculated field to display the time in my preferred format:
TODATE(Amount,'SECONDS','%H:%M:%S on %d %b %Y')
Again, this conversion works perfectly.
The problem is that the time refresh doesn't work on the report side. No matter how many times I refresh the data it still doesn't pick the updated time from the source. Yet the source sheet has the updated time.
As far as I can tell, the worksheet time update has to be triggered manually for the report to be updated.
That negates the whole purpose of the timestamp.
Sharing the report directly from Google Studio is not a practical option for now. Still, I have shared the report.
0) Summary
Use either:
#1 New Recommended Approach: Using Scorecards
#2 Original Suggestion: Using Tables
1) New Recommended Approach: Scorecards
It can be achieved using the CURRENT_DATETIME function (released on the 17 Sep 2020 Google Data Studio update to Dates and Times).
The below looks at three use cases using Scorecards which are aggregated by MAX or MIN (in the below scenario either aggregation would display the same Date Time); the fields will automatically update based on the chosen Data Freshness settings (for example, the Google Sheet used in this Report is set to refresh every 15 minutes) and can also be manually updated if required (by clicking on the refresh icon at the top of the report or using the shortcut keys Ctrl + Shift + E):
1.1) UTC
The default function would display a value based on UTC:
CURRENT_DATETIME()
1.2) Time Zone
A Time Zone could also be specified; for example, the below would display the the EST Time Zone:
CURRENT_DATETIME("EST")
1.3) Location
A location can also be specified, based on the TZ database name, for example, Colombo, Sri Lanka would be:
CURRENT_DATETIME("Asia/Colombo")
Added an Editable Google Data Studio Report and a GIF to elaborate:
2) Original Suggestion: Tables
The below looks at three use cases (outlined above) created using Tables.
Added an Editable Google Data Studio Report and a GIF to demonstrate:
There isn't a function to do that yet but hopefully will come soon (see:https://issuetracker.google.com/issues/78200216 which is assigned) however with a little careful design, you could achieve it using date rather than timestamp utilising a date filter.
If you don't have a date field in your data than you could simply set this to TODAY.
If you do have a date field then use the advanced date to set a start date of your field's earliest date and max date of TODAY.
You could then use some shapes / formatting to cover up what isn't needed.
Hardly ideal but maybe a stop gap?
There is a variable TODAY() that doesn't seem to be documented in their Function documentation but that works in calculated fields and may help you
I've been working on a mock stock portfolio in Excel, and I've been looking for ways to automatically update the data, eg. stock price and P/E ratio.
I have tried using a web query to MSN Money, but that just brings up the whole stock quote across multiple cells, I want data to be updated in individual cells only. The only web query solution I can think of is if someone hosted a website where each value in the stock quote was saved on a different HTML file. I could then WebQuery to that file for each cell requiring that value. However, no website offers this.
So in essence, is there any tool on Excel 2011 Mac that will let me pull individual values from a stock quote and assign them to a single cell?
You could consider the following:
For each stock, create a worksheet which contains a web query to that stock's web page.
Next, create a summary sheet, from where you link to the cells on the individual stock worksheets which contain the data you need.
Then, with 'refresh all connections' your data on the summary worksheet would update.