Select Firebase database on today date and month range - firebase-realtime-database

Hello. I am working on Ionic and Firebase as backend. I want to list items based on current date and also based on date range (upto a month, 3 months etc). Additionally, I also want to generate 'Total' of incomeAmount on that specific date as well as total quantity of items added on the same day.
I tried using firebase query but I am unable to retrieve the data as per the specific date range
Any help shall be super awesome!

Finally solved it by using Moment. changed the date format to moment().format('YYYY-MM-DD') and saved the data on firebase under that date. Further looping with forEach to get the total
Hope it helps someone else too

Related

Tableau desktop: Get the latest value from a list of values recorded by the time of the day

I'm using Tableau Desktop 2022.0.4
This is what my data looks like (filtered by date):
I would like to be able to get the value associated with the max value of time for the selected date. In the example above will be 46.1 (associated with 15). Times of the day with their values can be different each day. The source is filtered by date.
I have tried using FIXED but I cannot understand completely how to use it or if it is the right thing to use for this situation.
Thank you for your help with this.

Formula Trouble in Google Sheets

I have a raw export of data, categorized by rows, amount, and date.
I'm having difficulty finding/combining various spreadsheet formula's to get the the total expenditure in say "Jan'20 for category XX"
I have currently tried a combination of Sumif/Index/Match formulas with no luck. Some assistance would be greatly appreciated.
EDIT#1:
Link to the google sheet is here
You seem to have the correct numbers on your main page so the formulas which total for each month, and by each category, seem to be working properly. I noticed that your pivot table wasn't sorting correctly. this turned out to be because you had your date values in the Month column on the Export tab set as string values. I converted these to date values, equal to the last day of the given month. I did the same for the month headers on your Main tab.
Now the pivot table sorts by month correctly, since these are now numeric values.
See here for a sample sheet.
https://docs.google.com/spreadsheets/d/1pmTgKqFZmKiP0k0iKDWGQlWVyKJF5PfglhcwhRj49Y4/edit?usp=sharing
If there is still an issue you need help with, please let us know, with the details.

Method to copy data from another sheet where date range (time on project) exists within another date range (month)

I'm currently loading in some resource data into one sheet (summary) to populate another sheet (weekly), based upon whether or not there was planned activity for that resource in the month in question. From that data, and what activity was, I'm then trying to establish the projected hours for each resource and then record the actuals, to track the performance of the team.
I'm currently using this formula (cell B8) to pull the data from Summary sheet, based upon the month indicated in G6:
=QUERY(Weekly!B7:K99,"select E,B,C,I,J,D,H,G where I >= date '"&TEXT(G6,"yyyy-mm-dd")&"'")
I'm also using this formula, in N8, to establish whether the days in the month had allocated time, and if so, at what percentage:
=QUERY(Weekly!B7:K99,"select E,B,C,I,J,D,H,G where I >= date '"&TEXT(G6,"yyyy-mm-dd")&"'")
While this seems to work for November, it breaks down for other months. I've tried multiple variations to try and get it to work, but I can't seem to be able to establish whether the month has time in it, and then to accurately record it.
Any ideas as to how to get this to work?
Here's a version of the sheet I'm working with:
https://docs.google.com/spreadsheets/d/1epCnivFZvxjPNBdNK82Np0aPfFN1LbIXHrrbgnQEQus/edit?usp=sharing
Try this one:
=query(arrayformula({Weekly!B7:K99,text(Weekly!I7:I99,"yyyy-mm-dd")}), "Select Col4,Col1,Col2,Col8,Col9,Col3,Col7,Col6 where Col11>='" & TEXT(G6,"yyyy-mm-dd") & "'",0)
where Col1:Col9 = B:J

Data Studio date range that filter on Google Sheet Column

I'm using Google Sheets, and wanted to do a Data Studio "real time" report, based on the data in the sheet.
The sheet contains data from an issue management program.
My data in the sheet exactly:
Issue type (string), Work time (number), issue created at (date), issue resolved at (date)
I successfully created a pie chart that's dimension is: Issue type and metric: Work time
I can see that all the data in the pie chart.
Now my problem is:
I can't filter this chart with a date range.
The date is in a correct format: YYYYMMDD
but I can't describe to data studio, which date column it should filter when I set a date range in the control.
Is it possible some way to create two date range filter and one of them filter on created date, and the other one filter on resolved at date?
Thank all of you!
Roland
Check to make sure that the date range you're filtering by is the first date column from the left in your Sheet. If it's not, then Data Studio gets confused and doesn't work properly.
I'm not sure if you can have two different dates in two different filters. The graphs wouldn't know which filter to follow.
Finally I deleted the connection between the sheet and the report, and started again everything, and it works fine. I think I created the connection when the date was not in a correct format, I changed it after making the connection.

Start Date Calculation in google sheets

Recently Google analytics became available as an add on for google sheets.
It is fairly intuitive however I need a way to auto calculate the start date of a month starting with todays date eg today is the 11/02/15 so I would like it to return the 01/02/15 utilising the available date functions.
My purpose is to run a report for this months data only which can be updated as the month continues. In the next month it would need to start again.
I have an absolute fix but this is not scalable, If you have a function based solution please help.
=eomonth(today(),-1)+1
is a formula that takes the date for today, finds the end of the preceeding month and then adds one day.

Resources