Displaying negative value while % calculation
Hello Experts,
I'm having issues with the following sceanario.
There is one Percentage calculation column in report layout, but the result shows negative value even if Numerator & Denoinator having negative values. I'm using %A function and also NODIM.
I'm using like nodim(-2) %A nodim(-1) and result gives -200% instead of 200%.....
Please give me clarification to achieve the actual results.
Regards,
Navin Achanta
Hi Navin,
I hope you are working on BI 7.0. And this is a known issue from SAP and they have some notes to be applied for this to get the new %A functionality. What is happening here is, the denominator negative sign is not working and always it is taking an absolute value, i.e, only 1 in your case.
Please check with your basis guys or SAP. One of my friend got this problem and that is why i come to know this solution. But, sorry for the providing the exact notes applied for this.
Regards,
Srinivas.
Similar Messages
-
How to display negative values in a screen field of a screen
Hi All,
Please let me know how to display negative values in a screen field of a screen.
thanksHi Kishore,
You can do this method. In the screen , create a text field of CHAR instead fo creating an INT4 field.
I have created a field of CHAR of name say TEXT.
In the main program,
declare a variable of the same name ie. TEXT.
data: TEXT(5) TYPE C.
In PBO, just assign the negative values.
It will work.Since there is automatic conversion between character and integer data types, it will work for positive values as well.
Regards,
Sylendra. -
WebLogic 9.2MP2.Messages Pending topic count JMS display negative value
on admin console. Services -> Messaging -> JMS Modules in JMS System Modules -> JMS queue name -> Monitoring role tab .
I use WebLogic 9.2MP2 version . I found that JMS destination summaize page, Messages Pending topic count display negative value.
What is mean negative value ? or that bug of WebLogic9.2 MP2.
Thank you.
BR,A negative value indicates a bug -- quite likely in internal statistics gathering code itself. I don't know if the problem has been addressed in later MPs or later versions.
Tom -
Dvt:gauge StatusMeter displaying negative value strangely
Hi,
I'm creating a number of dvt:gauge components to display some retrieved numeric values. My aesthetic preference is to use the STATUSMETER gauge type. The values to be displayed vary greatly in scale and may be positive or negative. As a result I'm letting Oracle determine the best Min and Max values for the gauge(s).
The problem is that when a negative value is displayed, the status bar is still shown starting from left to right. This looks quite odd to our users as we would expect the bar to start at 0 (zero) and move from right to left. Currently it looks as if the value starts at an arbitrary negative value and is moving towards zero...?!
I've tried configuring the Min and Max values myself with no joy. Are there some additional attributes that I'm missing that enable the Status Meter to be shown in a more sensible way? Thanks.
FYI. I'm using JDeveloper Studio Edition Version 11.1.2.1.0.Hi,
Any help on this would be really appreciated.
Thanks. -
Why is it displaying negative value?
Hi friends when i tried to execute the following command
it is displaying the following answer.....
sql> select cos(60) from dual;
COS(90)
-.44807362
what's the reason to display negitive value for cos(60).....As anish pointed out, most computer languages tend to work in radians rather than degrees....
SQL> CREATE FUNCTION radians(p_degrees IN NUMBER) RETURN NUMBER IS
2 pi NUMBER(9,7) := 3.1415926;
3 BEGIN
4 -- There are 2*PI radians in a circle
5 -- Therefore 2*PI = 360 degrees
6 -- Therefore PI = 180 degrees
7 RETURN (p_degrees/180)*pi;
8 END;
9 /
Function created.
SQL> with t as (select rownum-1 as degrees from dual connect by rownum <= 360)
2 select t.degrees,
3 round(sin(radians(t.degrees)),6) SIN,
4 round(cos(radians(t.degrees)),6) COS
5 from t;
DEGREES SIN COS
0 0 1
1 .017452 .999848
2 .034899 .999391
3 .052336 .99863
4 .069756 .997564
5 .087156 .996195
6 .104528 .994522
7 .121869 .992546
8 .139173 .990268
9 .156434 .987688
10 .173648 .984808
11 .190809 .981627
12 .207912 .978148
13 .224951 .97437
14 .241922 .970296
15 .258819 .965926
16 .275637 .961262
17 .292372 .956305
18 .309017 .951057
19 .325568 .945519
20 .34202 .939693
21 .358368 .93358
22 .374607 .927184
23 .390731 .920505
24 .406737 .913545
25 .422618 .906308
26 .438371 .898794
27 .45399 .891007
28 .469472 .882948
29 .48481 .87462
30 .5 .866025
31 .515038 .857167
32 .529919 .848048
33 .544639 .838671
34 .559193 .829038
35 .573576 .819152
36 .587785 .809017
37 .601815 .798636
38 .615661 .788011
39 .62932 .777146
40 .642788 .766044
41 .656059 .75471
42 .669131 .743145
43 .681998 .731354
44 .694658 .71934
45 .707107 .707107
46 .71934 .694658
47 .731354 .681998
48 .743145 .669131
49 .75471 .656059
50 .766044 .642788
51 .777146 .62932
52 .788011 .615661
53 .798636 .601815
54 .809017 .587785
55 .819152 .573576
56 .829038 .559193
57 .838671 .544639
58 .848048 .529919
59 .857167 .515038
60 .866025 .5
61 .87462 .48481
62 .882948 .469472
63 .891007 .453991
64 .898794 .438371
65 .906308 .422618
66 .913545 .406737
67 .920505 .390731
68 .927184 .374607
69 .93358 .358368
70 .939693 .34202
71 .945519 .325568
72 .951057 .309017
73 .956305 .292372
74 .961262 .275637
75 .965926 .258819
76 .970296 .241922
77 .97437 .224951
78 .978148 .207912
79 .981627 .190809
80 .984808 .173648
81 .987688 .156434
82 .990268 .139173
83 .992546 .121869
84 .994522 .104528
85 .996195 .087156
86 .997564 .069756
87 .99863 .052336
88 .999391 .0349
89 .999848 .017452
90 1 0
91 .999848 -.017452
92 .999391 -.034899
93 .99863 -.052336
94 .997564 -.069756
95 .996195 -.087156
96 .994522 -.104528
97 .992546 -.121869
98 .990268 -.139173
99 .987688 -.156434
100 .984808 -.173648
101 .981627 -.190809
102 .978148 -.207912
103 .97437 -.224951
104 .970296 -.241922
105 .965926 -.258819
106 .961262 -.275637
107 .956305 -.292372
108 .951057 -.309017
109 .945519 -.325568
110 .939693 -.34202
111 .93358 -.358368
112 .927184 -.374607
113 .920505 -.390731
114 .913545 -.406737
115 .906308 -.422618
116 .898794 -.438371
117 .891007 -.45399
118 .882948 -.469472
119 .87462 -.48481
120 .866025 -.5
121 .857167 -.515038
122 .848048 -.529919
123 .838671 -.544639
124 .829038 -.559193
125 .819152 -.573576
126 .809017 -.587785
127 .798636 -.601815
128 .788011 -.615661
129 .777146 -.62932
130 .766044 -.642788
131 .75471 -.656059
132 .743145 -.669131
133 .731354 -.681998
134 .71934 -.694658
135 .707107 -.707107
136 .694658 -.71934
137 .681998 -.731354
138 .669131 -.743145
139 .656059 -.75471
140 .642788 -.766044
141 .62932 -.777146
142 .615662 -.788011
143 .601815 -.798635
144 .587785 -.809017
145 .573576 -.819152
146 .559193 -.829038
147 .544639 -.838671
148 .529919 -.848048
149 .515038 -.857167
150 .5 -.866025
151 .48481 -.87462
152 .469472 -.882948
153 .453991 -.891007
154 .438371 -.898794
155 .422618 -.906308
156 .406737 -.913545
157 .390731 -.920505
158 .374607 -.927184
159 .358368 -.93358
160 .34202 -.939693
161 .325568 -.945519
162 .309017 -.951057
163 .292372 -.956305
164 .275637 -.961262
165 .258819 -.965926
166 .241922 -.970296
167 .224951 -.97437
168 .207912 -.978148
169 .190809 -.981627
170 .173648 -.984808
171 .156435 -.987688
172 .139173 -.990268
173 .121869 -.992546
174 .104529 -.994522
175 .087156 -.996195
176 .069757 -.997564
177 .052336 -.99863
178 .0349 -.999391
179 .017452 -.999848
180 0 -1
181 -.017452 -.999848
182 -.034899 -.999391
183 -.052336 -.99863
184 -.069756 -.997564
185 -.087156 -.996195
186 -.104528 -.994522
187 -.121869 -.992546
188 -.139173 -.990268
189 -.156434 -.987688
190 -.173648 -.984808
191 -.190809 -.981627
192 -.207912 -.978148
193 -.224951 -.97437
194 -.241922 -.970296
195 -.258819 -.965926
196 -.275637 -.961262
197 -.292372 -.956305
198 -.309017 -.951057
199 -.325568 -.945519
200 -.34202 -.939693
201 -.358368 -.93358
202 -.374607 -.927184
203 -.390731 -.920505
204 -.406737 -.913545
205 -.422618 -.906308
206 -.438371 -.898794
207 -.45399 -.891007
208 -.469472 -.882948
209 -.48481 -.87462
210 -.5 -.866025
211 -.515038 -.857167
212 -.529919 -.848048
213 -.544639 -.838671
214 -.559193 -.829038
215 -.573576 -.819152
216 -.587785 -.809017
217 -.601815 -.798636
218 -.615661 -.788011
219 -.62932 -.777146
220 -.642788 -.766044
221 -.656059 -.75471
222 -.669131 -.743145
223 -.681998 -.731354
224 -.694658 -.71934
225 -.707107 -.707107
226 -.71934 -.694658
227 -.731354 -.681998
228 -.743145 -.669131
229 -.75471 -.656059
230 -.766044 -.642788
231 -.777146 -.62932
232 -.788011 -.615662
233 -.798635 -.601815
234 -.809017 -.587785
235 -.819152 -.573576
236 -.829038 -.559193
237 -.838671 -.544639
238 -.848048 -.529919
239 -.857167 -.515038
240 -.866025 -.5
241 -.87462 -.48481
242 -.882948 -.469472
243 -.891006 -.453991
244 -.898794 -.438371
245 -.906308 -.422618
246 -.913545 -.406737
247 -.920505 -.390731
248 -.927184 -.374607
249 -.93358 -.358368
250 -.939693 -.34202
251 -.945519 -.325568
252 -.951056 -.309017
253 -.956305 -.292372
254 -.961262 -.275637
255 -.965926 -.258819
256 -.970296 -.241922
257 -.97437 -.224951
258 -.978148 -.207912
259 -.981627 -.190809
260 -.984808 -.173648
261 -.987688 -.156435
262 -.990268 -.139173
263 -.992546 -.121869
264 -.994522 -.104529
265 -.996195 -.087156
266 -.997564 -.069757
267 -.99863 -.052336
268 -.999391 -.0349
269 -.999848 -.017452
270 -1 0
271 -.999848 .017452
272 -.999391 .034899
273 -.99863 .052336
274 -.997564 .069756
275 -.996195 .087156
276 -.994522 .104528
277 -.992546 .121869
278 -.990268 .139173
279 -.987688 .156434
280 -.984808 .173648
281 -.981627 .190809
282 -.978148 .207912
283 -.97437 .224951
284 -.970296 .241922
285 -.965926 .258819
286 -.961262 .275637
287 -.956305 .292372
288 -.951057 .309017
289 -.945519 .325568
290 -.939693 .34202
291 -.93358 .358368
292 -.927184 .374607
293 -.920505 .390731
294 -.913545 .406737
295 -.906308 .422618
296 -.898794 .438371
297 -.891007 .45399
298 -.882948 .469471
299 -.87462 .48481
300 -.866025 .5
301 -.857167 .515038
302 -.848048 .529919
303 -.838671 .544639
304 -.829038 .559193
305 -.819152 .573576
306 -.809017 .587785
307 -.798636 .601815
308 -.788011 .615661
309 -.777146 .62932
310 -.766045 .642788
311 -.75471 .656059
312 -.743145 .669131
313 -.731354 .681998
314 -.71934 .694658
315 -.707107 .707107
316 -.694658 .71934
317 -.681998 .731354
318 -.669131 .743145
319 -.656059 .75471
320 -.642788 .766044
321 -.62932 .777146
322 -.615662 .788011
323 -.601815 .798635
324 -.587785 .809017
325 -.573577 .819152
326 -.559193 .829038
327 -.544639 .838671
328 -.529919 .848048
329 -.515038 .857167
330 -.5 .866025
331 -.48481 .87462
332 -.469472 .882948
333 -.453991 .891006
334 -.438371 .898794
335 -.422618 .906308
336 -.406737 .913545
337 -.390731 .920505
338 -.374607 .927184
339 -.358368 .93358
340 -.34202 .939693
341 -.325568 .945519
342 -.309017 .951056
343 -.292372 .956305
344 -.275637 .961262
345 -.258819 .965926
346 -.241922 .970296
347 -.224951 .97437
348 -.207912 .978148
349 -.190809 .981627
350 -.173648 .984808
351 -.156435 .987688
352 -.139173 .990268
353 -.121869 .992546
354 -.104529 .994522
355 -.087156 .996195
356 -.069757 .997564
357 -.052336 .99863
358 -.0349 .999391
359 -.017453 .999848
360 rows selected.
SQL> -
Need pattern to display negative value in red
I am having one xdp form which contains multiples objects having some textfields mapped with some xsd.
requirement is if values is negative need to display it in red color as "-$18,970.50"
currently it is getting displayed as "$-18,970.50"
I have used pattern num{$z,zzz,zz9.99}
Is any ready made format available for this?Your requirement ("-$18,970.50") is not so common and may have to do major changes to meet this....I will start using a textField rather than a NumberField and Format using scripting not using out of box functionality. Changing text color to red is easy and can be easily done using scripting again.
I am sure you can try your self if you have some idea about JS or FC scripting....I can help you if you post additional requirements.....like...
1. Is the value prefilled / keyed in / calculated from other fields or combination of one or more?
2. Max and Min value allowed/ expected.
3. Any involvement of user actions there on? -
Display Net value while creating order
hi,
I want to display <b>Net price</b> while creating order. i did automatic pricing and the amount is coming for only basic price,freight and discount but i also gave rebate and that amount is not showing in Net field under sales order. (Net text field exist before Tax area)try the field vbap-cmpre(Item credit price) this should be included the tax. you can also put a new subtotal line in you calculation scheme and put this amount in an kzwi to the vbap.
greeting
bernd -
In query display sales negative values
Hi Friends
Iam Exicuting query based on these selection parameters
Sales Org: 5360
cal Month/Year: 04.2007 to 04.2008
When am exucuting the query above parameters some values display negative values like
04.2007 month display -39
07.2007 month display -253
the key-fig is sales turnover Qty display negative values
in BW side cube also display negative values
why display the negative values
anybody help meCheck the Source where data is coming if it is negative value. If source has positive value, in Cube also it should be positive.
Whatever value you have in your infoprovider, it will display in query. -
Using decode function without negative values
Hi friends
I am using oracle 11g
I have at doubt regarding the following.
create table Device(Did char(20),Dname char(20),Datetime char(40),Val char(20));
insert into Device values('1','ABC','06/13/2012 18:00','400');
insert into Device values('1','abc','06/13/2012 18:05','600');
insert into Device values('1','abc','06/13/2012 18:55','600');
insert into Device values('1','abc','06/13/2012 19:00','-32768');
insert into Device values('1','abc','06/13/2012 19:05','800');
insert into Device values('1','abc','06/13/2012 19:10','600');
insert into Device values('1','abc','06/13/2012 19:15','900');
insert into Device values('1','abc','06/13/2012 19:55','1100');
insert into Device values('1','abc','06/13/2012 20:00','-32768');
insert into Device values('1','abc','06/13/2012 20:05','-32768');
Like this I am inserting data into table for every 5 minutes Here i need the result like
output:
Dname 18:00 19:00 20:00
abc 400 -32768 -32768
to retrieve this result i am using decode function
SELECT Dname,
MAX(DECODE ( rn , 1,val )) h1,
MAX(DECODE ( rn , 2, val )) h2,
FROM
(SELECT Dname,Datetime,row_number() OVER
(partition by Dname order by datetime asc) rn FROM Device
where substr(datetime,15,2)='00' group by Dname.
According to above data expected result is
Dname 18:00 19:00 20:00
abc 400 600(or)800 1100
This means I dont want to display negative values instead of that values i want to show previous or next value.
Edited by: 913672 on Jul 2, 2012 3:44 AMAre you looking for something like this?
select * from
select dname,
datetime,
val,
lag(val) over (partition by upper(dname) order by datetime) prev_val,
lead(val) over (partition by upper(dname) order by datetime) next_val,
case when nvl(val,0)<0 and lag(val) over (partition by upper(dname) order by datetime) >0 then
lag(val) over (partition by upper(dname) order by datetime)
else
lead(val) over (partition by upper(dname) order by datetime)
end gt0_val
from device
order by datetime
where substr(datetime,15,2)='00';Please take a look at the result_column gt0_val.
Edited by: hm on 02.07.2012 04:06 -
Conversion error in Table control for Negative values
hello all,
Iam using table control with 6 columns and in that columns values are coming from Ztable. and out of that one column is of value which is input/output field and having negative value's also.type of that column is DEC.
Now when i run the report dump occurs showing error message as COnversion Error.
I think its because of negative value even the in attributes of that column i had selected With Sign checkbox.
Now when i run the report then if in Ztable negative value is there then i want to display negative value in table control also.
Please suggest me...
<removed_by_moderator>
Thanking you.
Regards.
Edited by: Hemant Baviskar on Sep 10, 2008 3:07 PM
Edited by: Julius Bussche on Sep 10, 2008 1:13 PMHemant
Refer to following link:
Table Control : Conversion error
Thanks
Amol Lohade -
Numeric Integration of positive and negative values in the same signal
Hello.. I need to perform an evaluation of Area Under Curve of my signal, but it contains positive and negative values. I am using the "Numeric Integration" function, but the result expressed by my VI represent: AREA OF POSITIVE VALUES - AREA OF NEGATIVE VALUES, in other words, my result represent the difference between these two areas. But I want to know the total area, the sum of positive values area and negative values area, and because both values has are "+", my final result should has "+" notation.
For example:
Area of positive values: +45.00
Area of negative values: +34.00
Total area: +79.00
How do I modify my VI to obtain the total area value?
I try to split my values in two parts:
A) only the positive and zero values
B) only the negative values
I calculated the areas of both splits and performed an sum of them, but the final result does not matches with total area (computed by another software to know the real value)
I attached an picture of my VI
Thank you
Daniel
Attachments:
Numeric Integration1.png 12 KBUse an event structure for the boolean value changed. You also did not follow Lynn's advice to insert an "absolute value". It would really simplify everything.
Here's how it would look in a newer version of LabVIEW (your icons look different because you have an older version. The functions are the similar).
This is just a draft and the program needs to be improved. Use a state machine with events for read file and another for value change on the sampling rate. Place the data array in a shift so you can change the sampling rate without the need to re-read the file. Modify as needed.
Some important pointers in general:
There is NO need to constantly spin the loop every nanosecond. The only time the loop needs to spin if if one of the inputs has changed.
If you don't use an event structure, all UI loops need a wait to conserve CPU.
Never (almost never) use "switch until released". Typically you want to use "latch when released" which makes the terminal true exactly once until the value is read and it will revert to false after that. "switch until released acts like a doorbell, so if it werent for the file dialog, you would execute the case several times in a row.
You don't need to get the array size and wire N of the FOR loop if you are autoindexing. LabVIEW will spin the loop until it runs out of elements automatically.
There is an atomic operation for "negate" in the numeric palette. No need to multiply with a "-1" diagram constant.
There is an atomic operation for ">=0" in the comparison palette. No need to compare with a "0" diagram constant.
Use a stop button on the loop termination.
Everything that only needs to be done once after the file is read (e.g. you inner loop, etc. also belongs inside the case structure. Right?
In general, you would make things much easier for us if you would attach your actual live VI instead of dead images.
Message Edited by altenbach on 04-19-2008 12:22 PM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
areaPositive.png 9 KB -
Negative values in Service Entry Sheet
Hi,
I am in need of creating service entry sheet lines with negative values (for a certain account assignment).
Bare with me, this will be long (-;
In my business scenario, (PS module, Construction Business) I use PO`s for external services with limits only. This PO has only one line ; the vendors are contractors who build for my company various types of buildings.
Every month I get an invoice from the vendor (contractor) for his monthly work, with a total sum, divided into various types of construction activities (Electricity, Sanitation, Paving and so on).
Against this invoice, a service entry sheet is created, with service lines from a service model containing construction works, in which I use material groups with account determination, so that each activity has its own GL account and cost element.
Immediately upon creation of the service entry sheet, logistic invoice verification is made (MIRO) based on the SES, and the payment is transferred to the vendor`s account.
My problem begins (ah! at last...) with the second monthly invoice and on.
It is almost by default that in this invoice, some of the construction activities from the previous month appear with negative values - mostly corrections.
Is there any way I can enter these negative values in a service entry sheet???
Remember - I cannot revoke the previous entry sheet (because of MIRO and payment)
I have already encountered error SE397, and the problem is that although the total value is positive, my negative values appear for independent account assignment lines.
Thanx in Advance,
Eytan.Hi Sanjeev,
Thank you for your prompt reply.
I do not need to enter an entirely negative SES.
As I wrote, only one line is supposed to have a negative value, while the whole document is positive.
I was able to create a SES with negative values in lines, but only when I used the same material group (hence account assignment). Unfortunately, this does not always help me because In some cases, the negative value belongs to a single account assignment line.
And why can`t I have a similar (automatic) function like material movement 102?
SES automatically creates in the background GR document with material movement 101.
Eytan. -
Aligning result with negative values
Hi,
I have to align the amount in the report. My problem here is, when the report
displays negative values, the amount misaligned.
Can you help me on this one?
thanks!If you can treat the data shown in the smartform as CHAR, write the number with sign moved to the left.
you've got:
345,00
456,70
345,90-
is it right?
Insteda why don't you format like this?
345,00
456,70
-345,90
Hope this helps,
Regards,
Anna -
Stacked chart with negative values
Is it possible to create a stacked verticle bar chart that can display a negative value below the bottom line? Currently, all of my my charts are displaying negative values as if they were positive and the only way to know that the value is negative is to hover over the bar and read the hint.
Thanks in advance for your help,
ToddHi Todd,
Depending how you look at costs, it's not expensive.
A single developer license of Anychart 5 costs USD 499.00 - 15% if you use the APEX15 promotion code.
If you spend a couple of days trying to integrate with something else you easily went over that amount.
So really, it depends in which perspective you look at it. The workaround with Excel, is that really an option? How long would it take for every person wanting to see that screen? How long would it take before you get to $440?
Anyway if you wait till next year, Anychart 5 is included in APEX 4.0 and you have it out of the box.
Just my thoughts,
Dimitri -
Negative values in bubble chart?
Is it possible or not? I would like to be able to display negative values in another color than the positive ones... Is there a native way to do so, or should I dirty my hand in another itemRenderer?
It seems I get an error whenever I try to display negative values...
Where is that magic property?You can use FillFunction for the bubbleSeries. Inside fillFunction, the data value can be accessed and decision on color can be made upon your custom logic of +ve/ -ve values.
Tanu
Maybe you are looking for
-
How can i move my purchased app from apple id in russia to ukrainean app store when i change country
I had my apple id in Russia and had a lot of purchased apps there. Recently i had to change a country of my apple id to Ukraine. So i have a question how can i move my purchased apps to apple id in Ukraine?
-
Lame Foldernavigation with Zen Stone plus with spea
I purchased the 4GB Model because i hear a lot of Audiobooks. Those are organised in folders. I downloaded the manual / help file before purchasing and was quite happy that the Zen support folders. Now im disappointed the way the Zen Stone handles th
-
Ipod Touch 4th generation 32G not turning on, not charging. I have used multiple cords on both computer USB and wall USB converters. I let it sit there for over 20 min with each attempt. It is not being detected by Itunes or my Windows 7 64bit OS. I
-
Using Subquery in Prepared Statement
can i use subquery in my insert using prepared statement need to specify the * property eg: insert into table1 values(select * from table2)
-
I verified my email but ipod touch says not verified, I go to redo and its says already verified but Itunes still shows it needs to be verified. I was in the process of creating a new Apple ID for my touch.