Calculation of percentage - a little problem
as some of you know that I got a page that takes a number divided by another number and does x 100 to give me a percentage.Well, it works perfectly well now the use of this:
#decimalformat((combinedStuff.query1sla[n]/combinedStuff.query2total[n])*100) #.
But it is a problem that I didn't.
some groups have for the first number 0 and the second number so Coldfusion comes back telling me that he cannot divide by zero.
How abouts solve this?
Thank you
Luke
Just make sure they're not two 0.
Tags: ColdFusion
Similar Questions
-
I have little problem with my disk utility.
Hello Sir/Madam...
I have a little problem that I can't fix it.... so please can someone help me with this question, I can only explain with this image as an attachment, I thank those still and wish everyone the best chance.
Make a backup, best 2 separated on 2 discs. Start of recovery volume (command - R on a restart, or hold down the option/Alt during a restart and select the Volume of recovery). Run the check/repair disk utility and repair permissions until you get no error. If this doesn't resolve the problem, try reformatting the drive using Disk Utility/Erase Mac OS extended (journaled), then click on the Option button and select GUID. Then re-install the operating system.
-
I'm having a little problem with my Hotmail, if I try to send a new email, it takes me to windows live highlights page, if I do a search, it won't take me to the first pages of search and it takes me to the windows live made highlights page. If I try to remove messages from hotmail, it takes me to the windows live made highlights page
driving me crazy
I did a system restore, reinstalled IE 8 defragmented and run an anti virus scan, please help
original title: I'm having a small problem with my Hotmail
Hello PaulaSteptoe,
The best place to ask your question of Windows Live is inside Windows Live help forums. Experts specialize in all things, Windows Live, and would be delighted to help you with your questions. Please choose a product below to be redirected to the appropriate community:
Looking for a different product to Windows Live? Visit the home page Windows Live Help for the complete list of Windows Live forums to www.windowslivehelp.com.
-
I'm having a little problem in the download process,
When checking email, send him an e-mail address is not my account
You can re-sent to my current email address? Thank you
Hello
Please see wrong address to connect to Creative Cloud Desktop, how to pass to my e-mail? and CC has a fake email, can not change
Hope that helps!
Kind regards
Sheena
-
FIRST glance multicam CS6 has a little problem!
It seems at FIRST sight multicam CS6 has a little problem! It won't let you not manully (not in playback mode) scroll frame-by-frame and to move from camera to camera and update your calendar nested with edit cuts! It will make only change cuts while the play button is engaged! Which means that you have to be perfect with your cuts, while images plays back! Can someone fix this please?
Hold down the Ctrl key when you click at the same time cut and change the angle. Simply clicking just change the angle and not drop a mount point.
Yes, it is a deparature. No, I don't think it's perfect. MultiCam - despite the addition of the additional angles in CS6 - still leaves a little to be desired. For example, I want a keyboard shortcut that will (just like the Ctrl + click option described above) cut and change the angle of the timeline panel. Changes long and boring, this would let you change a LOT faster. For requests of all the features, do it here: Adobe feature request/Bug Report Form
-
Forms - calculation of percentages are based on the percentages of parent in a tree structure
Hello
We have a scenario where we build a tree using a standard package available in oracle forms when new block and fill a tree structure of multi Instance.
The block is based on a single table.
The tree is is filled. The problem is with the percentage calculations. As the percentage of the child dependent parent
PERCENTAGE of PARENT- CHILD LEVEL
1 101 0 45
1 102 0 35
1 103 0 30
2 201 101 PERCENTAGE OF PARENTS 101
2 202 101 PERCENTAGE OF PARENTS 101
2 203 102 PERCENTAGE OF PARENTS 102
2 204 102 PERCENTAGE OF PARENTS 102
3 301 201 PERCENTAGE OF PARENTS 201
You can get the percentages to level 2, level 3.
I was wondering how this can be done in oracle forms... for example... .to child 201, is the percentage of the 101 level... but level 101 is also filled in the buffer of the block as well as all Level1s...
All entries are appreciated.
Thanks and greetings
S
The solution me. Idea is to use the 'Post' at the time be called in a loop. Then POST will write in the validation of the database but strict.
The idea is that at the time of execution, we would be able to select "Not ENGAGED" current session data in the database and use it more for treatment.
Concerning
S
-
Privileged calculator HP - NORMALD_CDF and NORMALD_ICDF problem
Normal distribution functions do not work as documented. The entries are average, standard deviation and X or probability according to the function. In all cases, the functions ignore the entry of mean values and standard deviation and assumes that 0 and 1 for these values. Is there a fix for this problem?
Hello
You can post your problem here:
https://groups.Google.com/Forum/?fromgroups#! Forum/comp.sys.HP48
There are members of the team of Calculator HP that browse this newsgroup and the first is discussd it.
-
Percentage of life problem battery
Hello
I've heard many people complainig that the 6s iPhone does not show the right percentage of autonomy. I have an iPhone 6 more and the same thing happens to me. Yesterday, my phone died at 41%. I first noticed about a month ago, when iPhone is dead at 8% and since then whenever the phone goes off to a larger percentage.
The solution that apple gave the iPhone 6 s (change the time...) does not work. I really don't know what to do...
I had similar problems and were able to restore the accuracy of my battery percentage by performing the steps in this article. He explains what he can be, reason why it could happen and a fix for the problem.
-
A little problem in Acer E1-422
Hi, I just bought myself an Acer Aspire E1-422, which is overall a great laptop. But I just encountered a problem and any help is appreciated.
My old laptop was Acer Aspire 4741, having Win7 OS installed. I used to play with it, but then I realized I need a laptop to play with. I therefore decided to buy E1 - 422. The problem is, even if the graphics card of E1 - 422 is so much better than 4741, he is lagging worse than when I played with 4741. Is it because I copy the game of win7 for win8, or is it something else? I tried to reinstall the program, but the gap still exists. My hypothesis is, the game is not completely compatible with win8, but I don't know if it of fair or not.
I am saying it is, can Acer kindly provided with E1-422 driver compatible with win7? I was a little upset when my new laptop with specification of good game lags even when playing old games.
I would be really happy if someone can help.
Best regards
Arif
Just a thought - check manufacturers of games Web site - there may be a patch or an update for users of Windows 8. Also check to see if there is a LAN or wireless driver update.
It is still possible to downgrade (or upgrade, depending on your point of view!) for Windows 7, some drivers may work, but it will be a case of trial & error. Back up everything (or picture of your partition Windows 8) and try it. If things go wrong, you can always return to Windows 8.
Also, make sure that you did your recovery disc/USB stick, if you have not already, just incase it goes wrong!
-
Calculation of age using TimeStampDiff problems
Hi, I'm running a strange problem. 'âge' is not an attribute stored in our data warehouse - but is "Date of birth".
I try so to dynamically calculate age based on the difference between the date of birth and whatever "date statement" the user chooses. In the business layer, I defined the age as (note that field date_key on the date dimension is actually a DATE field, not the surrogate key):
Try #1: TimeStampDiff (TSI_SQL_YEAR, birth_date, dim_date.date_key)
Try #2: TimeStampDiff (TSI_SQL_MONTH, birth_date, dim_date.date_key) / 12
Try #3: Truncate (TimeStampDiff (TSI_SQL_MONTH, birth_date, dim_date.date_key) / 12, 0)
The problem I encounter is that, when written OBIEE the SQL in the Oracle database, instead of translating the TimeStampDiff function to use Oracle "months_between", it uses ROUND (months_between), like this:
ROUND (MONTHS_BETWEEN (T48594. DIM_DATE_KEY, T48615. (BIRTH_DATE) / 12)
And the problem is, when the flare, he pipes the calculation of age. For example, I get the following for an employee with a date of birth 20 October 1967:
RPT Date Birthdate age
Jan 2009 10/20/1967 41
Feb 2009 10/20/1967 41
Mar 2009 10/20/1967 41
Apr 2009 10/20/1967 41
Apr 2009 10/20/1967 42
May 2009 10/20/1967 42
Jun 2009 10/20/1967 42
Jul 2009 10/20/1967 42
Aug 2009 10/20/1967 42
Sep 2009 10/20/1967 42
Oct 2009 10/20/1967 42
Nov 2009 10/20/1967 42
Dec 2009 10/20/1967 42
As you can see, on 20 April, the age increased from 41 to 42 years. April 20 is exactly 6 months before date of actual birth of 20 October (so the problem with the ROUND function).
I need to somehow "force" OBIEE use TRUNC (months_between), not ROUND (months_between). Well, to tell you the truth, not sure at all why he puts ROUND here... If I wanted the rounded number, I would add this feature in muself. Other creating a view in the physical layer to support this, is possible to do what I'm trying to do it directly in the business layer?
Thanks in advance!
ScottIf so...
use the functions of database directly with function evaluate in OBIEE
-
The property 'navigator.userAgent' returns as a result of chain
Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; RV:1.9.2.13) Gecko/20101203 Firefox/3.6.13 .NET CLR (3.5.30729.; NET4.0E WebMoney Advisor)There is no need to do a reset of Firefox and create a new profile.
You should probably only to reset the pref general.useragent.override on the subject: config page.You can check the problems caused by a possibly corrupt user agent.
See:
-
Remember - this is a public forum so never post private information such as numbers of mail or telephone!
Ideas:
- You have problems with programs
- Error messages
- Recent changes to your computer
- What you have already tried to solve the problem
Hello
· Have you been able to play before Netflix movies on the system?
· What happens when you try to play the movie? You get the error message? If Yes, what is the exact error message?
I suggest you to uninstall Silverlight on the system then reinstall it on the system and check if the problem is resolved.
Step 1: Uninstall Silverlight
a. Click Start and select Control Panel from the list.
b. click on add and remove programs and look for Silverlight.
c. right-click and select uninstall to remove programs.
d. check in the programs folder if there are points listed and associated with Silverlight.
If so, then remove programs.
Step 2: Install Silverlight
Install Silverlight form the below mentioned link and check if you're able to install Silverlight on the system.
http://www.Microsoft.com/getSilverlight/get-started/install/default.aspx
Thanks and regards.
Thahaseena M
Microsoft Answers Support Engineer.
Visit our Microsoft answers feedback Forum and let us know what you think. -
Hello
I have a table with 2 columns like this:
PART
ID
A
ID1
A
ID2
A
ID3
A
ID4
B
ID1
B
ID2
B
ID3
B
ID4
B
ID5
B
ID6
B
7
B
ID8
B
iD9
C
ID1
C
ID2
C
ID3
I would like to create a table by setting a value in % (on a scale of 100), based on the number of ID. I do like this:
PART
ID
VAL_IN_ %
A
ID1
25
A
ID2
50
A
ID3
75
A
ID4
100
B
ID1
11
B
ID2
22
B
ID3
33
B
ID4
44
B
ID5
55
B
ID6
66
B
7
77
B
ID8
88
B
iD9
99
C
ID1
33
C
ID2
33
C
ID3
33
I have the OTHER with a different number of the ID in my table.
Any suggestion please?
Thenks
Hello
user7375700 wrote:
Hello
I have a table with 2 columns like this:
PART
ID
A
ID1
A
ID2
A
ID3
A
ID4
B
ID1
B
ID2
B
ID3
B
ID4
B
ID5
B
ID6
B
7
B
ID8
B
iD9
C
ID1
C
ID2
C
ID3
I would like to create a table by setting a value in % (on a scale of 100), based on the number of ID. I do like this:
PART
ID
VAL_IN_ %
A
ID1
25
A
ID2
50
A
ID3
75
A
ID4
100
B
ID1
11
B
ID2
22
B
ID3
33
B
ID4
44
B
ID5
55
B
ID6
66
B
7
77
B
ID8
88
B
iD9
99
C
ID1
33
C
ID2
33
C
ID3
33
I have the OTHER with a different number of the ID in my table.
Any suggestion please?
Thenks
Why is the highest percentage for B only 99, not 100? Why all the percentages are for C 33?
Assuming that those who have a few errors, you can do something like this:
SELECT DeptNo
ename
100 * ROW_NUMBER () OVER (PARTITION BY deptno
ORDER BY ename
)
/ ACCOUNT (*) OVER (PARTITION BY deptno) AS pct
FROM scott.emp
ORDER BY deptno
ename
;
Output:
DEPTNO ENAME PCT
---------- ---------- ----
CLARK 10 33
KING 10 67
MILLER 10 100
20 20 ADAMS
20 FORD 40
JONES 20 60
20 80 SCOTT
20 SMITH 100
30 17 ALLEN
30 33 BLAKE
30 50 JAMES
30 67 MARTIN
TURNER 30 83
WARD 30 100
-
Having trouble getting the calculations of percentage on logical aggregation count column
Hi Experts,
I am trying to create values of percentage based on the count aggregation.
For example in the 11g Sample Sales Data Model, I added 3 logical columns, Order_Count, Orders_Shipped, OrdersShipped %
As follows:
(1) Order_count
Derives from physical mapping of count (Revenue.ORDER_NUMBER F1)
Shipped_Count 2)
It's an expression derived for add a filter on the order_count of order_status. So I did this:
Filter ("Sample Sales".) "Revenue of F1" "." " Order_Count"using"Sample Sales ". "' Revenue from F1. ("' Order_status ' = 3-expedie ')
(3) % OrdersShipped
Again, it is an expression derived from calc the % of
"Sample Sales". "' Revenue from F1. "" Shipped_Count "/" Sample Sales ". "' Revenue from F1. "" Order_Count "* 100
In my analysis, the Order_Count and the Shipped_Count display correctly.
However, the % OrdersShipped always displays as 0.0000%.
I changed the format of data for the % OrderShipped to a type of percentage with 4 decimal places.
I also tried to add the % column analysis directly instead of the DM by doing this
"Basic facts". "count_shipped" / "core facts". "" Order_Count "* 100
Yet once, it appears as 0.000%
Any ideas would be greatly appreciated.
DB
Published by: user4990932 on March 12, 2013 07:04
RepostDB,
Try multiplying the numerator and the denominator by 1.0. This will throw your integers to floating-point numbers and your result will display correctly.
I hope this helps.
-Akshay
-
A little problem with an object
Hi guys...
I discovered a problem with an object, but I Don t see where the problem may be...
I have a 'bomb' added to the step only if the var bomb is greater than or equal to 1... and, of course, if you enjoy it, the var Gets a-... However, after a while, it seems once again
Any ideas?
Here is the code bound to it:
var dynamite: Loader = new Loader();
Dynamite.Load (new URLRequest ("dynamite.png"));
Dynamite.x = 650;
Dynamite.y = - 10;
var bombsound:Sound = new Sound();
var bombsoundChannel:SoundChannel = new SoundChannel();
var bombreq:URLRequest = new URLRequest ("bombexplosion.mp3");
bombsound. Load (bombreq);
If (! level) {var level: int = 1 ;}}
var lvlup:int = 200;
var updlvl:int = (lvlup * level);
If (!) (Count) {var count = 0 ;}
If (! bomb) {var bomb: int = 1 ;}}
dynamite.addEventListener (MouseEvent.CLICK, buttocks);
function bum(e:MouseEvent):void {}
If (sonido) bombsoundChannel = bombsound.play ();
-bomb;
If (bomb == 0) {}
If (dynamite.parent) {dynamite.parent.removeChild (dynamite) ;}}
kill every1
}
function level1(): void {}
If (level == 1) {}
addChild (nivel1pic);
If (bomb > = 1) {addChild (dynamite) ;}
}
}
function level3(): void {}
If (level == 3) {}
removerViejoNivel();
addChild (nivel3pic);
If (bomb > = 1) {addChild (dynamite) ;}
}
}
function level5(): void {}
If (level == 5) {}
removerViejoNivel();
addChild (nivel5pic);
If (bomb > = 1) {addChild (dynamite) ;}
}
}
function level7(): void {}
If (level == 7) {}
removerViejoNivel();
addChild (nivel7pic);
If (bomb > = 1) {addChild (dynamite) ;}
}
}
function level9(): void {}
If (level == 9) {}
removerViejoNivel();
addChild (nivel9pic);
If (bomb > = 1) {addChild (dynamite) ;}
}
}
function level12(): void {}
If (level == 12) {}
removerViejoNivel();
addChild (nivel12pic);
If (bomb > = 1) {addChild (dynamite) ;}
}
}
function updateLevel(amount:int):void {}
level += amount;
Level1();
Level3();
Level5();
level7();
level9();
level12();
}
Level1();
Level3();
Level5();
level7();
level9();
level12();
Thank you!
Use the function trace to track when the bomb is added. IF this happens in each of the functions level, then add traces to everyone to see where and when that happens.
Maybe you are looking for
-
See flickering on Satellite L640
Hello Having a Satellite L640 with a corrupt flickering display - a lot of horizontal lines randomly. A quick clip of the problem is here: [http://dl.dropbox.com/u/37870878/video-2012-11-17-11-04-46.mp4] A fine external monitor functions, reboots do
-
How to go from iPhoto to issue Photo - iPhoto 8.1.2
I still have iPhoto 8.1.2 because IIRC the upgrade I did not enter several lines in the description field, and I have many pictures with detailed descriptions. I understand that I've updated iPhoto if I want to spend 10.6.8 El Capitan and Photo... u
-
Increases the speed of execution
I'm working on an old program, adding another instrument in this VI. It's a simple loop that monitors up to 3 devices DVM and measures. Also, it will take measured values and tells you whether or not they are above or below a certain threshold. With
-
Trying to replace a table in a cluster
I have a table 1 d to a type with a cluster of 5 elements. One of the elements is a picture that I want to replace. Can someone help me understand how to do this? Thank you.
-
How do my hotmail? The page is jibberish that loads. What is going on? Thank you Brok