# Calculate the percentage using narrative view?

Hi all

I have a table like this.

Sales for the month in Prod
Jan aa 4500
Feb bb 5500

Now, I'm going to display content like this by using Narrative view.we use OBIEE11g.

sale of 5500 we recevied in FEB comapred to 4,500 of the previous month.it increase by 1%.

Thank you
Aerts

Re: formula in a narrative mode You may need to modify to your specific needs.

So useful, please mark as correct or useful.

### Similar Questions

• Dashboard invites (all choices) using narrative view

Using narrative view I can view LOVs of Prompt, but when the (all choices) selected, the view using view narrative?

Hello

you mean that it works for you:
http://108obiee.blogspot.com/2009/04/detecting-all-choices-from-dashboard.html

Kind regards

O Goran

http://108obiee.blogspot.com/

• How to communicate with the gsm using lab view

1 can anyone tell me about the GSM part in lab mode?

2. how to communicate with the GSM using lab view?

3. how to publish my data through GSM using lab view?

4. how to use ipod to send data to laboratory?

5. what a DAC suitable for ipod?

6. how to install the lab for ipod DAC mode?

without worrying

rehan_the_great wrote:

Can u please tell me the minimum requirement of computer (labtop) for the use of labview, like ram size, HARD drive, map chart etc...

A simple search for "labview requirements" on this site would have given you the information you want.

http://www.NI.com/LabVIEW/requirements/

• How to include the total number of table one fact in another fact table to calculate the percentage

I have a fact table in the grain of each document created in any organization, say the 1st table of facts. I have another table of facts (2nd fact table) seen those documents which are considered by different commentators. grain of this second fact table is so each review, even if I document in both IDs the fact table.

Now, I want to calculate the percentage return documents reviewed. For this I need to divide count separate from the document of performance by the total performance document. Now this document of total performance can be obtained from the 1st table of facts, but I don't get how to bring this indictment in the 2nd table of facts to show the percentage.

Please let me know if there is no ambiguity in my question, because I'm a starter in OBIEE.

Thank you very much.

then you can set new logical column with two columns of fact in the formula

I did a classic report with three columns, of which the last is the percentage of the second in the first column. I mark the column of the sum for the first two, but I would like that the total line in report was also done to calculate the percentage.

Example:

Val1 Val2% cod

X 10 4 40.00

Y 20 3 15: 00

Total: 30 7

I would like to bring to the rest of column %, instead of the sum, to calculate the percentage (23.33%)

It is a real hack, but it works on my example page

(find the last line, from individual cells to last row and divide them into another)

\$(«#report_emp tr:last td:eq (2)' ") .text (parseInt (\$(' #report_emp tr:last:eq(3)').text()) td / parseInt (\$(' #report_emp tr:last td:eq(4)').text()))))))

• How can I get my document to save the last used rotated view?

How can I get my document to save the last used rotated view?

• Calculate the space used in the database!

Hi all

I can calculate the space used by using one of the following ways:

1. determine the size allocated by issuing

SELECT SUM(d.bytes/1024/1024/1024)
FROM dba_data_files;

2 calculate the free space by issuing

SELECT SUM(bytes/1024/1024/1024)
from dba_free_space;

Space used will be the value of the first statement - value of the second statement. This is manually!

Is it possible to combine these two queries?

Thank you!

Dan.

You can certainly combine queries

``````SELECT (allocated.bytes - free.bytes )/1024/1024/1024 used_gb
FROM (select sum(bytes) bytes from dba_data_files) allocated,
(select sum(bytes) bytes from dba_free_space) free```
```

Normally, you could group tablespace as well.

But if you want just the amount of space used, it is probably easier to just

``````SELECT sum(bytes)/1024/1024/1024 used_gb
FROM dba_segments```
```

Justin

• calculate the deduction using the percentage and amount

I have a dynamic form with three fields decimal:

grossamount (grossamount)

percentage of deduction (fwpercent)

amount of the deduction (fwamount)

I have the following scripts:

Form1. #subform [0]. fwpercent::calculate - (FormCalc, client)

fwamount/grossamount*100

Form1. #subform [0]. fwamount::calculate - (FormCalc, client)

grossamount*fwpercent/100

I want to be able to change the amount or percentage and have it calculate the other, as shown in the scripts. If I open the form and taken in 100 for the gross amount, then 10 percent, the script works correctly, and 10 will be displayed in the w/h quantity. If I go to the fw amount field and replace it with 20, the percentage field still shows 10. the results are the same, if I make first, and then changes the percentage value but does not update if I do update percentage. This will only work for everything that I do everything first. I can't always fields depend on eachother whenever one of them is changed?

changed for the scripts below and it works as expected:

Form1. PaymentInfo.FederalWithholdingPercentage::exit - (JavaScript, client)

FederalWithholding.rawValue=GrossAmount.rawValue*FederalWithholdingPercentage.rawValue/100;

Form1. PaymentInfo.FederalWithholding::exit - (JavaScript, client)

FederalWithholdingPercentage.rawValue=FederalWithholding.rawValue/GrossAmount.rawValue*100;

• How to calculate the percentage of monthly sales

Hello

I have a column sales of the month and I have another column that calculates (monthly sales / (total number of monthly sales)) * 100.

How to calculate this percentage of sales.

Kind regards

Séverine.

You can use the AGGREGATE function for the TOTAL monthly sales in the year:

Something like: AGGREGATE ("measure monthly sales" to "Time" ".") Time hierarchy ".» An »)

"measure the monthly sales" / AGGREGATE ("measure monthly sale 'to"time'." Time hierarchy ".» Year') * 100

• Can not see the image using Team Viewer 6 CCTV

During office hours, I want to CCTV monitor (using my laptop to Windows 7 64-bit) installed in my house. I got to know that the viewer of the team is best freeware for remote access. I've accessed my PC at home (installed XP on it) using Team Viewer 6. instead of the view a gray window appears whenever I try to look at the camera, but I could works perfectly unless by CCTV PC at home

Hello

Check the following settings:

1. optimisation of the quality:

a. in the menu bar of TeamViewer

b. click on display

c. Select quality

d. click on optimize quality

2 turn on the feature of "driver":

a. click the icon on the remote computer's system tray,

b. click Options,

c. click 'Show advanced options', scroll down to "advanced network settings" and click on the button install to 'install the monitor driver.

• When I hit a link to a page in my directory in code view and I click on the link using live view, it does not to this page.  But if I saw in a browser, it works very well.

When I hit a link to a page in my directory in code view and I click on the link in live mode view, it does nothing.  When I then go to preview in a browser, it works fine.  Can anyone help?

To follow links in Live View mode, hold down the CTRL on Windows or the command key on a Mac key, and then click the link. Clicking on without using the Ctrl/Cmd key simply selects the link in Live View mode.

• extracting data from the CLOB using materialized views

Hello

We have xml data from clob which I have a requirement to extract (~ 50 attributes) on a daily basis, so we decided to use materialized views with refreshes full (open good suggestions)

A small snippet of code

CREATE THE MWMRPT MATERIALIZED VIEW. TASK_INBOUND

IMMEDIATE CONSTRUCTION

FULL REFRESH ON DEMAND

WITH ROWID

AS

XMLTABLE (' / a ' XMLPARSE PASSING ())

CONTENT '< a > | M.BO_DATA_AREA | "< /a >."

) COLUMNS

serviceDeliverySiteId varchar2 (15) PATH

"cmPCGeneralInfo/serviceDeliverySiteId"

serviceSequenceId varchar2 (3) PATH "cmPCGeneralInfo/serviceSequenceId"

completedByAssignmentId varchar2 (50) PATH "completedByAssignmentId."

Cust_id varchar2 (10) PATH "cmPCCustomerInformation/customerId,"

ACCT_SEQ varchar2 (5) PATH "customerInformation/accountId"

AGRMT_SEQ varchar2 (5) PATH cmPCCustomerAgreement/agreementId"."

COLL_SEQ varchar2 (5) PATH "cmPCGeneralInfo/accountCollectionSeq"

REVENUE_CLASS varchar2 (10) PATH "cmPCCustomerAgreement/revenueClassCode"

REQUESTED_BY varchar2 (50) PATH ' attributes customerInformation/contactName',...~50

This ddl ran > 20 hours and no materialized view created. There are certain limits that we have

• Cannot create a materialized view log
• cannot change the source as its defined provider table
• cannot do an ETL

DB is 11g R2

Any ideas/suggestions are very much appreciated

I explored a similar approach, using the following test case.

It creates a table "MASTER_TABLE" containing 20,000 lines and a CLOB containing an XML fragment like this:

09HOLVUF3T6VX5QUN8UBV9BRW3FHRB9JFO4TSV79R6J87QWVGN

UUL47WDW6C63YIIBOP1X4FEEJ2Z7NCR9BDFHGSLA5YZ5SAH8Y8

O1BU1EXLBU945HQLLFB3LUO03XPWMHBN8Y7SO8YRCQXRSWKKL4

...

1HT88050QIGOPGUHGS9RKK54YP7W6OOI6NXVM107GM47R5LUNC

9FJ1JZ615EOUIX6EKBIVOWFDYCPQZM2HBQQ8HDP3ABVJ5N1OJA

then an intermediate table "MASTER_TABLE_XML" with the same columns with the exception of the CLOB which turns into XMLType and finally a MVIEW:

SQL > create table master_table like

2. Select level as id

3, cast ('ROW' | to_char (Level) as varchar2 (30)) as the name

4       , (

5. Select xmlserialize (content

XMLAGG 6)

7 xmlelement (evalname ('ThisIsElement' | to_char (Level)), dbms_random.string ('X', 50))

8                    )

9 as clob dash

10                  )

11 double

12 connect by level<=>

(13) as xmlcontent

14 double

15 connect by level<= 20000="">

Table created.

SQL > call dbms_stats.gather_table_stats (user, 'MASTER_TABLE');

SQL > create table (master_table_xml)

Identification number 2

3, name varchar2 (30)

4, xmlcontent xmltype

5)

binary xmltype 6 securefile XML column xmlcontent store

7;

Table created.

SQL > create materialized view master_table_mv

2 build postponed

full 3 Refresh on demand

4, as

5. Select t.id

6, t.nom

7       , x.*

master_table_xml 8 t

9, xmltable ('/ r' in passing t.xmlcontent)

10 columns

11 path of varchar2 (50) ThisIsElement1 'ThisIsElement1 '.

12, path of varchar2 (50) ThisIsElement2 'ThisIsElement2 '.

13, path of varchar2 (50) ThisIsElement3 'ThisIsElement3 '.

14, path of varchar2 (50) ThisIsElement4 'ThisIsElement4 '.

15 road of varchar2 (50) ThisIsElement5 'ThisIsElement5 '.

16, road of varchar2 (50) ThisIsElement6 'ThisIsElement6 '.

17 road of varchar2 (50) ThisIsElement7 'ThisIsElement7 '.

18 road of varchar2 (50) ThisIsElement8 'ThisIsElement8 '.

19 road to varchar2 (50) ThisIsElement9 'ThisIsElement9 '.

20, path of varchar2 (50) ThisIsElement10 'ThisIsElement10 '.

21, road to varchar2 (50) ThisIsElement11 'ThisIsElement11 '.

22 road of varchar2 (50) ThisIsElement12 'ThisIsElement12 '.

23 road of varchar2 (50) ThisIsElement13 'ThisIsElement13 '.

24, path of varchar2 (50) ThisIsElement14 'ThisIsElement14 '.

25 road of varchar2 (50) ThisIsElement15 'ThisIsElement15 '.

26, path of varchar2 (50) ThisIsElement16 'ThisIsElement16 '.

27, way to varchar2 (50) ThisIsElement17 'ThisIsElement17 '.

28 road of varchar2 (50) ThisIsElement18 'ThisIsElement18 '.

29 road of varchar2 (50) ThisIsElement19 'ThisIsElement19 '.

30, path of varchar2 (50) ThisIsElement20 'ThisIsElement20 '.

31, path of varchar2 (50) ThisIsElement21 'ThisIsElement21 '.

32 road of varchar2 (50) ThisIsElement22 'ThisIsElement22 '.

33, path of varchar2 (50) ThisIsElement23 'ThisIsElement23 '.

34 road of varchar2 (50) ThisIsElement24 'ThisIsElement24 '.

35 road of varchar2 (50) ThisIsElement25 'ThisIsElement25 '.

36, road to varchar2 (50) ThisIsElement26 'ThisIsElement26 '.

37, path of varchar2 (50) ThisIsElement27 'ThisIsElement27 '.

38, path of varchar2 (50) ThisIsElement28 'ThisIsElement28 '.

39, path of varchar2 (50) ThisIsElement29 'ThisIsElement29 '.

40, road of varchar2 (50) ThisIsElement30 'ThisIsElement30 '.

41 road of varchar2 (50) ThisIsElement31 'ThisIsElement31 '.

42, path of varchar2 (50) ThisIsElement32 'ThisIsElement32 '.

43, road to varchar2 (50) ThisIsElement33 'ThisIsElement33 '.

44, path of varchar2 (50) ThisIsElement34 'ThisIsElement34 '.

45, path of varchar2 (50) ThisIsElement35 'ThisIsElement35 '.

46, path of varchar2 (50) ThisIsElement36 'ThisIsElement36 '.

47, path of varchar2 (50) ThisIsElement37 'ThisIsElement37 '.

48, path of varchar2 (50) ThisIsElement38 'ThisIsElement38 '.

49, path of varchar2 (50) ThisIsElement39 'ThisIsElement39 '.

50 road of varchar2 (50) ThisIsElement40 'ThisIsElement40 '.

51, path of varchar2 (50) ThisIsElement41 'ThisIsElement41 '.

52, path of varchar2 (50) ThisIsElement42 'ThisIsElement42 '.

53, path of varchar2 (50) ThisIsElement43 'ThisIsElement43 '.

54, path of varchar2 (50) ThisIsElement44 'ThisIsElement44 '.

55 road of varchar2 (50) ThisIsElement45 'ThisIsElement45 '.

56, path of varchar2 (50) ThisIsElement46 'ThisIsElement46 '.

57, path of varchar2 (50) ThisIsElement47 'ThisIsElement47 '.

58 road of varchar2 (50) ThisIsElement48 'ThisIsElement48 '.

59 road of varchar2 (50) ThisIsElement49 'ThisIsElement49 '.

60 road of varchar2 (50) ThisIsElement50 'ThisIsElement50 '.

(61) x;

Materialized view created.

The discount is then performed in two steps:

1. INSERT INTO master_table_xml
2. Refresh the MVIEW

(Note: as we insert in an XMLType column, we need an XML (only root) document this time)

SQL > set timing on

SQL >

SQL > truncate table master_table_xml;

Table truncated.

Elapsed time: 00:00:00.27

SQL >

SQL > insert into master_table_xml

2. select id

3, name

4, xmlparse (document '' |) XmlContent |'')

5 master_table;

20000 rows created.

Elapsed time: 00:04:38.72

SQL >

SQL > call dbms_mview.refresh ('MASTER_TABLE_MV');

Elapsed time: 00:00:22.42

SQL >

SQL > select count (*) in the master_table_mv;

COUNT (*)

----------

20000

Elapsed time: 00:00:01.38

SQL > truncate table master_table_xml;

Table truncated.

Elapsed time: 00:00:00.41

• Calculate the percentage registered

Gurus,

How can I get the correct value for the recorded percentage?

Retail_Price = 100.00
Sale_Price = 30.00

Select (retail_price - sale_price/retail_price * 100) as prs_tab percentage_saved
where prskey = 1516345;

result = 9970

result should be = 70

What Miss me?

Thank you!

>
How can I get the correct value for the recorded percentage?

Retail_Price = 100.00
Sale_Price = 30.00

Select (retail_price - sale_price/retail_price * 100) as prs_tab percentage_saved
where prskey = 1516345;

result = 9970

result should be = 70
>

``````select ((retail_price - sale_price)/retail_price * 100) as percentage_saved from prs_tab
where prskey = 1516345;```
```

Who will calculate the difference first: retail_price - sale_price = 70, which is 70% on retail price

• Using narrative view

I added a narrative view as a header to the exciting view table.

When you download the report that the narrative point of view is printed on the first page then the table display.

Is there a way I can print view narrative in each page (IE when the report is downloaded to more than 1 page).

I want the Narrative view to print something on each page such as a header and footer of a word document.

Ok no problem. Open your report that you want to the header. (only the analysis you, not the dashboard). Go to the results tab. On top, you have a 'Print Options' icon (with an image of the printer). Click there, and you can set the header and footer for this report only.

J.

• Calculate the distance using values from table

Based on the coordinates of two points A(x1,y1) and B(x2,y2) and x 1, x 2, y1, y2 are columns of the table to a table, I need a query (function?) to calculate the distance between these two points of each line of the table...
Table:
NRCRT (PK) X 1 X 2 Y1 Y2
1 10 6 2 4
2 1 3 0 5

the mathematical formula is:
http://www.mathwarehouse.com/algebra/distance_formula/images/distance-formula-image.jpg

It is complex to me, but maybe someone can help me...

Wintermute3190 wrote:
Œuvres, but:
DISTANCE_BETWEEN
4.47213595499957939281834733746255247088
5.3851648071345040312507104915403295563

How to set to 5,38 just and 4.47

CYCLE of use or function TRUNC

``````SQL> WITH test_tab AS
2       (SELECT 1 nrcrt, 10 x1, 6 x2, 2 y1, 4 y2
3          FROM DUAL
4        UNION ALL
5        SELECT 2, 1, 3, 0, 5
6          FROM DUAL)
7  SELECT nrcrt,
8         TRUNC(SQRT ((POWER ((x2 - x1), 2) + POWER ((y2 - y1), 2)
9               )),2) distance_between
10    FROM test_tab
11  /

NRCRT DISTANCE_BETWEEN
---------- ----------------
1             4.47
2             5.38

SQL> WITH test_tab AS
2       (SELECT 1 nrcrt, 10 x1, 6 x2, 2 y1, 4 y2
3          FROM DUAL
4        UNION ALL
5        SELECT 2, 1, 3, 0, 5
6          FROM DUAL)
7  SELECT nrcrt,
8         ROUND(SQRT ((POWER ((x2 - x1), 2) + POWER ((y2 - y1), 2)
9               )),2) distance_between
10    FROM test_tab
11  /

NRCRT DISTANCE_BETWEEN
---------- ----------------
1             4.47
2             5.39```
```

Notice the difference in the result. Use the one that works best for you.

Kind regards
JO

### Maybe you are looking for

• USB 2.0 should work on the Satellite 2410-303?

Recently, I have re-installed XP on my Satellite and think I have all the latest drivers installed now - including drivers from the chipset of this site. When I plug a USB device, I get a message saying that this device can run faster, so her acting

• Quosmio G20. Fan gets loud, then stops.

Hello.The fan on my G20 seems to be much more noisy that when I got it, then very hard and she stops.Very hot just left of the right speaker. I used to get all sorts of errors briefly onscreen. (IE: failed to load powrprof. dll has been one of many)T

• Can WX 404-how I set up one acct email other than g mail or aol on my phone?

I'm trying to set up an email account on my scope other than the two that are provided (g mail and aol). There are under the heading other services include POP or IMAP you can choose between creating a different e-mail account, but it says that you m

• Lenovo Ideapad Y500 keyboard issues

Hi all At first, I would like to say that I'm not perfect in English so please have patience Today, when turned on my laptop I noticed something wrong with the keyboard. Sometimes, when something written keyboard wrote a few letters im and freezing f

• SHOCK: X 200 noise (no fan) with different power settings

Machine very quiet in general. But finding a question important 30 min after my hands on it: When I switch the power Off timers for setting, I heard very loud noise of current electric, close to the battery (upper part of the keyboard). I thought it