Data validation in google forms related to questions - google-forms

hiii, i am new here, I am preparing a google form, and wanted data validation details as below:
Question 1 - how many children with you
Ans (example)- 3
Question 2 - Son
Ans (example)- 1
Question 3 - Daughter
Ans (example)- 2
I want validation in last both answers, that Answer 2 & 3 must match with Answer 1
waiting for your fruitful responses...

For validating check the official support google docs
check this below mentioned links for validation in google forms
reference: https://support.google.com/docs/answer/3378864?hl=en

Related

Compare 2 custom dimensions using filters

On first sight it seems impossible to compare one custom dimension to another using filters.
Case:
I've got 2 custom dimensions, I want a report where I can see how many of my visitors have CD1 = CD2, generic that is , so no specific cases.
In other words : show me every record where CD1 is exactly the same as CD2.
Is this possible?
In my answer, I am making the assumption that CD1 and CD2 are session scoped custom dimensions. These really aren't perfect answers to your question, but no other natural way springs to mind. To find how many sessions match this criteria, you could:
1 - Use BigQuery
Not available for free users, but with premium access, you could run simple SQL to list all users WHERE CD1 = CD2
2 - Custom Report Then Filter
Using a custom report feature, you would enter both CD1 and CD2 as dimensions, and select sessions as the metric. This would give you a report that may look like:
CD1 CD2 Users
--- --- -----
A A 100
A B 200
B A 100
B B 200
From that, you can see that CD1=CD2 for 300 users.

Google analytics syntax event label and or results don't match

I am new to querying GA with event label filters and am trying to work out my mistake with the following syntax. I have 3 different event label filters on 3 separate reports which are identical, except for the variation in this query:
Report filter 1: ga:eventLabel==Login - Create Account Step 2
Report filter 2: ga:eventLabel==Login - Create Account Step 2;ga:eventLabel!=Where to Buy Step 2 Submit Query
Report filter 3: ga:eventLabel==Login - Create Account Step 2;ga:eventLabel==Where to Buy Step 2 Submit Query
Now, I would expect that the count of sessions and users I get from report filter #1 would equal the sum of results from report filters #2 and #3. But actually, report filter #2: ga:eventLabel==Login - Create Account Step 2;ga:eventLabel!=Where to Buy Step 2 Submit Query returns counts of users and sessions orders of magnitude larger than the other 2 queries. (like 70K vs 120ish). Feels like there's a classic beginner conceptual error I'm making here, but I'm not sure how to google the the right question. Any ideas what I'm doing wrong?
Thanks for any help.
What you are trying to query with session/user metrics won't really work the reason being is that events are hits and so filtering that way filters on the hits. The way to get around that is to create segments of users that have triggered the events that you are interested in.
Now if you were to report on events/unique events using those filters based on the logic there I would expect #1 and #2 to return the same results and #3 to contain no values.

Format of How Amazon Wishlist pages are showed

This is a conceptual question rather than a technical one and might seem silly but anyway here goes.
I'm trying to parse a public amazon wishlist given in this link using jsoup. I am able to do that currently.
As you can see in the above link, there are total 9 pages of in that wishlist in the format
1 2 3 4 5 6 7 .. 9
If there were n pages in a public wishlist then will the format be
1 2 3 4 5 6 7.. n
I need to know how all the pages in an Amazon Wishlist are represented so that I can code accordingly.
Links to various public Amazon Wishlists containing 2,5, 10, 20 pages are welcome to help understand how the pages are shown.
There are few options to know how many pages are in the list:
All the links to the other pages are at the same format: http://www.amazon.com/gp/registry/wishlist/3C96S5RO2A5A9/ref=cm_wl_sortbar_v_page_X/182-3573734-9320732?ie=UTF8&page=X (the page number is X and it appears twice in the URL), so you can loop on X from 2 and on. You should get 200 OK response for all the pages, until you hit a non existing one.
Download the first page and do:
Elements e = document.select("#wishlistPagination > span:nth-child(1) > div:nth-child(1)");
String s = e.text();
The string s contains now - ?Previous 1 2 3 4 5 6 7 … 9 Next? so find the number after the ellipsis or before "Next" and you're done.
EDIT
In a second thought - if the list contains 7 pages or less, there won't be "next" in the string, so the first method (fetching all the URLs and changing the page number X) is more robust.

How can I across the values in a field by Pentaho Report Designer?

I am a beginner.. I want to know how can I across the values in a field by Pentaho Report Designer? Does it support this? Like this :
In Database
name id
a 1 a b c
b 2 to 1 2 3
c 3
THX :)
Yes, you can do this in the cutting edge Pentaho reporting, see here:
http://www.on-reporting.com/blog/a-quick-introduction-to-crosstabs-in/
Another alternative is if your data can be modelled in a Mondrian schema then use the OLAP input data source and you can pivot your data however you see fit!
Last Alternative - use the Kettle option as suggested.
You can achieve that using Kettle via the row normalizer and row denormalizer steps.

Drupal: Views Grouping Issue

With CCK, I've added a field to the basic "Page" node type called "Resource Type". There are four possible resource types to choose from, in a dropdown, "Training, News, Research, Tools".
I've created a view that should group the nodes by their resource type. I've created 8 nodes, 6 of which are of type "Training", 1 is of type "Tools" and 1 is of type "News". Drupal is outputting the following:
Training
- Training Node 1
- News Node 1
- Tools Node 1
- Training Node 2
- Training Node 3
Tools
- Training Node 4
News
- Training Node 5
Research
- Training Node 6
When I tested with only 1 node per resource type, it displays as expected:
Training
- Training Node 1
Tools
- Tools Node 1
News
- News Node 1
I saw the other posting where the Devel module can screw up the output, but I'm seeing the above while the user is logged out (and therefore Devel is disabled for anonymous users).
Any idea what could be going wrong? My view is set to be an "HTML List", grouped by "Resource Type".
Not 100% sure, given that I do not have your setup to make tests, but it looks like you are experiencing this issue. On comment #16 Merlin of Chaos (the author of views) provides a patch that subsequent comments seem to confirm as "working".
If that is not the case, a workaround could be for you to sort nodes instead of grouping them. You could add the grouping header by passing to the template also the node type value: you then would add the header with the type of content by comparing with the previous one. In pseudo-code:
$type_in_use = 'xxx'
if $type_of_next_node != $type_in_use then
$type_in_use = $type_of_next_node
print_header($type_in_use)
Just an inelegant workaround, but should work!
HTH

Resources