Google Data Studio, Geo Chart, some data coming through as (not set) - google-data-studio

I'm using a Geo Chart in Google Data Studio. It is only set at the state level, so when viewing the map, you see the United States and each of the individual states on it. If you do NOT apply a filter or segment to it, some of the state data comes through correctly, but on several states, it does not. In specific, various international cities appear on hover rather than U.S. state data. For example, you can see here that hovering over Texas brings up Victoria.
I found this post in stack overflow GA GEO Chart cities labeled incorrectly. It essentially suggests creating a filter. It is almost working correctly. I have tried to apply a filter, a segment, and both to the data. The strange city data goes away, replaced by the correct state data, but I have one state where the data comes through as (not set) rather than as the state. In specific, hovering over WI brings up (not set) data. It is the only state where I have a problem.
If anyone has any suggestions, would love to hear it. Thanks!
Also, when you change the chart to a table, all of the data appears correctly, so WI and TX both have their data correct from the source.

I not only have a segment/filter for the United States, I added a filter to exclude all (not set)'s. The state data now comes up fine!

Related

How can I make a photograph database that displays the results of a query as some kind of image gallery?

I am taking a database design class and for a project want to make a database of my mom's digital photos for her. I haven't dealt in application up to this point, only theory, but I have Access. Therefore, ideal answers don't suggest non-database solutions and don't assume I know much about actual database implementation. Solutions specific to Access could also be a plus. I hope that precursor saves some time and effort.
Theoretically, my mom wants to see all photos of pets from '05-'07 in raw format, and she enters an appropriate query. I suspect I can handle it up to there. However, at the moment, the best I can figure out to do is to return a column of either attachments or OLE objects. 5 clicks per photo is not ideal. I need a faster way to present the images. Opening them all in a grid of thumbnails or as a one-click-slide-show would seem the natural fit, but whatever works. How can I accomplish this?
Less important but worth consideration is the fact that, at some point, it would be great if this same type of system could be implemented on the internet for all of the family reunion photos she has taken, but I will take what I can get.
Use one form to get parameters for the query. then use another form(more processing) or report(if printing) to show the selected pictures. I will not cover passing parameters but here are some links.
https://www.fmsinc.com/microsoftaccess/forms/openargs/index.htm
https://learn.microsoft.com/en-us/office/vba/access/concepts/forms-design/apply-a-filter-when-opening-a-form-or-report
There is a complication, in Access pictures are usually stored in the attachment type. the attachment column can hold many pictures in each record. So if we have a table called Pictures with an attachment type column also called Pictures, then each individual picture is actually stored under Pictures.Pictures.FileData.
So to display the picture query we use a form/report with default view set to Continuous Forms (displays many records or in this case pictures on the same page) then in the details section of our Display form we place an attachment control and bind that control to our filtered Pictures.FileData.
Format and add functionality to taste.

Datastudio Geomap Drilldown vs GoogleMap visualize issues

I was playing with DataStudio GeoMap and GoogleMap features, I used Covid US datased. I made some research what is best for showing charts via GeoMap & GoogleMap, I made report with 6 slides, each slide has Title with used method and I found below issues:
1) Drill down for GeoMap not working often, state/regions not showed,
2) in slide #2 GeoMap: used 3 Geo Dimension: Lat/Long, City, Region : how to show City names ? (and disable Latitude?)
Seems that best way is showing via GoogleMap (slide #6) with Bubble dimension :Lat/Long with Tooltip: City > then values are showing to Cities,
only issue is how to setup default zoom region US, to avoid showing whole world ?
Here is report:
https://datastudio.google.com/reporting/f0201b38-c2ae-400c-8ca0-d65d001c9e3a/page/DOdRB
One note: in My old report from today somehow I was able to create report with drill down 2-layer GeoMap, used Dimension: City+Region > not accurate, many cities are missing:
https://datastudio.google.com/u/0/reporting/a729972f-97ec-4faf-8311-a49719d0826c/page/TeaRB
Trying to import GoogleMap via embded frame, but I got this error>>
Google Maps cannot yet be displayed in embedded reports.
Question 1: Google Maps & Filters
Opened the Report above, exported the Google Maps data to Goggle Sheets, recreated a Data Source and Report, and then had a look through; it seems that the data in the City field is sorted, classifying values outside the United States as NA, in addition, removed 0,0 values in the Latitude_Longitude field, thus this Filter does the trick:
Exclude City RegExp Match (NA)
AND
Exclude Latitude_Longitude RegExp Match (0,0)
Editable Google Data Studio Report and GIF to demonstrate (Feel free to have a look through and edit the Report as required):
Question 2: Geo Maps & Drill-down
The updated Filter in Question 1 should do the trick when using the Geo Maps Chart Type, with all three Geo Types - Latitude_Longitude City and Region working as expected using the Drill-down and the Zoom area set to United States; adding an image of the Filter above for clarification:
Google Data Studio Report and a GIF to elaborate:
Question 3: Embedding Map Charts
Geo Maps can be displayed on embedded reports.
Currently, Google Maps won't appear in embedded reports.

WiX - Dataset Mismatch

I have a website for my Theatre Institute and on the homepage, I have a Slideshow with Two Repeaters on two different slides connected to two different datasets. I use them to display event information/status from my database collection.
Slide1: recentRepeater <-- recentDataset <-- myCollection (For Recent Events)
Slide2: upcomingRepeater <-- upcomingDataset <-- myCollection (For Upcoming Events)
The Problem
While loading, the dataset2 data is shown in repeater1 i.e. RECENT EVENTS gets displayed in the UPCOMING EVENTS section and it gets corrected after fully loading. Being the first thing to be shown on the site, I do not want it to get messed up. This is a negative impact on my website
How It Works
I have stored dates of the Event in the database as a number in YYYYMMDD format. For example:
20-April-2019 ---> 20190420
I have properly connected the datasets to the repeater elements, set the dataset result limit to 2
I sorted the results to be produced based on the YYYYMMDD number
Ascending for upcomingDataset
Descending for recentDataset
I generate the YYYYMMDD format number for that day and filtered the results produced by the dataset by the .setFilter() function
$w("#recentDataset").setFilter(wixData.filter()
.lt("dateNumber", YYYYMMDD_today)
)
$w("#upcomingDataset").setFilter(wixData.filter()
.ge("dateNumber", YYYYMMDD_today)
)
How can I prevent this from happening..?
Thanks in Advance
It's hard to say what's going on without actually playing with your site. I think both of your datasets are connected to the same collection. I would guess the problem is that the dataset is only being filtered after the page is loaded. You can verify this by turning the console to verbose mode in preview.
If that is indeed the problem, I can think of three possible fixes/workarounds:
Set the filter's in the dataset settings instead of setting them programmatically. (This is the easiest option.)
Hide the repeaters until the filters are set. (This is a bit of a hack.)
Store the promises returned by the setFilter functions and return them using Promise.all() from the onReady(). (This is the fanciest option. I think it will work, but if you don't need to set the filters programmatically, you might as well do option 1 instead.)

Dynamically disabling menu based on database query?

So I'm not a programmer, but my friend is. He's trying to help me develop a web/phone app but we are stuck because I'm having trouble communicating to him an idea and he is having trouble understanding. One or both of us is a moron ;) Part of the problem is that I don't even know where to search for the answer cuz I don't know the specific search terms...believe me I've tried...and I've searched stack overflow as well. Here is the problem:
Short Question:
Websites (like hotel search) allow you to search for rooms by selecting checkboxes in certain categories (i.e. smoking/nonsmoking, stars, size of bed, near downtown, etc.). Certainly these sites are referencing a large database of hotels in a city.
How can you create a site so that as you check boxes (narrow your search), other options which are no longer available are dynamically "grayed out" or disabled on the fly so you cannot check those boxes. So if I were to check 4 stars and that excluded all smoking rooms based on the database, then the option to check "smoking" would be disabled.
The key to this is that the site is querying a database as you click boxes, then based on the results of that query (which is presumably many rows of data (a subset)), it is analysing that subset of data to determine whether checkbox options should be on/off, then dynamically "graying out" specific options that are no longer available. Once you got to only a single possible result, then the site would pop up the website for that hotel (or some other action).
What is this called? Where can I get more information on this. Any pointing toward the right direction would be tremendously appreciated.
Thanks so much in advance!
Roy
HERE IS AN EDIT TO ORIGINAL QUESTION...HERE IS AN EXAMPLE:
So here is my sample database. Each Column (i.e. AA, AB, AC) represents a checkbox. '1'= True, '0'= False, and '2'= Either. Therefore, if you click checkbox AA, then only the top three rows would meet the criteria of AA=True. So query would return the top three rows. The '2's could be either True/False so since they don't affect outcome, those checkboxes should be disabled and only the checkboxes CA,CB, & CC should remain choosable. If you then click checkbox CB, then result ZYX would be output.
Conceptually, How do you go from the initial click to the point where the database is queried and the results are used to dynamically change the menu. People have suggested javascript but i am not looking for a language. I am more looking for the concept. I was thinking that the query would return a new "temp" array with just the top three rows. Then each column of this "temp" array would be queried to see if it contained a '1' in any of the rows. If it did, then that button would be turned "ON". If it didn't then that button would be turned "OFF". Is this confusing? Am I asking for too much ;)
This sounds like javascript could help. For example, using jQuery, you can dynamically send queries to databases based on whatever you click on checkboxes, and then reload a particular section of the webpage. Javascript can also dynamically disable checkboxes.

VB.net Winforms dropdownbox data load question

I have a VB2005 winforms application that will loads city data from my database table. This is to ensure that the user enters the correct city spelling, in order to receive an accurate quote. Currently, there are about 150K cities that are being loaded to the dropdown listbox on page load. It takes about 30-40 seconds for that page to load.
My initial thought was to allow the user to select the state first. Then load the city values. But the user has the option of going back and requesting a quote for a different city / state.
Is there a more efficient way to handle this?
Quotes are based on state and city name? If so, your approach sounds good, but consider basing quotes on zip instead, or zip/city name. Not everyone will find their city in your 150K list, and some don't live in named cities at all.
For starters you could have a BackgroundWorker or Thread load the data in the background into an array or list. You'd then pass this data to the comboBox when needed.
If you use this method, you must find a way of reindexing the fields from time to time though.

Resources