I'm using Google Data Studio to plot the monthly revenues in our restaurant. So let's say I have a Google sheets with 2 columns:
- column A: date
- column B: day revenue
My Google sheets contains this data for several years now with on each row the day revenue for that day (see screenshot below).
I already added this Google sheet as a data source in my Google Data Studio and now I want to create a line diagram showing the 12 months and when hovering over a certain month I want to show the aggregated sums for that month over the different years (see screenshot 2 below)
How can I configure such diagram using the data in my Google sheets?
Thanks a lot for the help.
You will need to change the structure of your Google Sheet. Keep your singular date field but add in two columns, Month and Year.
Once you do that, create a table in Google Data Studio that uses the following fields:
- Dimension: Month
- Breakdown Dimension: Year
- Metric: Revenue
Let us know how that works out!
Related
I have a dataset in 2 separate worksheets.
In worksheet one, we keep track of website's that we have scanned and when we have scanned them last. Each website will have multiple rows of data as each site is typically scanned each week.
In worksheet two, we have our database of websites that we can along with additional info pertaining to those websites.
I am wondering if there is a formula that we can use in worksheet two that will pull the last date scanned from our data in worksheet one?
A reference spreadsheet is here: https://docs.google.com/spreadsheets/d/1clrqDaWiKa2xCAgdZxcVfW_g06MmG7LSrp_fUDF0_Sw/edit?usp=sharing
I would like the "Date Last Scanned" in worksheet two to show the most recent date shown in column B on worksheet one.
Thanks in advance!
I have a dataset in 2 separate worksheets.
In worksheet one, we keep track of website's that we have scanned and when we have scanned them last. Each website will have multiple rows of data as each site is typically scanned each week.
In worksheet two, we have our database of websites that we can along with additional info pertaining to those websites.
I am wondering if there is a formula that we can use in worksheet two that will pull the last date scanned from our data in worksheet one?
A reference spreadsheet is here: https://docs.google.com/spreadsheets/d/1clrqDaWiKa2xCAgdZxcVfW_g06MmG7LSrp_fUDF0_Sw/edit?usp=sharing
I would like the "Date Last Scanned" in worksheet two to show the most recent date shown in column B on worksheet one.
Thanks in advance!
Put this formula in cell 'Dataset 2'!C2:
=to_date( maxifs('Dataset 1'!B$2:B, 'Dataset 1'!A$2:A, B2) )
Format the cell as Format > Number > Date or another date format of your preference. Then copy the cell down as far as needed.
I have used the SUMPRODUCT formula in Google Sheets to work out the total sum made of 7 products in each month of 2022. Screenshot of the data set and formula used in Google Sheets Formula I am using for the total per month:
However, Data Studio does not seem to accept this formula.
I want to sum the total amount of each product multiplied by the corresponding price for each month it was purchased in. I then want to use this data set in Google Data Studio to show the total amount accumulated for each month.
Google Sheets: https://docs.google.com/spreadsheets/d/1F81cSdnqkoOjEtFWaxjNIdXgeQdwtbzmX2zslT8dXpE/edit?usp=sharing
Google Data Studio Report: https://datastudio.google.com/reporting/9fcbcd71-0c27-4d40-84d3-aef6ed332354
The Google Sheets needs a header also for column A.
Displaying the data in a Table in Data Studio shows:
A sum over the column "January" adds the quantity 1 and 4 and the £340. This gives the wrong 345. A quick solve is to apply a filter on the field "Option" and only consider the "SUM" row.
Another way is to calculate the product by the formula
January*Price
Summing over this product is the standard setting.
For each column (here: 12, January to December) such a formula is needed.
I have a Google Sheet with monthly data. Dates are on column A and Income is on column B.
I want to do a graphic which shows how much money I've received by week.
How can I do that?
Thanks in advance.
Without your data it is a little hard to tell BUT here is what you would normally do,
If you want to graph by week you will need weekly buckets, to do this use formula weeknum(cell, 1) // 1 is used for sunday to be day 1 in a week (the normal). Then just chart a histogram with weeknum column as your aggregate bucket.
Example -
https://docs.google.com/spreadsheets/d/1MoL-3hTCNspuvblgXM_lbHTZGLTMezZVAwuL_Tur4s0/edit?usp=sharing
I have a problem similar to the one described in Excel: Sum values based on values in another column and mapped values
Solution there works in excel but unfortunately it doesn't work in google sheets.
How can this be done in google sheets and does anyone know why excel solution is not working in google sheets?
Edit 1:
Per request I am duplicating relevant info here:
On each day a single sport activity is organized and attending students receive bonus points. Students can attend activities each day to receive points.
Based on existing columns I need to calculate total bonus points for each student (column I)
Try:I2
=ARRAYFORMULA(MMULT(--REGEXMATCH(TRANSPOSE(B2:INDEX(B:B,COUNTA(B:B))),H2:H8),IFERROR(VLOOKUP(C2:INDEX(C:C,COUNTA(C:C)),E:F,2,0),0)))
Using the "importHTML" function, I've scraped two tables from the web, containing results from weekly 5k races. These two tables now exist as two sheets within a Google Spreadsheets document, each of which are titled "19/11/11" and "12/11/11".
These sheets contain several columns, the most important of which are NAME and GRADE (a percentage value that "scores" your time based on your age.
For example:
Max LANCASTER
81.83%
Craig MITCHELL
76.58%
Andy MCGHEE
73.16%
I'd like to be able to create a new sheet with data that looks at this week's results (19/11/11) and compares it to last weeks (12/11/11). If the runner did not compete the previous week, then they are ignored, but if they did, their NAME and GRADE (for both weeks) is shown. This would allow me to sort on GRADE, and find who was the most improved runner.
Can any Google Spreadsheet experts help me figure this one out?
Thanks
Ronnie
There's most likely better ways of doing this than what I'll suggest, but since no experts answered you... here I go!
I'll suppose NAME is on column A and GRADE on B.
In a new "compare" sheet, with the following header:
NAME - GRADE A - GRADE B - DIFF
I'd add these formulas on row 2.
A2: =Filter('19/11/11'!A2:B;Match('19/11/11'!A2:A;'12/11/11'!A:A;0))
C2: =ArrayFormula(Transpose(Split(Concatenate(If(A2:A=Transpose('12/11/11'!A2:A);Transpose('12/11/11'!B2:B);"")&If(Transpose(Row('12/11/11'!A2:A))=Rows('12/11/11'!A2:A)+1;Char(9);""));Char(9))))
D2: =ArrayFormula(FILTER(B2:B-C2:C;A2:A<>""))
And if I'd like the sorted result (as you mentioned), I'd do this:
F1: =Sort(A:D;4;false)