I want to calculate the sum of a calculated textbox i.e
Table1 has two columns colA bind with database [socre] and
ColB has an expression
[exp] i.e [score]/sum[score]*100
what i want is
TOTAL of colB sum[colB]
Please suggest me any suggestion.
Related
I have a table that consists of only columns of type Date. The data is about shopping behavior of customers on a website. The columns correspond to the first time an event is triggered by a customer (NULL if no occurrence of the event). One of the columns is the purchase motion.
I want to update the table so that all the for a particular row, all the cells that do did not happen 7 days prior to the purchase are replaced with NULL. I'm looking for some guidance in coding this single line. I've tried utilizing mutate_all() to no avail.
Assuming your data is called df, date columns start with date_ and the purchase date is purchase_date, perhaps something like this?
mutate(
df,
across(starts_with(“date_”),
~ifelse(purchase_date - . < -7,
NA,
.))
)
I have 3 columns like target, sales, percentage (sales/target *100). When i have shown these three columns in the devexperss xtrareport pivot grid the grand total percentage is just taking the sum of the columns. i want to show the percentage of the sum of sales / sum of target in both row and column grand total.
Check the attached excel sheet
I achieved this with the following steps.
Create a new unbounded column
Set the Summary type as "Custom"
Set the Unbound Expression formula as "Sales/Target*100"
Set the Unbound Expression Mode as "Use Summary Value"
Set the Unbound Type as Decimal
Add that new column into the data area.
Thanks for looking into the query.
Trying to find a solution of Oracle connect by prior functionality in Unix.
Sample input file
ColA , ColB
Join , Filter
Aggregate, Target
Filter , Aggregate
Source , Join
Requirement is that one record will be identified as start Row - (Here where ColA value is Source)
And now based on joining ColB and ColA value row orders will be sorted
So first row is
Source , Join
Second Row is where ColB value of First row is equal to ColA value of Second Row
So Second Row -
Join , Filter
Third Row is where ColB value of Second row is equal to ColA value of Third Row
So Third Row -
Join , Filter
With this logic output will be
ColA , ColB
Source , Join
Join , Filter
Filter , Aggregate
Aggregate, Target
I have a report Which having 10 column in which 5 or more column name is score i want to add all Score Column value into a Total Score Column. how can we do this ?
i want to write a expression or anything which can add only Score Column value.
I want to insert a new row in a table say 'table1' with autogenerated value for a single non-primary column with a formula condition max+1 i.e maximum value among elements of that particular column. Tell me the correct formula In shortHow to compute max value in a column of int type and then how to insert new row with max=1 value to that column
go to sql management studio ->rigth click on select table -> select design->then right click on your column->computed column specification->type desired formula hereORFetch max value from the database for desired column and then add max+1 to that value and insert it to that specific column(new row containing that computed value)
Insert Into table1
(autogeneratedcolumnname)
Values
((Select Max(value) + 1 From tablewithvaluecolumn))
Probably using OUTPUT clause you can achieve this..
INSERT INTO your_table('column1', 'column2')
OUTPUT inserted.column_to_compute
SELECT MAX(column_name) + 1 FROM your_table
Where column_to_compute is the name of column you want to hold computed values