Determining Date Paid by User for Specific Month - google-sheets

I tried to find something like this out there and I just couldn't find a similar question. Please let me know if I am asking something redundant here.
I have a google sheets workbook for tracking the contributions from club members for an investment club. The bank_transactions worksheet looks like this:
Date
Money In
Money Out
Contribution Month
Reference Name
Account Balance
05/10/2021
200
0
May
Homer Simpson
200
05/10/2021
200
0
June
Homer Simpson
400
05/12/2021
200
0
May
Sideshow Bob
600
05/13/2021
200
0
May
Ned Flanders
800
05/16/2021
200
0
May
Moe Szyslak
1000
05/20/2021
200
0
June
Sideshow bob
1200
I have another table where I want to reference when a member paid that month's dues. I want it to look like this:
May
Jun
Jul
Homer Simpson
Sideshow Bob
Ned Flanders
Moe Szyslak
I want to populate the second table with data from the first and have tried the following but it just errors out:
=IF(B1=bank_transactions!$E$1:$E,IF(bank_transactions!$E$2:E,bank_transactions!$A$2:$A,0),0)
I am not sure what I am missing here. Maybe the nested if statements doesn't work. Maybe it isn't running a loop like I was hoping. Not sure. Any help is appreciated.

try:
=QUERY(A2:F, "select E,sum(B) where E is not null group by E pivot D")

Related

Line graphs in Tableau

I have a line graph in Tableau over the past 6 months and it is filtered by person. Some people have no data for certain months. When they do not have data, the graph appears blank for that month. I would like for the graph to show 0 instead of a blank. For example, if person A had no sales in February, I would like for the graph to show 0 for February rather than a blank for February. I cannot use the Zn function because there are no null values.
Any ideas?
Thanks!
Edit: Here is an example using false data
The second graph is the same as the first graph except it is filtered by person. Even though Sally has no data in Feb, March, or June, this actually means that the value should be 0. I would like for the line graph to drop to 0 for these months. Further, then the average should be around 58 rather than 116.
Assuming you have a data like the following:
Date Person Sales
15/01/2021 Peter 10
15/02/2021 Peter 20
15/03/2021 Peter 10
15/04/2021 Peter 30
15/05/2021 Peter 40
15/06/2021 Peter 20
15/01/2021 Sally 20
15/03/2021 Sally 10
15/05/2021 Sally 50
Drag date into your colum shelf and make it Month-discrete
Drag Sales into the worksheet
Switch to line chart
Right click Sales --> Format --> Pane --> Marks --> Show at default value
Right click Month (Date) --> Show missing values
Add Person as a Filter --> show Filter
Then you should be able to get something like this having Sally (just 3 out of 5 total months) showing her non existing 2 values as zero.

SUM gives me a date instead of a number in Google Sheets

I am writing a few simple formulas for Google Sheets and I've been stuck on this for a little while now. I am trying to get a quick overlook of how many people got added to a sheet in the past week, counting from Saturday, but unfortunately, it's not working.
I have this piece of code to set the date since last Saturday.
=TODAY()-WEEKDAY(TODAY())
This works just fine. The output gives the date as 3/7/2020.
I then have a different row which checks if the recruitment date, which is stated somewhere differently, is bigger or equal to past Saturday. It checks it like this:
=IF(I2>=K2, "1", "0")
This gives an output of either 1 or 0 (1 if it was on Saturday or after Saturday, 0 if not).
Then I went to the main page, where I want to put the SUM. I put the following code:
=SUM('Control Center'!J2:J)
It should just add the 1's that are said earlier, but instead, it gives me the following date: 12/30/1899.
Does anybody know what went wrong? If you need any clarification, feel free to ask.
go to 123 menu and select Automatic or Number:
Take the quotation marks off the 1 and 0 so:
=IF(I2>=K2, 1, 0)

Split revenue by year with Google Sheets' QUERY function

I get monthly revenue data from the finance department that I have clean to input into a reporting format. Its monthly data that lists all revenue in a single column. I need to split out the revenue by years (2018, 2019, etc.).
I believe that I need to use a query function for this but if you have some other solution, then I'm open to that too.
The data looks like this:
Client Source Month Year Revenue
abc Google 1 2019 100
abc Google 1 2018 100
abc Facebook 1 2018 50
abc Facebook 2 2018 50
And I need it to look like this:
Client Source Month 2018 Revenue 2019 Revenue
abc Google 1 100 100
abc Facebook 1 50 0
abc Facebook 2 50 0
I'm familiar with query functions but I can't wrap my head around how to do this.
The pseudo code for this would be something like:
select Client,
Source,
Month,
Case when Year in 2019 then sum(Revenue) as 2019 Revenue else 0 end,
Case when Year in 2018 then sum(Revenue) as 2018 Revenue else 0 end
from Data
Group by Client, Source, Month
Please let me know if I need to provide any additional information. And I appreciate your help with this problem.
=QUERY(A1:E, "select A,B,C,sum(E) where A is not null group by A,B,C pivot D", 1)

Jira JQL decode Monday Tuesday etc

Has anyone managed to create a query that returns data based on Monday Tuesday Wednesday next week?
I can get a result with startofweek(1) and endofweek(1) but that doesn't break down to each day.
Ideally I'd get a result like this:
Monday | Tuesday | Wednesday | Thursday | Friday |
--------------------------------------------------
Card1 Card1
Card3 Card4
Card5
Any help would be appreciated.
I believe that is not possible. Columns on Jira boards are configurable by issue status, not via JQL. However, you could do the following:
1) Add a quickfilter for each weekday. JQL actually is more powerful as it looks on first sight: You can use expressions like "status changed ON ..." - enabling you to observe issues that were touched at these days. This would per filter show a single day only on the board, since filters are internally combined via AND.
2) Do the same JQL but with swim lanes. You could see each day on the board at the same time in a separate swimlane. But I consider this mind-twisting.
You should write a more elaborate JQL that fits what exactly you want to see, of course. There is another way, though you'd need (low) programming skills:
3) Use Jira REST API to fetch your sprint/week data and throw it in a grid that suits your needs yourself.

issue with yql (yahoo api's) using oauth

i am using oauth_util.rb ( https://gist.github.com/383159 ) and my YQL query is
"select * from search.termextract where context=\"#{text}\""
This works where text is a short string, but fails for the longer ones with the following error:
RuntimeError (Please provide valid credentials. OAuth oauth_problem="signature_invalid", realm="yahooapis.com" for text [ Virdhawal Khade Wins Historic Medal | Sports News Bangalore November 16, 2010 -19-year-old Indian swimmer and GoSports Foundation awardee, Virdhawal Khade, has made history at the Guangzhou Games by clinching the Bronze Medal in the Men's 50m Butterfly event. ... Starting the Finals in fifth place, Veer's performance was nothing short of astonishing, as he finished with his season best time of 24.31 seconds. He finished 0.65 seconds shy of first placed 27-year-old Zhou Jiawei, the top ranked Chinese Swimmer who is also ... ]):
Thanx in advance.
got it... needed to use URI.encode to encode the URI instead of CGI::escape

Resources