Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey
Filter by
Sorted by
Tagged with
2 votes
1 answer
80 views

I am trying to average only the first n values of a row but am getting an error if I don't have enough cells with values. How do I have the equation only look at the first 4 cells with values? I've ...
Neuner's user avatar
  • 107
2 votes
3 answers
116 views

I have this code for "Data 1" that I got from an AI ChatBot. I want it to average my values in column B based on if there are duplicate values in column D, and it does this. But now I want ...
Rae Van Sandt's user avatar
2 votes
3 answers
109 views

Please see input and output data in the image. The input table is multiple rows of data from the same subject but different timepoints. There are sometimes multiple data entries for the same subject ...
Rae Van Sandt's user avatar
6 votes
4 answers
357 views

For example, if I want to add two unsigned 8-bit integers together, I know I will need to store the result in a 16-bit integer. Otherwise, I run the risk of overflowing. This problem gets more ...
Joseph's user avatar
  • 61
0 votes
1 answer
138 views

I'm working with Google BigQuery and I have a table with two numeric columns: grade1 and grade2. I want to calculate the total sum of both columns combined (row-wise) and then find the average of ...
Mahbub Ar Rashid's user avatar
2 votes
3 answers
104 views

I need to average two raster stacks which containing daily temperature data shifted by 2 days. First stack times: "2020-05-01 00:00:00 UTC", "2020-05-02 00:00:00 UTC", "2020-...
San-Diego-WX's user avatar
0 votes
1 answer
87 views

I am solving the following problem: As the manager of a scooter shop, you have noticed that many scooters are not original, meaning they are missing a model name. Furthermore, bad scooters typically ...
Autumn Theriault's user avatar
0 votes
0 answers
53 views

I want to aggregate the values of my DataStream in tumbling windows of 10 seconds. Unfortunately is the documentation in Bytewax very limited and I also don't find any other source where an average of ...
LeXXan's user avatar
  • 27
3 votes
5 answers
118 views

I have a number of chromatograms saved as .csv files in a folder that look something like time <- c(0.001575, 0.008775, 0.015975, 0.023175, 0.030375, 0.037575, 0.044775, 0.051975, 0.059175, 0....
Raffaello's user avatar
0 votes
4 answers
74 views

I have a table that I want to sort based on the average of 3 columns. For example: select * from table order by ((col1+col2+col3)/3); HOWEVER, if any of the three columns are null, then the null ...
S.ov's user avatar
  • 410
0 votes
1 answer
59 views

Imagine I have a table with purchases, where I see id of customer, id of store where he bought something (I see other cols like prices, dates and others but not that important now). I have second ...
quakenstein's user avatar
1 vote
3 answers
158 views

I have two columns, date and net sales. My goal is to get the average sales for Monday I am trying the following formula: =AVERAGEIF(WEEKDAY(A2:A),2,B2:B) Explanation of attempt: WEEKDAY(A2:A) is ...
ceelun's user avatar
  • 111
-1 votes
2 answers
124 views

Will the statement Select productid, avg(price) as avgPrice, date as salesDate from sales where date between getdate() and dateadd(day, -7, getdate) group by date return the same results as select ...
Taylor's user avatar
  • 43
0 votes
1 answer
85 views

Description of issue: I am trying to get a table to show the average of select individual's averages, where the individuals are in a specific group. That group is controlled by a slicer or filter. AND....
none_of_my_bikes_run's user avatar
0 votes
2 answers
69 views

I've been trying to see the average salary of each profession of a hospital (this is an exercise BTW) but I can't manage to make an average for each service separately. My last and what I believe is ...
Samir Kanoun's user avatar
8 votes
4 answers
458 views

I have a table with non-consecutive dates, a categorical variable and a variable (price). I want the average price per category per day. But where it gets tricky is I want that average price to be the ...
FPiper's user avatar
  • 83
1 vote
2 answers
155 views

I have been working this leet code questions https://leetcode.com/problems/maximum-average-subarray-i/description/ I have been able to create a solution after understanding the sliding window ...
Zubair Amjad's user avatar
0 votes
2 answers
98 views

I'm creating a fitness tracker with daily inputs & a weekly summary on a dashboard. My daily input data looks like this: Date Miles Intake 01-Dec-24 11 3130 02-Dec-24 0 2730 03-Dec-24 8 2930 04-...
Noctis's user avatar
  • 127
0 votes
3 answers
89 views

I have a weekly scorecard that our leadership is going to fill out. Its all on one tab and has 500+ rows of the same scorecard that runs with the same statistics. I took a screen grab of one section. ...
Regan's user avatar
  • 1
0 votes
0 answers
60 views

I want to take the average of a set of numbers in one column (which we'll call column X) meeting a few different conditions: in one column (column A), there has to be matching text of the same ...
exc2023's user avatar
  • 21
1 vote
1 answer
128 views

Specifically: Write a function (in python, java or pseudocode) average(nums) that prints the mean of the numbers in list nums, and returns a tuple: The tuple's first element is the index of the ...
anf's user avatar
  • 43
1 vote
5 answers
224 views

I am trying to average by each month over the last three years. I want to calculate it for each project, but without specifically matching it/tying it to the row (as when more projects are added it is ...
Carys Stockton's user avatar
1 vote
3 answers
133 views

I have the following set of values: col1 Col2 1 20 2 155 3 170 4 177 5 291 6 559 7 794 8 820 9 1,198 10 1,240 11 1,259 12 1,537 13 1,613 14 1,876 15 1,949 16 1,950 17 2,274 18 2,372 19 2,640 20 3,030 ...
Tyler Depke's user avatar
1 vote
1 answer
62 views

I'm reading in quite a lot of data from some text files and save it to dataframes to easily be able to access the columns later when processing the data in a later stage. I feel the way I'm currently ...
Regina Phalange's user avatar
0 votes
1 answer
238 views

I would like to create a column in DAX where I calculate the average quantity sold. In the table I have the week number and the sold quantity on that specific week but in the additional column I would ...
Sara Zegna Baruffa's user avatar
0 votes
0 answers
44 views

/articles(ID,Qte_stock,PU)/ /DETAILS_BON_ACHAT(ID,qte,prix,id_article)/ I want to update PU (price of product) in articles A table (items of stor) for each record in DETAILS_BON_ACHAT D table ( NOTE : ...
hamza meliki's user avatar
-1 votes
1 answer
78 views

i have two tables : -items(id,quantity,price) -entry_voucher(quantity,price,id_table1) i want to calculate weighted average for every record in entry_voucher and update price in table items i have ...
hamza meliki's user avatar
2 votes
3 answers
223 views

I'm rather new to Python so it's quite possible that my question has already been asked on the net but when I find things that seem relevant, I don't always know how to use them in my code (especially ...
Camille's user avatar
  • 71
0 votes
0 answers
56 views

I have this 3 column (total wo, total ftf, product ftf %), I wanted to count the Binom.Dist using those 3 parameters. in excel you can simply put the formula of binom and fill in 3 paramaeters, but ...
gudeThings's user avatar
-1 votes
1 answer
61 views

I have a table of operations with dates and quantities. dateTime quantity 2024-01-01 1 2024-02-5 2 I want to sum the quantities for each month and then group by each month, which is working fine. Then ...
John919's user avatar
  • 13
1 vote
1 answer
95 views

I have a table in SQL Server named MyTable. I want to calculate the row wise average of two columns (say val1 and val2). To my knowledge, I know that this can be done as shown below in my approach. ...
Homer Jay Simpson's user avatar
1 vote
1 answer
347 views

I'm trying to average the last 6 cells in a column. This data will be added to and I need it to update automatically as the data is added to. I tried =AVERAGE(TAKE(FILTER(C5:C528,C5:C528<>0), ,-...
Laura Evans's user avatar
0 votes
1 answer
47 views

In SQLITE I have a table with three columns like so: X Y Z _____ 1,2,A 1,3,B 3,4,C I want what follows, order of the rows does not matter. U Z ___ 1 A 2 A 1 B 3 B 3 C 4 C So then I can GROUP BY U ...
Dave's user avatar
  • 11
2 votes
3 answers
319 views

I want to generate a twodimensional array in Python and I would like to iterate through each element and take an average. An element i should be averaged using the 8 surrounding array elements (...
s28's user avatar
  • 187
1 vote
2 answers
68 views

The code before works just fine, but I can't figure out the next step at all. Next, I want all locations averaged by year and output a new column called annual_average. My dataset is here: https://mgs-...
Autumn Theriault's user avatar
0 votes
1 answer
104 views

I have a dataset of 100 coordinates (in long/lat format) and have been able to map them using ggmap; they have different categories (ex. grocery stores versus gas stations). I now need to calculate ...
H Lee's user avatar
  • 1
0 votes
2 answers
142 views

Say I have data like the following: from pyspark.sql import SparkSession from pyspark.sql.types import ArrayType, DoubleType, StructField, StructType, LongType spark = SparkSession.builder.appName(&...
T_d's user avatar
  • 63
1 vote
1 answer
64 views

I am trying to find the average height of an array containing different heights. I have to find it using a while loop. Previously I did it with a for loop and it worked but when I try it this way I ...
Algizar's user avatar
  • 11
1 vote
1 answer
50 views

I want to get the average time between StartTime and EndTime in VBA or in a calculated control. Then get an average for many records. I am using Access to build controls on a form that will show the ...
Dianna Marie Vasher's user avatar
0 votes
2 answers
121 views

Ultimately I am trying to find the average of the top 3 values per test on the latest day for "Person 1". I am able to find the latest day using the Large(If()) formula, and I am able to ...
Cra538's user avatar
  • 33
1 vote
1 answer
86 views

I have a dataset in R that contains methane measurements taken on different dates by of different cows. The dataset is structured as follows: ID: An identifier for each cow (integer). measure_date: ...
Methane123's user avatar
2 votes
1 answer
87 views

I am new to both Power BI and Stack Overflow, but I am having a bit of trouble getting an AVERAGE measure to work on my data in Power BI. I have a table of products with pricing for myself and the ...
JSP's user avatar
  • 23
2 votes
1 answer
105 views

THIS POST seems relevant, but the example considers only one grouping variable (by). Is it possible to use ave() for several variables to be averaged on the basis of several grouping variables? ...
striatum's user avatar
  • 1,598
0 votes
1 answer
32 views

On this SQLBI video rolling average doesnt calculate anything to totals row? Why is that? Would like to have snapshot value also for rolling value on card etc https://www.youtube.com/watch?v=...
jansse's user avatar
  • 45
0 votes
0 answers
49 views

I have the following code: import numpy as np import matplotlib.pyplot as plt from scipy import integrate, optimize import random def dose(t, y, b, s, c, p, d): target, infectious, virus = y ...
user1134699's user avatar
0 votes
0 answers
38 views

I have a sample dataset of total outbound calls, it comprises rows (dates) and columns (hourly), my goal is to show totals and average of outbound calls per day (rows), and the totals and average of ...
Harvey's user avatar
  • 137
0 votes
1 answer
20 views

How can I combine the temperature values that has been measured every quarter in an hour to just one average value per hour? I want to make a query in MS Access. Can you provide a SQL to do this? Time ...
Michelle Melin's user avatar
1 vote
2 answers
94 views

This is my first question and I'm also a very new learner to r so please bear with me. I am working on some gauge data from about 4 months and it took temperature readings every 15 minutes. I am ...
Matt Schaaf's user avatar
4 votes
1 answer
713 views

Why does the average queue length in a single-queue system tend to infinity when the average number of arrivals equals the average number of departures? Define the queue model parameters: λ: Average ...
Cathy's user avatar
  • 35
1 vote
0 answers
69 views

I'm currently working on a project where I need to develop a continuous averaging memory to compute the average frequency spectrum of a white noise signal. The goal is to achieve a Degree of Freedom (...
Martin's user avatar
  • 11

1
2 3 4 5
118