Excel IF statement to work with comparing two percentage values and producing a third

Advertisements I am trying to compare two percentages and produce a third percentage For example: The Threshold (column B) is the expected standard The Availability (Column A) is the actual received The Credit (Column C) is the percentage discount given dependent on the difference between columns A and B Formula used I’ve attempted to use… Read More Excel IF statement to work with comparing two percentage values and producing a third

How to calculate percentage change within a group and across a group?

Advertisements I have seen multiple posts asking this question but have been unable to get the to work with my dataset. I have a dataframe containing summary information (output from a .groupby and describe() operation). data = [ [123456, "2017", 8.0, 150.235], [123456, "2018", 8.0, 202.5], [123456, "2019", 7.0, 168.526], [123456, "2020", 6.0, 175.559], [123456,… Read More How to calculate percentage change within a group and across a group?

how can i find percentage of the combination of the columns in pandas

Advertisements I have following dataframe : enter link description here for dataframe I want output like this. according to week and classes. In the base of attendence where 1 count percentage of the classes & week. >Solution : Try using .groupby([‘week’, ‘classes’])[‘attendence’].agg([‘sum’, ‘count’]) on your dataframe to get both the numbers of rows and the… Read More how can i find percentage of the combination of the columns in pandas

Calculate a percentage of column by userid (SQL)

Advertisements I have this really small table where I need to calculate what percent of users used a time-off feature? time_off_used parameters show if users used that feature (1), or not (0) role user_id time_off_used Admin 45ds4f5d4sfd5s5fd5s4dfg 0 Admin 45ds5f4ds5sdf45dfs5sdgfgf 1 Regular 45ds4f5d4sfd5s5fd5s4dfg 0 Admin dh454hkd564khdg564kd6fgjg 1 Project manager sgj3js32jgfsj1s2jss1jgssg54 1 Admin 45ds5f4ds5sdf45dfs5sdgfgf 1 Regular… Read More Calculate a percentage of column by userid (SQL)

Map values based on distribution from one dataset to another in R (data.table)

Advertisements How can I map values from one data.table to another, based on their distribution? I created some sample data below. In my small_data, I have an overview with dates and how often they occur (expressed in count [N] and percentage [perc]). Next to that, I have a big_data table, which untill now only consists… Read More Map values based on distribution from one dataset to another in R (data.table)