The query that I use to get a single entry in a spreadsheet is as follows:
https://spreadsheets.google.com/feeds/list/1HXQXVlZ-5_3ndSI33W1i_resFYjQwshIaXNUG1Ooxn4/oobt6ix/private/full?sq=nr=18
I am trying to achieve something like this: ?sq=nr=max(nr)
Basically I'm trying to get the the entry with the highest value for "nr".
Can anyone help with this???
Related
I am trying to retrieve a previous value and create a new column called previous_values next to the current values and group them by their id's so tht previous_values do not get mixed. However, I am not able to perform lead and lag operations on Mongodb query like I did in Postgresql. Can someone help? My table is shown below. enter image description here
I'm trying to set up a spreadsheet with a dashboard that tracks my finances. Right now, I'm trying to come up with a dynamic way to find the day I have the highest incoming transaction occurring.
I'm trying to use the query function to do that, but the table is returning empty.
This is the formula I'm using:
=QUERY(Income_Data_wDate,"SELECT * where I= '"&Max(Income_Data_wDate)&"'")
I used named ranges to reference the database. I tried using the actual range but it does the same thing. Can anyone help?
You may use the following method to return the max value, I think your original code also not working in SQL method?
=QUERY(A2:B,"Select * Order By B Desc Limit 1")
I have a large sample of medical data I need to try and analyze patterns in Excel worksheet.
I also put them up in a database in MS ACCESS to do my first filters and stuff.
I have the infos of patients, with tests results(POS or NEG), dates of the sample.
I need to be able to check for each patients when the results change from POS to NEG and from NEG to POS
and compare the dates of those two samples.
So far I was doing it manually which isn't viable for my sample.
I was trying to do something in SQL, but that didn't work out for me.
I also am trying to do some VBA or Excel formulas but I admit I'm getting kind of stumped.
I know I should do some for each cell loop or something but I really am lost.
I already grouped each patients info together using sub-totals and stuff.
Your help or at least pointers would be greatly appreciated :D
Here's an example of my data.
enter image description here
Use a formula like this, that in case the name is the same as the row before and the POS/NEG is different from the row before gives you the number of days in between, blank otherwise:
Of course it will give you an error if you try to use it on the 1st line, just enter it in the 2nd line and copy/paste in all the rest.
This should give you the basis for the rest of your analysis.
Hi, I'm new to MS-Access. My apologies in advance, this is probably a basic question asked and answered but I don't know how to word the search to find the right results.
I have this query on MS-Access. Is it possible to create a query only with the sum value, 662766.48??? Below is my code.
SELECT Sum(T.DollarsSold)
FROM T
HAVING (((T.Year)="2017") AND ((T.Period)="08"));
My ultimate goal is exporting only the sum value of a query to a specific cell in an existing excel spreadsheet. And I thought It'd be easier to have just a sum value on a query and export it to excel.
Just sum the DollarsSold column, and change the HAVING to WHERE, since you're getting rid of the GROUP BY:
SELECT sum(DollarsSold)
FROM Table_S
WHERE Year="2017" AND Period="08";
I have been creating reports to get use to the tools available etc.
I have come across an issue where I cannot get a column of running values to appear correctly.
I have circled the column where I want the running values to be displayed based on the values in "Min Heads" column.
I have tried this expression:
=RunningValue(Fields!DefaultValue.Value, Sum, "Tablix")
Where Tablix is the Matrix, this calculated the running values for each row. I have tried changing the scope to the row's group and dataset but haven't had any luck.
I would really appreciate it if someone could tell me what I am doing wrong and could tell me how to create the expression for the results I require.
Try setting the scope of the function to the name of the Min Heads column. So it would be something like this:
=RunningValue(Fields!DefaultValue.Value, Sum, "Min_Heads")
I think that the scopes you have tried are too wide, or simply not valid for this.