I created a map of geolocated tweets in a tableau map. I am trying now to crate, inside this map a time lapse according when these tweets were tweeted for a presentation, but I cannot find the way. Actually I don't know if that is possible with tableau.
I attach a capture of how the maps looks right now with all the tweets.
map with tweets
If you have a dataset which is not updated on a regular basis with new dates, then I might have an idea:
right-click on [created_at] and create a parameter based on that dimension
right-click this parameter and "Show Parameter"
change the appereance of the parameter-card to "Slider"
then create a calculated variable to get a filter on the date, something like this:
IF [Date Parameter] = [created_at] THEN "show"
ELSE "hide"
END
with this filter on "show" you can only see the tweets of that exact day
Here is my result with an exemplary dataset.
(It should work the same way on maps.)
Related
I am making a company staff meeting attendance record form, now I want to through the function to directly get the data of staff in a specific date, but because the column of the data is not uniform, so the basic Vlookup() can not achieve this effect.
For example, I want to search the form by staff name to get the content of 1.24 (cell content contains 1.24). I would like to ask how to achieve this function and I would appreciate if u can help me. thank u!
My record form is here:
I've tried to do this by Vlookup() function but failed. It just can get the data in specific column. I want to get the data that contains specific date.
Let's say you insert your date in B19, you can erase your formulas in B20:B24 and use:
=BYROW (A20:A24, LAMBDA(each,IFNA( FILTER (INDEX(D1:Z12, MATCH(each,A1:A12,0)), REGEXMATCH(INDEX(D1:Z12, MATCH(each,A1:A12,0)),SUBSTITUTE(B19,".","\."))))))
I have a table of events from google sheets that I want users to be able to filter by date in Google Looker Studio. The events have various lengths, so each has a start and an end date in the table (as well as a bunch of other columns). For example:
Event
Start Date
End Date
A
02/15/2023
02/20/2023
B
03/01/2023
04/30/2023
C
02/23/2023
03/01/2023
I want users to be able to filter for anything that is happening in the event range they select. For example, if they input the date range 02/26/2023 - 03/15/2023, the table should filter down to show events B and C, since those have ranges overlapping their input data range.
I've tried a few different approaches that all have drawbacks:
Using the Looker Studio date range control. This seems to only filter based on the Start Date OR the End Date, and not have the ability to look at both.
Applying a Date Filter in the chart. If I apply the following filter (under Chart - Filter - Table Filter), it works great to show anything overlapping the desired date range:
Include - Start Date - Less than or equal to - 03/15/2023
AND
Include - End Date - Greater than or equal to - 02/26/2023
However, I had to put these dates directly into the filter, which is not what the user should have to do. Is there a way I can have them input the date range they are interested as a control, and I can feed that information into the Date Filter above? (So they would put in a start date and end date that would replace where I have hard coded 02/26/2023 and 03/15/2023 above).
I have also set up this filter in Google Sheets to work exactly as I want it. Anyone can enter a start date and end date in a couple cells, and I use the filter() function with the same logic as in #2 above to filter the table down to what I want. The disadvantage of google sheets though, is if multiple people are there at the same time, they do not have their own view of the report. I switched to Looker Studio because it allows view-only users to filter their report independently.
Edited to add: This report is intended to be used by viewers with limited experience using google sheets or looker studio, and possibly on phone or browser, so I'm trying to make the filtering as easy as possible.
the ability to filter data independently & at the same time for multiple users is natively possible in google sheets with Filter Views:
I am having trouble with two things trying to setup my report on Google Data Studio.
Using numbers with dates.
I have some numeric values to use with dates. However, I have the same date for different values and google sums up those values and I need them separated.
Also, when a certain day does not have any value, google gives it value 0 and I cant have that because the value isnt 0, I just need it to skip those days. I have generated a graph as an example.
I can´t generate a graph using text as a dimension. I think I am doing something wrong but I wasn´t able to.
Table:
Graph:
1) On the line chart, set the date as dimension, set the city as the breakdown dimension, the clicks as the metric.
2) create a chart filter and exclude when the "clicks are null"
The output of Mahout (0.11.1) spark-itemsimilarity looks like:
3705021559 3705021558:241.35418715327978 3705021546:163.6168323904276
By my understanding, its format is:
(item)tab(item1:score)tab(item2:score), item1, item2, itemx...
are so called indicators.
My question is how to use the indicators?
In some examples like
https://www.mapr.com/products/mapr-sandbox-hadoop/tutorials/recommender-tutorial and https://www.mapr.com/blog/mahout-spark-whats-new-recommenders%E2%80%94part-2,
we index the indicators, and we get the recommendation by query the indicator field, then we get the recommendation. To me it looks like: we form a list of what people bought as an indicator list, and we query Elasticsearch/Solr with the indicator list, and we get the recommended (similar) items. In this approach we query the indicator field to get similar items.
Why is it not simply like: if we know what people bought as a list, and we query ID field to get the indicators as result. In another words, the output we got from spark-itemsimilarity has already told us what items (indicators) are similar to an item?
Maybe I misunderstood the meaning of indicators, anybody please kindly clear my question?
3705021559 3705021558:241.35418715327978 3705021546:163.6168323904276Is exactly the format (item)tab(item1:score)tab(item2:score)
The first item is the item being compared to all the rest. So this is saying that compared with 3705021559, 3705021558 has a Log-likelihood ratio of 241.35418715327978 and so on.
The output matches you input so if 3705021558 is not an item id you may have specified the location of the item in the input. Run spark-itemsimilarity with no params to get help output. you can specify where in the input TSV yous item-id is, where the user-id and where your indicator-name is.
BTW if you are planning to use this in a recommender try out the Universal Recommender, which has event capture and a recommendation server all integrated.
http://templates.prediction.io/PredictionIO/template-scala-parallel-universal-recommendation
Can I fetch all the tweets from users of a particular location filtered by a particular keyword?
For example, I want to look up all the tweets made during a day in a particular location with a keyword "XYZ". Can this be done?
Yep, you can use the form on http://search.twitter.com/advanced to construct an advanced query.
Also check out http://dev.twitter.com/doc/get/search for more API info.
So, for example, finding tweets containing "very nice" from users located within 100 miles from Los Angeles would be written as:
near:"Los Angeles" within:100mi "very nice"
Your search URL would then look like:
http://search.twitter.com/search?q=near%3A%22Los+Angeles%22+within%3A100mi+%22very+nice%22
You can also get these results in JSON or ATOM format but you'll need to include the geocode parameter that the search page generates. Easiest way to find this is to copy the param from the "Feed for this query" link on the top-right of the page.
So, results in JSON format:
http://search.twitter.com/search.json?geocode=34.052187%2C-118.243425%2C25.0km&q=near%3A%22Los+Angeles%22+within%3A100mi+%22very+nice%22
Results in ATOM format:
http://search.twitter.com/search.atom?geocode=34.052187%2C-118.243425%2C25.0km&q=near%3A%22Los+Angeles%22+within%3A100mi+%22very+nice%22
Specifying a date range is also possible; use the advanced search form to help you construct what you need.