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.
Related
I am creating a financial overview tool in which I want to make sums of income/costs/profit - all summarised based on the month of the year in which those business cases were finished.
I ran into a problem with the SUMIFS formula not showing a correct value. Some months show correct value using a first formula, some only using the second, etc.
Google Spreadsheet Link (all important numbers are randomised)
I tried three options : (February as an example)
=SUMIFS(input!H3:H200;input!M3:M200;">"&DATUM(2022;1;31);input!M3:M200;"<"&DATUM(2022;3;1))
=>>This way I wanted to limit the SUMIF by only choosing cells with date > January but < March
=SUMIFS(input!H3:H200;input!M3:M200;">"&DATUM(2022;2;0);input!M3:M200;"<"&DATUM(2022;2;31))
=>>Limiting the SUMIF by choosing cells with date range higher than 2022/2/0 and lower than 2022/2/32 (unreachable dates)
=SUMIFS(input!H3:H200;input!M3:M200;">="&DATUM(2022;2;1);input!M3:M200;"<="&DATUM(2022;2;31))
=>>Limiting the SUMIF by choosing cells with date range higher and including 2022/2/1 and lower + including 2022/2/31 (unreachable dates)
Why didnt i just refer to a cell with the sum already calculated? Because the input list is an excel export from our crm platform which is never the same and I want to create something that does the work for me.
Why didnt I use index + vlookup to simply find the sum value based on the keyword "month name" + column number? Because I need to use a similar formula as sumifs in the next columns that are not shown yet. If there is no direct solution to my problem then I will resort to using the index+vlookup.
Changing the dates on the months that don't coincide solves the issue.
For example for May:
February 2022 had 28 days but on the function for May you used the 31st of february:
=SUMIFS(input!G3:G200;input!M3:M200;">"&DATE(**2022;2;31**);input!M3:M200;">"&DATE(2022;4;1))
and the result is:
If instead I change the March function to:
SUMIFS(input!G3:G200;input!M3:M200;">"&DATE(2022;2;28);input!M3:M200;"<"&DATE(2022;4;1))
The result gets corrected as it should.
I have a spreadsheet with multiple pages. on page one i have a chart with row values of months and column values of different subjects.
i would like to have a formula that supplies a live update of all instances of X in a specific data range on page one and the data on page two. (ie: total number of times "Apple" is listed in column B for the month of august, date in column A).
of note: data is added to the top of this sheet every day, so the cells need to be dynamic
thank you for your assistance.
I have a google doc that tracks information about employee training (Example 1). I have another google doc that needs to summarize the information (Example 2) from multiple different sheets which mirror example 1 but for different teams.
Example 1: this sheet is tracking employees start dates, dates they finish training, and if they have quit. (there are multiple different docs all with the same format that I'm pulling from using importrange).
I need a formula that will count the number of employees currently in training. So count if start date is equal to or after today, end date is equal to or less than today, and the quit column is blank.
If the formula worked the way it should, and I was looking at the summary doc on 11/10/2021, it should report 4 people in the "# in Training" column on the table below (Example 2).
I have tried using an ArrayFormula with CountIfs to accomplish this, but it still pulls 0. Here is the formula I've been playing with:
=ArrayFormula(COUNTIFS('tracker'!$B$2:$B, "<="&TODAY(), 'tracker'!$C$2:$C, ">="&TODAY(), 'tracker'!$D$2:$D,""))
Give a try on below formula-
=COUNTIFS(B2:B8,"<=" & DATE(2021,11,10),C2:C8,">=" & DATE(2021,11,10),D2:D8,"")
I am creating table for finance: will have a data base of trades: date open and close for trade (), open and close prices, ticket is a stock name, change is percentage which is calculated base on open-close price and days are also calculated base on two dates as on the picture:
And I need to generate a new table for each month of the year (in which I have date records). So, Google sheets has Pivot tables and that what I need. I need columns: average win % per month, average loss % per month, average number of win days per month, average number of loss days per month.
I did that in 2 separate tables:
First table:
First table settings:
Second table:
Second table settings:
But I can not create that in one table - I do not know how to make custom formula. So, I am looking for some help here.
I tried some things, I can filter, make average. But I do not know how to get array of items with sorted pivot table data by months...If I can get sorted pivot table data by months - I can filter by positive/negative and find average.
My sample: https://docs.google.com/spreadsheets/d/1TCLWZ7-oUSwM8DLODPpH6wwssgfYyo3BVlEpWj78kV4/edit?usp=sharing
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!