Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
57 views

I need to use column name to find month name transaction_period_01="January" transaction_period_01="February" like this SELECT "TR_FI_GL_BALANCE".fiscal_year, ...
abhisek sarkar's user avatar
1 vote
2 answers
146 views

Recent versions of Microsoft SQL Server allow creating a clustered columnstore index on a table that has computed columns, as long as they are not persisted computed columns. [1] I would like to get ...
Ed Avis's user avatar
  • 1,622
-1 votes
1 answer
67 views

I need to be able to calculate the number of business days difference between two dates: from DateRequestMade to DateIssued. I have used this code that I found: var calculatedBusinessDays = 1 + ((...
Sally Parkes's user avatar
1 vote
1 answer
81 views

I currently am working with 2 tables tbRecords and tbInspectedParts. tbRecord has an auto increment column that is mapped back to the tbInspectionParts through column eRecordId. Example - tbRecord: ...
EasyE's user avatar
  • 579
2 votes
2 answers
251 views

In PostgreSQL, I want to make a computed column, where end_datetime = start_datetime + minute_duration adding an interval to a timestamp. I keep getting error, how can I fix? ERROR: generation ...
mattsmith5's user avatar
  • 1,357
2 votes
1 answer
80 views

I would like to create a new column where I can sum units by quarter. My table like this Another column I would summ unit by product and quarter Edit: Last two col with the expected result Unit ...
Danhadnagy's user avatar
-2 votes
1 answer
47 views

How can I insert data into virtual json columns in mysql? I am creating a table that has a jsonData field and a virtual id column. CREATE TABLE table_json( JsonData JSON NOT NULL, id INT ...
strongest's user avatar
1 vote
0 answers
54 views

I'm trying to build a bar chart in Power BI where the X-axis shows the following: A "PAST" bucket representing all data before today The next 12 months, displayed as 3-letter month names ...
P002143_k's user avatar
1 vote
1 answer
74 views

In Maria database 10.6.22 on ubuntu 24.04, I wrote a function to unaccent utf8 fields. It works fine when I apply it to column entries, but I want to use it to generate an unaccented column in a table ...
user3448254's user avatar
2 votes
1 answer
122 views

I tried to create a generated column that adds timestamptz and interval columns, but Postgres complains that this expression is immutable: create table test ( ...
Andy's user avatar
  • 8,891
0 votes
0 answers
15 views

My dataset has an Employee that has taken many trainings, but has also worked some {Hrs} on the same day. I want to get the sum of {hrs}, as a calculated field, that the employee has worked, where the ...
Naomi 's user avatar
  • 31
2 votes
5 answers
122 views

I have a monthly dataset of 36 IDs for 23 years. I am trying to calculate the annual means for each ID. Please see a subset of the data below. structure(list(ID = c("AN", "AP", &...
rar's user avatar
  • 974
0 votes
2 answers
78 views

I am trying to get the MAX() of the sums of amps_a + amps_b + amps_c within the month of March for the ID column. This should return a single row for the highest sum for the month of March (or at ...
compto2017's user avatar
-2 votes
1 answer
54 views

I have a scenario in Power BI: I have a simple Transaction Table, with Order and Delivery years in two columns, with an Amount column. I do not care about the ProductId column for my visuals; the ...
user3812887's user avatar
0 votes
1 answer
69 views

I am using SeaORM in a Rust project and trying to retrieve ranked user balances using MySQL’s RANK() OVER (ORDER BY ...). However, the rank field always returns 0 for all rows. Rust Code: #[allow(...
Alok's user avatar
  • 11k
1 vote
0 answers
36 views

I have a series of IDs in a Tableau column that I need to derive the actual names from another data source (like a vlookup or join via the ID), and display the actual names on a new Tableau field. See ...
TSBOlson's user avatar
0 votes
0 answers
51 views

I have a data table and want to create a pivot table off it (top part of image) with a variance field Calculated as the NPV difference (change/movement) between Period D and F (middle part). I have ...
Dasal Kalubowila's user avatar
0 votes
0 answers
8 views

FishVolume is found by the formula: FishVolume = Lenght1 * Height * Width FishDensity is found by the formula: FishDensity = Weight / FishVolume Show the first 5 rows of the the dataframe with the new ...
user29982337's user avatar
0 votes
2 answers
485 views

I have a table that contains sales data over the course of several years on a fiscal calendar. Here is a snippet example of this data: I would like to add another column (PY Sales) to see how we ...
Reign of Error's user avatar
0 votes
0 answers
64 views

I"m building a dashboard that will identify missing values for three data points: Billing, Reason, Origin. They are all text and do not contain numbers. How do I construct a calculated column I ...
Susan's user avatar
  • 1
1 vote
1 answer
152 views

I'm working on a movie box office revenue spreadsheet. A pivot table was created for the movie data to make calculations of sum, average and count of revenue generated. Now I want to use a calculated ...
bussie's user avatar
  • 13
1 vote
7 answers
153 views

I have the dataset below Record_Number Col1 Col2 Col3 (Calculated Column) 1 123 1 123 2 456 1 456 3 789 2 456 4 147 2 456 5 258 3 258 6 852 4 258 7 963 2 258 8 213 1 213 I can't figure out a way to ...
mlo356's user avatar
  • 13
0 votes
1 answer
117 views

I am trying to have an auto-computed column to tell me the difference in hours between the 2 dates. It will not let me do it because the database has ANSI_WARNINGS = OFF. I know the best practice is ...
Joseph Esposito's user avatar
0 votes
0 answers
80 views

I am working with Oracle APEX and using an Interactive Grid with Flashback functionality enabled. One of the columns in my grid is a query-only column (it is calculated using an SQL query and does not ...
Sinan ÖLKER's user avatar
0 votes
1 answer
111 views

I have a dataset that contains number of logins by user_id per day. If I do a uniquecount([user_id]) in a cross table with [Date] in the vertical column, it gives me our Daily Active Users. I want ...
Zoltan Nemeth's user avatar
0 votes
1 answer
179 views

I'm creating a report that will show that change in a particular column between one row and the one previous. When I use the following DAX formula, nothing is shown in the column ...
Geezer's user avatar
  • 507
1 vote
1 answer
79 views

I have a data.table and want to add a new column: big_table[, ("new_column") := some_function( col1, col2, … ) ] The function may be defined as some_function <- function( xCol1, xCol2, … ...
scenario's user avatar
0 votes
1 answer
114 views

I'm trying to create a calculated column IF statement in Microsoft Lists and wondered if anyone could help please? Column: Date Column: Leaver Reason Test Column: Status Calculated Column to be the '...
arcusm's user avatar
  • 1
0 votes
1 answer
42 views

I am trying to calculate a table where I can see the YTD values with this DAX: Is YTD = IF ( 'Append'[Attribute - Date] >= DATE ( YEAR ( DISTINCT ( 'Append'[Date Ref.EoMonth] ) ), 1, 1 ) ...
Yolanda CB's user avatar
1 vote
1 answer
81 views

I have a Power BI calculated table set up like the following with customer, item, week and cut cases. I'm looking to add another column that sums the number of consecutive weeks the cut cases > 0. ...
user28081423's user avatar
0 votes
1 answer
26 views

I have a dataset that has Grocery store name, department name, Employee name... I am trying to Count the number of employees by department to get a total number of employees by department and then ...
user28046834's user avatar
0 votes
1 answer
103 views

In a Libre Base query can anyone say why the following would fail to produce a numeric character with 4 decimals and instead return a column formatted as text showing two decimals? I want the query to ...
devitti's user avatar
0 votes
2 answers
70 views

How do I create a SQL statement to paginate users calculated performance results? Users usersid | name etc... 1 | Satoshi 2 | Musk Lessons with amounts lessonsid | usersid | totalPay 1 | 1 | 200 2 | ...
Bobby Kalia's user avatar
0 votes
1 answer
90 views

I have a Microsoft SQL Server database which I have connected to with an ODBC link. There are three columns of interest in the table I am querying: serovar, reportyear and hospitalised. Each row ...
Amy M's user avatar
  • 1,103
2 votes
1 answer
77 views

I have created the following pandas dataframe: ds = {'col1':[1,2,2,3,4,5,5,6,7,8]} df = pd.DataFrame(data=ds) The dataframe looks like this: print(df) col1 0 1 1 2 2 2 3 3 4 ...
Giampaolo Levorato's user avatar
1 vote
1 answer
63 views

I am using the function "preventr" in RStudio. It basically is an equation that uses around 10 parameters to predict cardiovascular disease risk for patients. I have a dataframe with >50,...
ronaldo7's user avatar
1 vote
1 answer
67 views

I ran into a situation with pg_restore that for all the world looks like a race condition to me. But this being Postgres I just can't believe I'm encountering an actual bug with something so straight ...
d-vine's user avatar
  • 5,557
1 vote
1 answer
107 views

Simple sample: from sqlalchemy import Column, Integer, Computed, update, insert, select from sqlalchemy.ext.asyncio import create_async_engine, async_sessionmaker, AsyncSession from sqlalchemy.orm ...
Александр Десятов's user avatar
3 votes
1 answer
271 views

I have created a pandas dataframe as follows: import pandas as pd import numpy as np ds = { 'trend' : [1,1,1,1,2,2,3,3,3,3,3,3,4,4,4,4,4], 'price' : [23,43,56,21,43,55,54,32,9,12,11,12,23,3,2,1,1]...
Giampaolo Levorato's user avatar
0 votes
1 answer
126 views

I'm in PBI Desktop; connected via direct query and trying to count the number of occurrence of a specified column; to use it then in column to be able to use it as slicer Long story short; I've ...
Margot Margot's user avatar
1 vote
1 answer
55 views

I have a composite type: CREATE TYPE objref AS ( objid nonnull_int8, objtype nonnull_string ); Have a table with an array column of the above composite type: CREATE TABLE partner { sw ...
kr d's user avatar
  • 11
1 vote
0 answers
51 views

I have a report with OrderIDs and related boolean dimensions for each order. I want to create a calculated dimension counting the boolean results for each dimension/object. Is this even possible in ...
Sofie H's user avatar
  • 11
0 votes
0 answers
280 views

I'm trying to create a column that only contains the minimum value of another column but keep running into an error. See below: Power Query Window : Any idea as to what is going on. It seems like ...
The Lemur's user avatar
0 votes
1 answer
105 views

I would like to build a SQL query to get the sum of hours(difference between end and start) by week for each person. In my main table, I have 3 columns : ID startDT endDT 1 01/01/2024 08:00 01/01/...
Jimmy Dubray's user avatar
1 vote
1 answer
113 views

I'm working on a Laravel project where I need to calculate an estimated_value for each record in my SalesLead model by multiplying the probability and value columns. I want to filter records based on ...
Mostafa Lotfi's user avatar
1 vote
1 answer
79 views

Main Problem Suppose I have the following Pandas DataFrame (code shared below): Suppose further that I want to create a new column called NewVal according to the following rule (process often called &...
Felipe D.'s user avatar
  • 1,301
0 votes
3 answers
64 views

I have created the following pandas dataframe: ds = {'col1' : [1,1,1,1,1,1,1,2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,4,4,4], 'feature1' : [1,1,1,1,1,1,1,2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,4,4,4], 'col2' :...
Giampaolo Levorato's user avatar
0 votes
2 answers
90 views

Image to better explain the problem. What I'm trying to do is make the columns in the second section the same as the first. So far, I've achieved this by adding 13% padding to the left and right sides ...
Damian ProExCurator Dbrowski's user avatar
0 votes
1 answer
155 views

I'am trying to use a generated column to cast a Varchar column to a Date column. The expression to generate the date consists of some string manipulation to derive an appropriate string that can then ...
erchenstein's user avatar
1 vote
1 answer
23 views

Calculated column by combining 2 other columns where column A is ref column has duplicate distinct values. If column B has result any row for that specific Ref in column then same should be the result ...
Omar's user avatar
  • 15

1
2 3 4 5
48