Google Data Studio visualize data by frequency of the value - firebase-analytics

I have a very simple quiz like app which is basically a question and answer. I want to common mistakes of the user i.e. on which question user is making mistake most of the time. For that I have custom event which logs an event every-time a user answers a question wrong. So if there are 5 questions and user usually answers question 3 wrong than the common mistake for that user is question 3.
But in data studio I am not able to find any formula which gets the number of frequency of event value from the big query data-sets. I am looking for a way to implement this any help would be appreciated.
I am using firebase custom events which is linked to bigquery.

Do you want the output of the table to show the Questions on the left, Frequency on the right?
Or you want the output of the table to show the Users on the left, Questions (common mistakes) on the right?
For the first type, create a table, set Question as dimension, Record Counts as a metric.
For the second type, you can create a pivot table. set User as row, Questions as column, Record Counts as the metric

Related

How to create a query that is able to sort data into 2 groups?

so I'm very new to Access - just started learning it this week. I have data comprised of a bunch of policy numbers with corresponding ratings and premium values.
What I'm trying to do is create a query table that aggregates this data by rating (=1 or >1), this is the part I can't figure out. In design mode, I have put criteria =1 or >1, but it's not doing anything; when I switch to datasheet view, it just lists all of the ratings instead of two boxes that say =1 and >1. If anyone could give me insight on how to do this, I'd appreciate it!
From what I understand after reading your question, you want a query that shows two columns, one that counts the records with a rating of 1 and one that counts the records with a rating of greater than 1.
The best way to do this is to set up two expression columns, both wrapped in a count as you can see below:
SELECT Count(IIf([Rating]=1,[Rating],Null)) AS [=1], Count(IIf([Rating]>1,[Rating],Null)) AS [>1]
FROM tblSortRating;
If you have any questions or I've misunderstood your question leave a comment and I'll get back to you.

Grade multiple forms on one spreadsheet

I need to grade some google forms. Due to the way I needed it to work, I used one form for every question on the'quiz'. Not every person will have taken the same question. The responses are recorded into spreadsheets, but google makes each form have it's on sheet on the same document. So, because of the random questions, it make's it harder to grade. Some users may have all taken question 1, while only a couple have taken question 2. The names won't be in order, either, if they took the quiz at different times. So how can I grade this? There's about 40 questions total. I'm thinking I'll need to use google app script, but I'm not sure how.
Spreadsheet
This shouldn't be to hard to do but might be a bit complicated to explain here...
What I would do :
get all data from each page into an array
add the question and the right answer in front of every user answer for each array row (page)
concatenate all the arrays into one global array
sort it on user Name and get a new array for each and every user
sort all these arrays on question (it would probably be nice to add numbers to these question if you want to control the order of the questions)
evaluate the user answers (easy since you have both the right answer and the user's answer in each row)
write back to a spreadsheet, eventually one sheet / user
Nothing really hard to do but a lot of work though ;-)
Good luck

SSRS - Single page per row

Creating a report that is a display of a persons online application, so there are text boxes and multiple tables per person. I need each person to print on the same page, so a user can select either a particular application, or a date range, like all applications for today and yesterday. I currently have everything in a LIST object with a page break set on it, however the tables in the LIST would throw the "detail member with inner members" error. I found a a way around that using the solution here: http://blogs.lessthandot.com/index.php/datamgmt/dbprogramming/reporting-services-error-the-tablix/ , which got rid of the error, but any multiple row tables return a new row per page, so a person with 3 aliases, will have a 3 page report. So, I am looking for a new tutorial on how to keep everything on one page, but allow my tables to return all results on the same page. Thanks.
I don't know if you are writing the query out or using a stored procedure. If you are using a stored procedure if would make it a lot easier to use SSRS. But to get the grouping correct find a common record between the user and the aliases. Then be sure to pull that common identifier into the stored procedure. Then use the table wizard and pull in all the information you want to see and pull the common identifier into the row group box and it will format for you and group that person on the common identifier and hopefully give you the results you are looking for.

Microsoft Access 2010: Update a field in another table on button click

Basics about the database
I am working on a (relatively) simple database that stores inventory data. I am using Microsoft Access 2010 in order to do this. I have six tables with the following relationships:
Relationships of Database
I have created forms which combine the Transaction table with Ordered, Received, Allocated, or Dispensed. Each form requests an amount which will then be used to update On Hand, On Order, or Allocated (from the Material table) respectively.
The Problem
For example, my form to update Transaction and Order should be able to take in the Amount ordered, save all the data from the fields to the Transaction and Order tables as well as add the amount from Amount to On Order in the Materials table.
I have been working on this database for the past two days. I have searched several times for possible ways to perform a similar function, but have come up with nothing. All the tutorials I have found which seem remotely close to what I need to accomplish are for versions of Access which are much older than 2010. Unfortunately I have had little experience with the actual coding within Access, so I am stuck clicking around within the buttons on its menus.
What I have tried
Currently, the program is set to run the following Update query:
Screenshot of update query
This query works if I have one Material stored in the database but adds all the Amount values from Ordered to On Order every time it is ran, which is unfortunately not what I need it to do. I only need each Amount value added to On Order once.
You need to relate the Ordered and Material tables by adding a foreign key field to the Material table, ex. OrderedFK (Long Integer). This new field must be updated whenever a row is inserted into the Ordered table (assuming the "No" Field is AutoNumber). This is typically performed by using a Form (Ordered) and Sub-Form (Material) and setting the sub-form' Link Master (No) and Link Child fields (OrderedFK).
You can then join the Ordered and Material tables on the Update Query to achieve the desired result.

How to make a single Access form create multiple records

I'm relatively new in using Access.
I'm creating a database for questions and answers. Answers are stored in the answertable with the following fields: timestamp, question id, answer text, person id. Each record only contains one answer.
Now, I'm looking for a way that lets me update/enter multiple records at the same time. For instance, the person using the form should be able to fill all respondent's answers, then hit submit. If there were five questions, the result should be five records with only the field 'answer text' differing from the other four.
I've searched on Stackoverflow but the only solutions that are given are in RoR. I'm experienced in VBA, but that's it.
Any help would be greatly appreciated. Thanks.
Your main form should be bound to the table that has one record per person. On that form you can add a subform (default view datasheet) that is bound to the table that has one record per question. You will want to set the link between the main form and the subform to be on person id.
Once you have the subform, you can hide the person id and question id fields.
Before you open the form, you will need to run a query to make sure that all the required questions that the person should answer are already added to the answer table, populating both person id and question id.
You may want to adjust the datasource of the subform to include the question text by linking to the table that is keyed on question id.
Well, if a question should have only one answer, and an answer should have olnly a question, why are they in different tables?
But, if your question table should have more than one answer, its ok.
You cannot edit multiple records in MS-Access in same time. You must to implement a form in GridView mode, wich will retrieve the desired questions, or allow user to add records on it. When user edits all the rows, the user should click a button wich will startup a process that will read the gridView and update the table, one by one.
The smartest way ought to be create a form in gridView mode, linking it to the answer table. Then filter the data presentagion on this form to fit in your desired params. When the user edits an answer presented, this row will be automatically updated in table.
I disagree with your fundamental UI question. One question and one answer on a form.