Questions tagged [percentage]

1 votes
1 replies
Get percentage clicked of elements width along the x-axis
I have a page structure that looks like in the image below. When clicking anywhere in the #progress element I want to calculate how many percenta...
2 votes
2 replies
scrollable content into percentage sized div
I got a div container and a div content. The content size has fixed height and width. I would like the container to have relative size (percentag...
asked 4 months ago
2 votes
1 replies
Return absolute number, and percentage together
I am trying to calculate the total number of [visits] from my hospital database, so that I can use the result to read from my Python script and s...
asked 4 months ago
0 votes
2 replies
How to round up percentage in 0 decimal in R
Looking for a easy method like EXCEL "Increase decimal","Decrease decimal" # Example number d <- c(0.6199548,0.8884106,0.9030066) # Expected...
asked 4 months ago
0 votes
2 replies
Postgresql percentage of records created in the specific time interval
I have a table that contains the field created_at. I want to calculate the percentage of records from the total number that was created in the sp...
asked 4 months ago
-1 votes
1 replies
How do I find the percentage error in a Monte Carlo algorithm?
I have written a Monte Carlo program to integrate a function f(x). I have now been asked to calculate the percentage error. Having done a qui...
asked 4 months ago
0 votes
1 replies
Given a dataframe containing time delays: how to tell by what point 90% of delays have occurred
I have a set of observations that measure time delay from an initial event, such as the elapsed time from when an email is sent to when it is ope...
asked 4 months ago
0 votes
0 replies
How to calculate percentage on Outer Apply and Group By?
I have two tables that are being joined with an outer apply. The problem i am having is that i want to calculate percentage based on the values f...
asked 4 months ago
0 votes
1 replies
Debugging code for a n-of command in NetLogo
I've set up firms (turtles) in an industry (world) which either produce at home (firms-own: reshored? false) or have offshored their production (...
0 votes
0 replies
How to change color automatically in column chart based on percentage in highcharts
I want to change the color automatically in column based on percentage. Suppose there are 4 columns to be represented in the column graph, which...
asked 4 months ago
0 votes
1 replies
Correctly deducting a discount from a total price? [closed]
I have this code that takes in a number for a quantity of items. Each item has a base price of $6.00, then there is a discount applied to it base...
asked 4 months ago
0 votes
3 replies
Generate percentage from based on values from other column using PSQL
I would like to create a new column which contains values as 50%,60% etc based on the values from the other columns present in the table. From th...
asked 5 months ago
2 votes
2 replies
In Python how can we combine the formatting mechanism for both strings and a percentage?
In python, I want to format a string combining two strings with a percentage. From this post how to show Percentage in python I know to format a...
asked 5 months ago
0 votes
2 replies
Percentage calculation from pivot table pandas
I have a set of data which I have already imported from excel xlsx file. After that I determine to find out the percentage of the total profit fr...
0 votes
1 replies
How to calculate a percentile based on race position where 1st place should equal 100%
I have a table with Raceid, OverallPosition int and OverallCompetitors int. How do i calculated a percentage for each competitor where 1st place...
asked 6 months ago
0 votes
2 replies
CONVERTING DATA VARCHAR TO NUMERIC
Example data: 12.12%, 6, 1, 10%, 8.347%, 16.27 Code SELECT CONVERT(decimal(10,3), [Discount]) AS [Discount] FROM [RDMS_DEV].[dbo].[t_TNSDisco...
1 votes
1 replies
How to calculate value for each variable by their percent using DAX Power BI
Need your help to solved my problem about DAX Power BI. So, I'm trying to visualize the total cost for each project that have employee on it usi...
asked 5 months ago
0 votes
0 replies
How to receive an absolute instead of a decimal number for a reported ratio in percentages on NetLogo?
I've set up firms (turtles) in an industry (world) which either produce at home (firms-at-home located > ycor) or have offshored their product...
-2 votes
1 replies
Not able to fetch percentage in fixed column bars in highcharts
Hi i am new to highcharts and facing a difficulty in getting a proper fixed column chart which deals with percentage values. I would like: B...
asked 5 months ago
0 votes
1 replies
Why does the mutate function in dplyr not provide percentage decrease?
I am working on a dataframe called top10 and want to find out the percent decrease from 2014 to 2017: the formula for decrease% is Difference/To...
asked 6 months ago
0 votes
1 replies
Calculating % for one variable by 3 conditions suddenly gives an error message [closed]
Ok, I have a strange problem in my R code. I've got a dataset (in real its much larger): Stomachdata_2017 = data.frame(Species= c('Herring','Her...
asked 6 months ago
0 votes
0 replies
Creating a summary table for previous month and previous 12 months then adding percentage difference
I'm trying to create a table that provides a summary of all the different enquiry types we receive at the company for each area of the county. I...
asked 6 months ago
0 votes
2 replies
Conversion failed when adding percentage to end of value
,CASE WHEN sq.Total_Sales > 0 THEN CAST(ROUND(CAST(sq.Total_Sales AS FLOAT) / (SUM(pfm.C1)) * 100,0) AS varchar(10)) + '%' ELSE 0...
asked 5 months ago
-1 votes
2 replies
how to calculate gain percentage in java? What is
I got wrong output while i running this code***** package gain_per; import java.util.Scanner; public class Gain { public static void main(...
asked 6 months ago
0 votes
1 replies
Generate percent using group_by and mutate
I am working on a dataset that contains predicted label (predicted) vs. true label (label) for each id and a column indicating whether the predic...
asked 4 months ago