Calculate percentage based on checkbox results in Numbers iOS
Using Numbers iOS, I've created a gradebook to keep track of my students' progress.
I have used the Checkbox format for my results, and I would like to create a formula that will calculate a percentage based off of the checked results.
What formula could I use to convert the TRUE and FALSE results from my checkbox cells into 1s and 0s, add up the score, and then convert the total score into a percentage?
I've attached a picture to help explain what it is I'm trying to do here. I'd like to keep the checkboxes cells as checkboxes and only have the results converted in the "Grade" Column.
Thanks for your help!
Hi joey,
Here is an approach. The screenshot is from OSX but the formula should work well for you.
The formula in F1 =COUNTIF(A1:E1,TRUE())÷5
My reporting cell is formatted as %.
quinn
Similar Messages
-
Percentage based on two result of the columns
Hi all,
My report loos like
Type posting order Number of records Date diff %
A 1 1 1
A 2 1 1
A 3 1 1
Result 3 3 100%
B 1 1 1
B 2 1 1
B 3 1 0
Result 3 2 66%
As u can see that i need to calculate the percentage based on the result of two columns.
Can u please throw some light ..
Watin for reply
Thanks
BabuHi Babu,
I think your example is not totally clear. From what I understand, you need to calculate a result in percentage based on the result of two other columns. What you can do is to use the first result (from the two columns) as a CKF. And then, to this CKF, use the result calcultation options of the query desinger for percentage.
Hope this helps.
Regards,
Diego -
Calculate value based upon checkbox selection
G'day people,
I've got myself a bit stuck on a job I've got here, this javascript is getting the better of me.
The idea is that this script takes the sub total, and adds a creditcard surcharge (as a percentage) based upon a checkbox selection, then spits out the value to be entered into another field.
If anyone could have a quick look over the following and let me know where I've gone wrong, it would be appreciated.
var subtotal = this.getField("SubTotal").value;
var mastercardTick = this.getField("MasterCard");
var visaTick = this.getField("Visa");
var amexTick = this.getField("Amex");
var surcharge = this.getField("CreditSurcharge").value;
var creditcard = this.getField("PayCredit").value;
if (creditcard.value === "Off") {
event.value = 0;
} else {
if (mastercardTick.value === "Yes") {
surcharge.value= (1.2 / 100) * subtotal.value;
} else if (visaTick.value === "Yes") {
surcharge.value = (1.2 / 100) * subtotal.value;
} else if (amexTick.value === "Yes") {
surcharge.value = (3.75 / 100) * subtotal.value;
} else {
event.value = 0;Thanks George, I've given this a whirl and got very close... I got a NaN error, and found I was calling "SubTotal" a value twice, which was playing funny buggers!
I've got rid of one part (the if creditcard.value === "Off") as it wasn't acting like it should. I think I had to put it in a seperate function, to be called seperately then the rest of the code... However, I need to get the job out and it wasn't crucial.
Thanks for your help mate, appreciated.
For anyone else that's interested, amended code is as follows:
var subtotal = this.getField("SubTotal");
var mastercardTick = this.getField("MasterCard");
var visaTick = this.getField("Visa");
var amexTick = this.getField("Amex");
// var surcharge = this.getField("CreditSurcharge").value;
var creditcard = this.getField("PayCredit").value;
if (mastercardTick.value === "Yes") {
event.value = (1.2 / 100) * subtotal.value;
} else if (visaTick.value === "Yes") {
event.value = (1.2 / 100) * subtotal.value;
} else if (amexTick.value === "Yes") {
event.value = (3.75 / 100) * subtotal.value;
} else {
event.value = 0;
Not the nicest, but hey, it worked. -
How to calculate percentage based on key figure maximum value
Hello everybody!
I need your expertise on a query 'issue' I'm facing. Let's say I have a query getting me the Number of Open Items per Week (starting from billing document's Issue Date).
My client wants to be able to see the percentage per week and not the actual number.
So, what I have is below:
<b>Wk</b><b>"OI Nr"</b>
1 "68.801"
2 "66.288"
3 "59.344"
4 "50.506"
5 "20.950"
And what I want is below (in italics):
<b>Wk</b><b><i>"OI %"</i></b>
1 "<i>100% </i>" (i.e. 68.801 / 68.801 * 100)
2 "<i> 96,34% </i>" (i.e. 66.288 / 68.801 * 100)
3 "<i> 86,25% </i>" (i.e. 59.344 / 68.801 * 100)
4 ......
5 ......
Is it possible to achieve sth like this by altering some key figure properties or in any other way?
Thanks in advance.First u need to create a calculated Key Fig globally. You can do this at the extreme left end of the query Designer. Just right click on the Calculated key Fig and say <b>New Calculated Key Figure</b>
Give the description of the Key Fig and in the formula section just put the the key fig . <b>'OI Nr'</b> in you case
When u say ok it will open the properties of the key fig there u can see <b>Enhance>></b> at the bottom. Click on that make the <b>exception aggregation</b> to <b>maximum</b> and <b>refernce characteristic</b> for the one which u are having the values 68.801, 66.288, 59.344, ..
Save this calculated key fig
now in the Columns create a <b>new selection</b> under the key fig.
drag the newly created calculated key fig in this <b>new selection</b> and say ok.
Now right click on this <b>new selection</b>, go to the <b>Calculated Single Value</b> as drop down and make it <b>Normalize-Sub Totals</b>
Tick the checkbox <b>Also Apply to result</b>
and select <b>Calculate Along Columns</b>.
Save the query and execute. This should solve youe issue
Hope this helps. -
Result Analysis - Profit Percentage based on Revenue
Deare Gurus,
While executing Result Analysis, we see profit percentage on the right side as percentage onthe basis of costs. We would like to view such detail as a percentage of revenue
eg: standard
Revenue - 100
Costs - 80
Profit - 20
Profit percentage = 20/80 = 25%
We want it to be 20/100 = 20%.
Please help!!!!Hi Babu,
I think your example is not totally clear. From what I understand, you need to calculate a result in percentage based on the result of two other columns. What you can do is to use the first result (from the two columns) as a CKF. And then, to this CKF, use the result calcultation options of the query desinger for percentage.
Hope this helps.
Regards,
Diego -
Percentage based on the Date and Dimension - WEBI
Hello,
I have to calculate percentage based on the Dates and a Dimension.
I have BEX Query as source and reporting is done on BOXI - WEBI
Here is the table structure in the report.
List# , Process01, Process02.
List# is unique and Process01-Has 4 operations, Process02 has 3 operations (and these Operations can change from 3 to 7 or 2).
Operations will have a 'Date' only when it is completed.
and when all the operations in a 'Process' have 'Date' then i need to get the 'Latest Date'. If few of the operations are not confirmed, then i need to get the percentage like when 2 of 4 operations have date it will be 50% and when no operation is confirmed then 0% and so on .
Example Cube data:
List#,ProcessCategory,Operation,Date
100,Process01,456,11/11/2010.
100,Process01,457,11/12/2010.
100,Process01,489,
100,Process01,490,
100,Process02,890,11/13/2010.
100,Process02,891,11/14/2010.
100,Proceess02,892,11/15/2010
Result:
List#, Process01, Process02
100,50%,11/15/2010.
Please help me in this, i tryed different logics but it is giving ERROR at percentage.
Your help would be appreciated!
Thanks in advance.I applied this:
If([Process Category] InList("Process01") And IsNull([Date]);[Percentage];Max(Date)))
[Percentage] = (Count([Date])/Count([Operation]))*100.
but, this is not becoming true - even when Operation has one Date
Showing result as:
List#,Process01,Process02
100, 11/12/2010, 11/15/2010
But result should be
100,50%,11/15/2010
Can anyone help me achieve the right result!
Thanks in advance. -
Caculate the percentages row wise in Result Row
Hello Friends, I have this issue with the sales report , Where the we caculate the percentages of No of Automotive sold / No of Automotive Manufactured
Now we saw that result row for a fiscal yr period calculate the percentages coloumn wise which is incorrect we want to calculate the percentages in the Result Row Header as row wise.
For Example
FISCAL PER/YEAR No of Auto No of Auto Manuf % percent sold
sold
006.2007 10 10 100
007.2007 20 20 100
008.2007 10 20 50%
009.2007 -- -- ---
Result Row === 40 50 cal on column
Correct result should be 40/50 = Total No Of Auto SOLD/ Total No OF Auto Manuf
Thanks
SoniyaHi Soniya,
You result does not give you correct percentage as the Bex can't. You can do this by adding key figure in data target and write a routine for this key figure to calculate percentage based on the previous two key figures. Now use this newly created key figure in your query designer instead of formula. Then u will get correct one.
Thanks
Kiran -
Calculate Percentage from the result of row result
Expert
I want to calculate percentage from row result
For Ex
Vendor
ID Record Percentage
1001 1002 1003 sum
A 10 10% B 20 20% C 70 70% 100 100%
X 50 25% Y 125 62.5% Z 25 12.5% 200 100%
I want to get percentage such as A percentage 10/(102070), , X percentage 50/(5012525)
not A 10/(10207050125+25) = 3.33%
Please help me to get the percentage which client want to
thanksDear Lemine.
Try using this..
Percentage Share of Result (%CT)
%CT<Operand>
Specifies how high the percentage share is in relation to the result. The result
means the result of aggregation at the next level (interim result).
%CT Incoming Orders specifies the share of incoming order values of each
individual characteristic value (for example of each customer) in relation to
the characteristic's result (for example, customer of a division).
Percentage Share of Overall Result (%GT)
%GT <Operand>
Specifies how high the percentage share is in relation to the overall result.
The overall result means the result of aggregation at the next level in the list.
In the calculation of the overall result, the dynamic filters (filters that were
not already defined in the Query Designer) are included.
Hope this helps u..
Best Regards,
VVenkat,, -
How do I calculate months remaining till next birthday in Numbers?
I have a spreadsheet in numbers 08 that I use to track the awards that the boys earn in my Boy Scout troop. I have one column for their name, one column for their birthday, and one column for their age. I want to add a column calculating how many months remaining until they turn 14. I would like to find a formula that calculates this based upon the column showing their birthday. I have tried multiple variations of the datedif and edate functions but they always return some type of error. I would appreciate any help coming up with the correct formula to make this happen.
Hi D',
Here's a calculation using TODAY and DATEDIF, and the birthdate, plus several date and time functions to construct the date 14 years after the bitrthdate. I've included a column showing the date on which the individual turns 14, but this column is for convenience only, and is not used in the months to 14 calculation in column D.
Formula in column D. Enter in cell D2 and fill down.
D2: =DATEDIF(TODAY(),DATE(YEAR(A)+14,MONTH(A),DAY(A)),"M")
Note that the result is in full months, and does not include the extra days, if any:
Column B uses the DATE() part of the formula to construct and display the date of the Scout's 14th birthday:
B2: =DATE(YEAR(A)+14,MONTH(A),DAY(A))
Regards,
Barry -
Percentage based on Status using per group
Hi Gurus,
Can you help me with this? You have any approach of getting the percentage based on status using per group?
Currently I have this code below but it doesn’t have result but no error. I am trying to get the % In Complete.
<?xdofx:(sum(current-group()/NUMINCOMPLETE)/(sum(NUMSUBMITTED) + sum(NUMCOMPLETED) + sum(NUMINPROGRESS) + sum(NUMINCOMPLETE)))*100?>
Thanks Much,
JP
Edited by: BIPnewbie on Feb 6, 2012 3:05 AMUse this:
<?xdoxslt:div(sum(current-group()/NUMINCOMPLETE), ((sum(NUMSUBMITTED) + sum(NUMCOMPLETED) + sum(NUMINPROGRESS) + sum(NUMINCOMPLETE)))*100?>
Thanks,
Bipuser -
Percentage based overhead based on target cost of actual production
Hello,
I'm trying to calculate percentage overhead (overhead as a % of total cost of production) using the usual overhead group, overhead key ,costing sheet, etc.
Also put the overhead group in the material master.
Although I am getting it correctly as part of product cost planning, when it comes to calculating this overhead on a production order, it does it based on 'total actual costs' posted to the order. I want it to calculate the % overhead based on the standard cost of actual production (the target cost).
I would really appreciate some help on this.Hi
If that's the requirement, you can achieve through template allocation. Refer the doc contributed by arturo senosain
I use a workaround for such cases. Add an activity type in routing with activity quantity same as base qty of routing.. Say, 1 PC
Maintain the activity price as .15. And you are done
Br. Ajay M -
Calculate changing wage rate pr hour in numbers
Calculate changing wage rate pr hour in numbers:
Hi I need some help calculating my salary. I get paid different wage rates every hour:
UGESATSER
Mandag
Tirsdag
Onsdag
Torsdag
Fredag
Lørdag
Søndag
1:00
163,72
163,72
163,72
163,72
163,72
163,72
225,97
2:00
163,72
163,72
163,72
163,72
163,72
163,72
225,97
3:00
163,72
163,72
163,72
163,72
163,72
163,72
225,97
4:00
163,72
163,72
163,72
163,72
163,72
163,72
225,97
5:00
163,72
163,72
163,72
163,72
163,72
163,72
225,97
6:00
163,72
163,72
163,72
163,72
163,72
163,72
225,97
7:00
124,50
124,50
124,50
124,50
124,50
124,50
186,75
8:00
124,50
124,50
124,50
124,50
124,50
124,50
186,75
9:00
124,50
124,50
124,50
124,50
124,50
124,50
186,75
10:00
124,50
124,50
124,50
124,50
124,50
124,50
186,75
11:00
124,50
124,50
124,50
124,50
124,50
159,36
186,75
12:00
124,50
124,50
124,50
124,50
124,50
159,36
186,75
13:00
124,50
124,50
124,50
124,50
124,50
159,36
186,75
14:00
124,50
124,50
124,50
124,50
124,50
159,36
186,75
15:00
124,50
124,50
124,50
124,50
124,50
159,36
186,75
16:00
124,50
124,50
124,50
124,50
124,50
159,36
186,75
17:00
124,50
124,50
124,50
124,50
124,50
159,36
186,75
18:00
159,36
159,36
159,36
159,36
159,36
194,22
221,61
19:00
159,36
159,36
159,36
159,36
159,36
194,22
221,61
20:00
159,36
159,36
159,36
159,36
159,36
194,22
221,61
21:00
159,36
159,36
159,36
159,36
159,36
194,22
221,61
22:00
159,36
159,36
159,36
159,36
159,36
194,22
221,61
23:00
159,36
159,36
159,36
159,36
159,36
194,22
221,61
0:00
163,72
163,72
163,72
163,72
163,72
198,58
225,97
How do i make a calculation that includes different rate pr. hour? It would be nice if i just need to put in the dates and time link this and than Numbers calculate my salary based on the different wage rates. Hope you can help. THANKS.
I have set up my numbers like this:
Start
Tid
lør. 10. januar 07.00
lør. 10. januar 23.00
16 timer
SALARY
søn. 11. januar 07.00
søn. 11. januar 23.00
16 timer
man. 12. januar 07.00
man. 12. januar 23.00
16 timer
ons. 14. januar 07.00
ons. 14. januar 23.00
16 timer
tor. 15. januar 07.00
tor. 15. januar 23.00
16 timerNo.
sheet 2 shows my working days from January. Fx.
lør. 10. januar 07.00
lør. 10. januar 23.00
16 timer
That is a Saturday which means that thies are the wage rates for each hour(sheet 1):
UGESATSER
Lørdag
1:00
163,72
2:00
163,72
3:00
163,72
4:00
163,72
5:00
163,72
6:00
163,72
7:00
124,50
8:00
124,50
9:00
124,50
10:00
124,50
11:00
159,36
12:00
159,36
13:00
159,36
14:00
159,36
15:00
159,36
16:00
159,36
17:00
159,36
18:00
194,22
19:00
194,22
20:00
194,22
21:00
194,22
22:00
194,22
23:00
194,22
0:00
198,58
This day my calculation should calculate this:
4 hr @ 124,50 (7-11)
7 hrs @ 159,36 (11-18)
5 hrs @ 194.22 (18-23)
0 hrs @ 198,58 (23-24)
Some times I work efter 00:00 fx. til 4 in the morning.
THANKS -
Calculate percrentage based on 2 column and one filter
Hi,
I am looking for a way to compute percentage based one two column and 1 filter but i have a problem when every thing is checked on my filter.
The table as follow is my example:
ID
cat1
cat2
number
total
pct
1
a
aa
5
40
13%
1
a
ab
20
40
50%
1
a
ac
15
40
38%
1
b
ba
12
47
26%
1
b
bb
20
47
43%
1
b
bc
15
47
32%
2
a
aa
9
45
20%
2
a
ab
16
45
36%
2
a
ac
20
45
44%
2
b
ba
10
50
20%
2
b
bb
20
50
40%
2
b
bc
20
50
40%
I create a power table as follow:
Filter: column ID
Axis: cat1 and cat2
values: pct
The problem is when I want to select all my data in my filter, a sum/mean is done for pct but the results are wrong. Did I missed something ? Is there a way to correct the problem ?Hi mi jo,
It appears that you have created your percentage as a Calculated Column and what you actually want is a Calculated Field.
You can create a Calculated Field by clicking on the Power Pivot ribbon and using a DAX formula similar to the following:
Percentage:=DIVIDE(SUM(TableName[number]), SUM(TableName[total]))
I have formatted this Calculated Field as a percentage and used it to create a Pivot Table:
Is this what you were after or have I misunderstood the problem?
Edit: Just took a quick look at the workbook and can see that the pct column is coming in as a fixed value for a row. The above solution should help. A best practice would be to first create a Calculated Field for each of the number and
total columns such as...
Sum of Number:=Sum(TableName[number])
And...
Sum of Total:=Sum(TableName[total])
And then finally update this DAX formula:
Percentage:=DIVIDE(SUM(TableName[number]), SUM(TableName[total]))
To this...
Percentage:=DIVIDE([Sum of Number], [Sum of Total])
Regards,
Michael Amadi
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to vote it as helpful :)
Website: http://www.nimblelearn.com
Blog: http://www.nimblelearn.com/blog
Twitter: @nimblelearn -
Can HPCM calculate percentages to use in allocations as well as perform the allocations
Hi All
I have a client that is evaluating which products to purchase from the Oracle stack. Unfortunately I don't know HPCM yet so I'm not sure of its capabilities. I think they will definitely go with Hyperion Planning but they do some relatively simple allocations and I cannot decide whether or not they need HPCM. They currently have a relational / access database that is used to calculate percentages to be used to allocate costs from back office to front office. Whether they need to purchase HPCM seems to depend upon whether HPCM can calculate the percentages required for the allocation as well as perform the allocations. The options as I see it are:
1. Replace legacy system with HPCM and use HPCM to calculate percentage and apply percentages to allocate costs
2. Keep legacy system for calculating percentages, upload percentages to HPCM and use HPCM to allocate costs
3. Keep legacy system for calculating percentages, upload percentages to Essbase and use Essbase to allocate costs
4. Keep legacy system for calculating percentages and allocating costs (not ideal as will require additional system interfaces of data from and to Hyperion Planning)
I know HPCM uses Essbase, when I say Essbase above I mean Hyperion Planning. I have advised the client that they ought to avoid option 4 but I am not clear enough on what HPCM can do to advise them on which of the other options is most suitable / cost effective.
Any help would be appreciated.
Regards
StuHi Stu,
the plain answer is Yes, HPCM can do such a simple task. In my private opinion, it would be a bit oversized.
I want to add an option and put my vote on this:
0. Pull in a DB connection the required data into Planning and use Planning to calculate percentage and apply percentages to allocate costs.
Regards,
Philip Hulsebosch.
www.trexco.nl
p.s. To all users, close questions which were answered. Then we do not have to open them to see if we can help = saves us time to help others. -
OBIEE Report - filter based on the result from another analysis
Hi,
I am using OBIEE 11g,
I am trying to use a filter which is based on the result from another analysis. I have an analysis A which is as table 1, and I want to filter the respective columns of analysis B (Table B) based on analysis A to remove the duplicates for march 01, 02, and 07 , but it is not working properly. I took a max of start and end time when I created analysis A. Please let me know if I did anything wrong. thanks.
Table 1
Employee Number
Date
IN
Out
Start Time
End Time
xxxxxxx
2015-02-26
9:00
13:00
00:00:00
00:00:00
2015-02-27
12:00
18:00
00:00:00
00:00:00
2015-02-28
8:00
14:00
00:00:00
00:00:00
2015-03-01
14:00
20:00
14:00:00
20:00:00
2015-03-02
16:00
20:00
16:00:00
20:00:00
2015-03-07
14:06
20:02
14:00:00
20:00:00
2015-03-11
16:00
20:00
16:00:00
20:00:00
2015-03-14
8:00
14:00
00:00:00
00:00:00
2015-03-25
14:00
20:00
16:00:00
20:00:00
Table 2
Employee Number
Date
IN
Out
Start Time
End Time
Hours
xxxxxxx
2015-02-26
9:00
13:00
00:00:00
00:00:00
-3
2015-02-27
12:00
18:00
00:00:00
00:00:00
6
2015-02-28
8:00
14:00
00:00:00
00:00:00
6
2015-03-01
14:00
20:00
00:00:00
00:00:00
6
14:00:00
20:00:00
6
2015-03-02
16:00
20:00
00:00:00
00:00:00
4
16:00:00
20:00:00
4
2015-03-07
14:06
20:02
00:00:00
00:00:00
6
14:00:00
20:00:00
6
2015-03-11
16:00
20:00
16:00:00
20:00:00
4
2015-03-14
8:00
14:00
00:00:00
00:00:00
6
2015-03-25
14:00
20:00
16:00:00
20:00:00
4Why avg here?
What columns you want to show in the report?
for a employee for given date if he have 2 rows then you may sum up hours right?
Employee Number
Date
IN
Out
Start Time
End Time
Hours
Maybe you are looking for
-
Ipad won't sync . Error message 1140
i connect my ipad to my macbook air and it comes up with this error message. It isn't full and im only asking it to sync apps and photos - no music or film/tv
-
How to know the version of outlook through JAVA prg???? Thanks
-
Which new MacBook Pro is best for a graphic design student?
Hi there, I was just wondering if anyone could give me some advice on which new MacBook Pro to get. I'm a graphic design student who would like to be able to use Photoshop, InDesign, and Illustrator at the same time, while also web browsing (I tend t
-
How to implement a Date Picker (Calendar) as a LOV in Portal Form?
I have a form, which will input date from user, and I also have javascript calender. How to implement a Date Picker (Calendar) as a LOV in Portal Form? Do I need to choose POPUP and LOV for Date? Instead of typing the Date within a Portal form, a pop
-
plz tell me the bugs which u rectified in u r suport project. i.e give some examples .