total and grand total.
Hello guys I run a query like the bottom, but now I would like to make the last line actually say Grand Total. Instead of just total. Can anyone give me information on how I could just done who?SELECT decode (grouping (farinva_invh_Code),0,null,'Total') farinva_invh_Code,
--decode ( grouping (amt),0,null,'GrantTotal')Grant_Total,
farinva_invh_Code,
spriden_id,
--spriden_last_name "last Name",
--spriden_first_name " First name",
--fabinvh_trans_date Dated,
NVL(SUM(DECODE(fabinvh_cr_memo_ind,
'N', DECODE(NVL(fabinvh_disb_agent_ind,'N'),
'N', NVL(farinva_appr_amt, 0)
- NVL(farinva_disc_amt, 0)
+ NVL(farinva_tax_amt, 0)
+ NVL(farinva_addl_chrg_amt, 0),
NVL(farinva_convert_amt, 0)
- NVL(farinva_convert_disc_amt, 0)
+ NVL(farinva_convert_tax_amt, 0)
+ NVL(farinva_convert_addl_chrg_amt, 0)),
DECODE(NVL(fabinvh_disb_agent_ind,'N'),
'N', (NVL(farinva_appr_amt, 0)
- NVL(farinva_disc_amt, 0)
+ NVL(farinva_tax_amt, 0)
+ NVL(farinva_addl_chrg_amt, 0)) * -1,
(NVL(farinva_convert_amt, 0)
- NVL(farinva_convert_disc_amt, 0)
+ NVL(farinva_convert_tax_amt, 0)
+ NVL(farinva_convert_addl_chrg_amt, 0)) * -1))), 0) amt
FROM fabinvh,
farinva,
spriden
WHERE farinva_coas_code = 'T' /* 1-M1QQH */
and fabinvh_code = farinva_invh_Code
and fabinvh_vend_pidm = spriden_pidm
and spriden_change_ind is null
AND FABINVH_CODE LIKE 'TR%'
AND SPRIDEN_ID in( '908388380', '905766027','909209091','912355810' )
AND FABINVH_CANCEL_IND = 'N'
GROUP BY rollup (
spriden_id,
farinva_invh_codE
);
Hello guys"FARINVA_INVH_CODE" "FARINVA_INVH_CODE_1" "SPRIDEN_ID" "AMT"
"" "TR002020" "9057660xx" "104.48"
"" "TR002999" "9057660xx" "1886.59"
"Total" "" "9057660xx" "1991.07"
"" "TR003109" "9123558xx" "1427.18"
"Total" "" "9123558xx" "1427.18"
"Total" "" "" "3418.25"
Thank youMiguel
Hello
Just add an ELSE clause to this same expression BOX:
CASE
WHEN GROUPING (spriden_id) = 1
THEN 'Grand Total'
WHEN GROUPING (farinva_invh_code) = 1
THEN 'Total'
ELSE farinva_invh_code -- <== ***** NEW *****
END AS farinva_invh_Code
Tags: Database
Similar Questions
-
How to change the font, color line, column and Grand Total labels in PivotTable
Hello Guru
Can you get it some one please let me know how to change the look and feel of the reports in Pivot table using css files. I want to have the dimension and the measure to be of different color columns and grand total different color. I want to achieve for all pivot table reports instead of manually change each report so I want to do in css files.under s_SRIKI\b_mozilla_4\views.css I've seen a lot of options but nothing has worked. So can you please exactly tell what class we need to change to make changes. Thank you!!!
Thank you
SR
For values
. OORT {}
text-align: right;
vertical-align: top;
color: Red;
}
For the product if you got hyper link
Code OOB is
. PTL {}
color: #039;
text-decoration: none;
cursor: pointer;
}
If brand aid
-
Problem with subtotal and grand total using GROUP BY ROLLUP.
Hi all
I have a question about the SQL. I need to have the subtotal for each group and total for the entire inside of my request. I've had using GROUP BY ROLLUP to have total subtotal and big inside of my request.
However, it not successful I want. In addition, my data must be presented in the medium hierarchy. So, I also use CONNECT BY permission inside my request.
The query returned the results but not as my expected.
Below is all about the tools used, description of flows, issues, query used, sample data, out of the request as well as the expected results: -.
Tools used: -.
- Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
Description of the flow: -.
Lily is an AM of agency which is the highest level of management (LEVEL 1). Kevin is the direct agent under the lilies and the sum of productivity(upstream)
for each of them must be sum up as the Subtotal. Sarah and Tom is the Unit Manager (UM) (LEVEL 2) who reports to Lily. They have the direct agents (Agent) under each of them which are may, John, Sue and Salwa (LEVEL 3). There should be a Subtotal for each group of the agent. For example:-May (Agent) is the agent under Sarah (UM) and both of them have productivity and productivity should be sum up as a subtotal for the core group. A GRAND TOTAL is required to summarize all the productivity for each group.
Problem: -.
- The output of my query is appear the subtotal, but the amount is inaccurate because it only to summarize the productivity of agent. The output I expect is summarize the productivity of the agent as well as UNIFIED messaging / AM. For example:-(subtotal = UM / AM.) THE PRODUCTIVITY + AGENT. PRODUCTIVITY)
- The total general does not show after the query. The output that I expected is productivity for each groups as shown in the attachment below. For example:- GRAND TOTAL =(SUBTOTAL+SUBTOTAL+SUBTOTAL)
- My data must be submitted in respect of the hierarchy as below: -.
4. I need to pass the variable in the query and be used as a parameter in the ADF. Agent ID of Lily(AM) pass in the variable as a parameter.
Here's my query: -.
SELECT LPAD (' ', 4 *(LEVEL-1))
|| NAME FIRST_NAMEQ,
TOTAL_MANPOWER,
SUM_MTD_TOTAL_ANP UPSTREAM,
level,
A_AGENT_ID
Of
(SELECT B.SID,
A.UPLINE,
A.AGENT_ID AS A_AGENT_ID,
GROUPING (B.SID) agg_am_id,
GROUPING (A.AGENT_ID) agg_um_id,
GROUPING (A.Upline) agg_IM_id,
SUM (B.TOTAL_MANPOWER) TOTAL_MANPOWER,
SUM (B.MTD_TOTAL_ANP) SUM_MTD_TOTAL_ANP
OF ABM_AGENT_TEST,.
ABM_PRODUCTIVITY B
WHERE A.AGENT_ID = B.AGENT_ID
ROLLUP GROUP ((A.UPLINE), (A.AGENT_ID, B.SID)))
START WITH A_AGENT_ID =: HAS
CONNECT BY PRIOR A_AGENT_ID = UPSTREAM
ORDER OF FRIARS UPSTREAM;
Below is the query to create the table and also the data: -.
-TABLE ABM_AGENT_TEST-
CREATE TABLE 'ABM_AGENT_TEST '.
(NUMBER OF 'AGENT_ID',
VARCHAR2 (50 BYTE) "NAME."
VARCHAR2 (10 BYTE) "GRADE."
VARCHAR2 (20 BYTE) "UPSTREAM."
'REGION' VARCHAR2 (20 BYTE),
"BRANCH" VARCHAR2 (20 BYTE),
'THE AGENCY' VARCHAR2 (20 BYTE)
)
SAMPLE DATA FROM ABM_AGENT_TEST
Insert into ABM_AGENT_TEST (AGENT_ID, NAME, GRADE, upstream, REGION, BRANCH, AGENCY) values (116, "Lily", "AM", null, null, null, null);
Insert into ABM_AGENT_TEST (AGENT_ID, NAME, GRADE, upstream, REGION, BRANCH, AGENCY) values (102, 'Tom', 'MU', '116', null, null, null);
Insert into ABM_AGENT_TEST (AGENT_ID, NAME, GRADE, upstream, REGION, BRANCH, AGENCY) values (110, 'Sarah', 'MU', '116', null, null, null);
Insert into ABM_AGENT_TEST (AGENT_ID, NAME, GRADE, upstream, REGION, BRANCH, AGENCY) values (100, 'John', 'AGENT', '102', 'Central', 'PJ', 'CPA');
Insert into ABM_AGENT_TEST (AGENT_ID, NAME, GRADE, upstream, REGION, BRANCH, AGENCY) values (109, "Salwa", 'AGENT', '102', 'South', 'MLK', null);
Insert into ABM_AGENT_TEST (AGENT_ID, NAME, GRADE, upstream, REGION, BRANCH, AGENCY) values (101, 'Howard', 'AGENT', '102', 'North', "Damansara", "AP");
Insert into ABM_AGENT_TEST (AGENT_ID, NAME, GRADE, upstream, REGION, BRANCH, AGENCY) values (103, 'Mary', 'AGENT', '102', 'Central', 'PJ', 'CPA');
Insert into ABM_AGENT_TEST (AGENT_ID, NAME, GRADE, upstream, REGION, BRANCH, AGENCY) values (106, 'Ali', 'AGENT', '110', 'Central', 'JlnPd', null);
Insert into ABM_AGENT_TEST (AGENT_ID, NAME, GRADE, upstream, REGION, BRANCH, AGENCY) values (111, 'Sue', 'AGENT', '102', 'North', "Damansara", null);
Insert into ABM_AGENT_TEST (AGENT_ID, NAME, GRADE, upstream, REGION, BRANCH, AGENCY) values (112, "Carron', 'AGENT', '102', 'Central', 'HQ', null);
Insert into ABM_AGENT_TEST (AGENT_ID, NAME, GRADE, upstream, REGION, BRANCH, AGENCY) values (113, "Siti', 'AGENT', '102', 'Central', 'PJ', null);
Insert into ABM_AGENT_TEST (AGENT_ID, NAME, GRADE, upstream, REGION, BRANCH, AGENCY) values (114, "Siti FHIMA Dane forecastle', 'AGENT', '102', 'North',"Damansara", null);
Insert into ABM_AGENT_TEST (AGENT_ID, NAME, GRADE, upstream, REGION, BRANCH, AGENCY) values (105, 'Kathy', 'AGENT', '102', 'Central', 'JlnPd', 'LPK');
Insert into ABM_AGENT_TEST (AGENT_ID, NAME, GRADE, upstream, REGION, BRANCH, AGENCY) values (107, 'Roby', 'AGENT', '110', 'North', "IPH", null);
Insert into ABM_AGENT_TEST (AGENT_ID, NAME, GRADE, upstream, REGION, BRANCH, AGENCY) values (108, 'Tommy', 'AGENT', '110', 'South', 'MLK', null);
Insert into ABM_AGENT_TEST (AGENT_ID, NAME, GRADE, upstream, REGION, BRANCH, AGENCY) values (104, 'May', 'AGENT', '110', 'Central', 'HQ', 'CPA');
Insert into ABM_AGENT_TEST (AGENT_ID, NAME, GRADE, upstream, REGION, BRANCH, AGENCY) values (115, 'Kevin', 'AGENT', '116', 'North', "IPH", null);
-TABLE ABM_PRODUCTIVITY-
CREATE TABLE 'JEROMEWALTER '. "" ABM_PRODUCTIVITY ".
(NUMBER OF 'AGENT_ID',
NUMBER OF "TOTAL_MANPOWER."
NUMBER OF "MTD_TOTAL_ANP."
NUMBER OF "MTD_PRODUCTIVITY."
VARCHAR2 (20 CHAR) "YTD_TOTAL_ANP."
VARCHAR2 (20 CHAR) "YTD_PRODUCTIVITY."
"ROW_ID" VARCHAR2 (20 BYTE)
)
SAMPLE DATA FOR ABM_PRODUCTIVITY
Insert into ABM_PRODUCTIVITY (AGENT_ID, TOTAL_MANPOWER, MTD_TOTAL_ANP, MTD_PRODUCTIVITY, YTD_TOTAL_ANP, YTD_PRODUCTIVITY, ROW_ID) values (104,1,85000, null, '40000', null, ' 6');
Insert into ABM_PRODUCTIVITY (AGENT_ID, TOTAL_MANPOWER, MTD_TOTAL_ANP, MTD_PRODUCTIVITY, YTD_TOTAL_ANP, YTD_PRODUCTIVITY, ROW_ID) values (102,1,35000, null, '33000', null, ' 7');
Insert into ABM_PRODUCTIVITY (AGENT_ID, TOTAL_MANPOWER, MTD_TOTAL_ANP, MTD_PRODUCTIVITY, YTD_TOTAL_ANP, YTD_PRODUCTIVITY, ROW_ID) values (110,1,25000, null, '25000', null, ' 8');
Insert into ABM_PRODUCTIVITY (AGENT_ID, TOTAL_MANPOWER, MTD_TOTAL_ANP, MTD_PRODUCTIVITY, YTD_TOTAL_ANP, YTD_PRODUCTIVITY, ROW_ID) values (116,1,22000, null, '34000', null, ' 10');
Insert into ABM_PRODUCTIVITY (AGENT_ID, TOTAL_MANPOWER, MTD_TOTAL_ANP, MTD_PRODUCTIVITY, YTD_TOTAL_ANP, YTD_PRODUCTIVITY, ROW_ID) values (109,1,75000, null, '80000', null, ' 2');
Insert into ABM_PRODUCTIVITY (AGENT_ID, TOTAL_MANPOWER, MTD_TOTAL_ANP, MTD_PRODUCTIVITY, YTD_TOTAL_ANP, YTD_PRODUCTIVITY, ROW_ID) values (111,1,25000, null, '25000', null, ' 3');
Insert into ABM_PRODUCTIVITY (AGENT_ID, TOTAL_MANPOWER, MTD_TOTAL_ANP, MTD_PRODUCTIVITY, YTD_TOTAL_ANP, YTD_PRODUCTIVITY, ROW_ID) values (100,1,23000, null, ' 34500', null, "11");
Insert into ABM_PRODUCTIVITY (AGENT_ID, TOTAL_MANPOWER, MTD_TOTAL_ANP, MTD_PRODUCTIVITY, YTD_TOTAL_ANP, YTD_PRODUCTIVITY, ROW_ID) values (115,1,24000, null, '45000', null, ' 9');
The output after having received the request and not as my are expected as below: -.
The result I have espect is as below: -.
If all goes well, there is a way to solve my question.
Thank you all and have a nice day
Hello
I still don't know how you want to trunking. You want someone who has a tank of 'AGENT' that lie with its parent in the hierarchy?
If Yes, you can do the update ROLLUP before you make the CONNECT BY query and claim that summaries are the children of one of the actual lines in the tree, like this:
WITH got_grp_id AS
(
SELECT b.SID, a.upline
TO_CHAR (a.agent_id) AS a_agent_id
CASE
WHEN a.agent_rank = "AGENT".
AND a.upline IS NOT NULL
THEN a.upline
Of OTHER TO_CHAR (a.agent_id)
END AS grp_id
p.total_manpower, p.mtd_total_anp
Of abm_agent_test one
abm_productivity p
WHERE a.agent_id = p.agent_id
)
got_aggregates AS
(
SELECT THE CHECK BOX
WHEN you GROUP (name) = 0
THEN the name
WHEN you GROUP (grp_id) = 0
THEN "SUBTOTAL".
ANOTHER "GRAND TOTAL".
END AS name_s
CASE
WHEN you GROUP (upstream) = 0
THEN upstream
WHEN you GROUP (grp_id) = 1
THEN TO_CHAR (: a).
Of OTHER LAST_VALUE (a_agent_id IGNORE NULLS)
COURSES (PARTITION BY grp_id
ORDER OF CASES
WHEN a_agent_id <> grp_id
THEN SUM (mtd_total_anp)
END NULLS FIRST
ROWS BETWEEN UNBOUNDED PRECEDING
AND UNBOUNDED FOLLOWING
)
END AS parent
a_agent_id, grp_id
SUM (total_manpower) AS sum_total_manpower
SUM (mtd_total_anp) AS sum_mtd_total_anp
Group of (name) AS g_name
GROUPING (grp_id) AS g_grp_id
OF got_grp_id
GROUP OF ROLLUP (grp_id
, (name, upstream, a_agent_id)
)
)
SELECT THE CHECK BOX
WHEN g_grp_id = 0
THEN LPAD (' ', 4 * (LEVEL - 1))
END | name_s AS first_nameq
sum_total_manpower
sum_mtd_total_anp
CASE
WHEN g_name = 0
THEN THE LEVEL
4 SOMETHING ELSE
END as lvl
a_agent_id
OF got_aggregates
START WITH a_agent_id = TO_CHAR (: a).
Parent = a_agent_id PRIOR CONNECTION
Brothers and SŒURS of ORDER BY sum_mtd_total_anp
;
Output:
SUM_
SUM_ MTD_ A_
TOTAL_ AGENT TOTAL
FIRST_NAMEQ MANPOWER _ANP LVL _ID
-------------------- -------- -------- ---------- -----
Lily 1 22000 1 116
Kevin 1 24000 2 115
PARTIAL TOTAL 2 46000 4
Sarah 1 25000 2 110
May 1 85000 3 104
PARTIAL TOTAL 2 110000 4
Tom 1 35000 2 102
John 1 23000 3 100
Sue 1 25000 3 111
Salwa 1 75000 3 109
PARTIAL TOTAL 4 158000 4
GRAND TOTAL 8 314000 4
I changed the column names. (For example, there is a built-in function called RANK, so this isn't a column name good. "It's confusing to use upstream to 2 unrealted stuff.)
I guess just what you want for the LVL column.
Why is agent_id a NUMBER, but upstream a VARCHAR2? I expect to be of the same data type, so that upstream may be a foreign key referencing agent_id.
-
Total general (calculation) seems to be "1-step behind" Sub totals.
Order form calculates OK from left to right (ie. quantity x price); Subtotals appear OK in the Grand Total, AND Grand Total does NOT save the newest item (eg. I come home from 4 items, but the total general records only the first 3) I may need to send a form of enlightenment. Thoughts?
It's a problem of calculation of field command. You can set it in form editing mode, via
The value more - field calculation order.
-
Error of RTF report Total template.
Hi experts,
I created an RTF template, it works very well, in BI we go with a few parameters for this model in the SQL query.
I get the following error.
Error message: 'conffile': C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdoconfig.xml
Real fonts: C:\Program Files\Oracle\BI Publisher\BI editor Desktop\Template Builder for Word\fonts
Run Start OPE
Model: C:\Documents and Settings\sskodthivada\Desktop\work on sumary\FRU Master repair Annex report Summary.rtf
SetLocale RTFProcessor: en - us
FOProcessor setData: C:\Documents and Settings\sskodthivada\Desktop\xmls\XML_NOTWORKING.xml
SetLocale FOProcessor: en - us
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)
at java.lang.reflect.Method.invoke (unknown Source)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL (unknown Source)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform (unknown Source)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform (unknown Source)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform (unknown Source)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO (unknown Source)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO (unknown Source)
at oracle.apps.xdo.template.FOProcessor.createFO (unknown Source)
at oracle.apps.xdo.template.FOProcessor.generate (unknown Source)
at RTF2PDF.runRTFto (RTF2PDF.java:708)
at RTF2PDF.runXDO (RTF2PDF.java:517)
at RTF2PDF.main (RTF2PDF.java:305)
Caused by: oracle.xdo.parser.v2.XPathException: could not convert to number.
at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1534)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:521)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:489)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:271)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:155)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:192)
... 15 more
I think for this error:
RTF is built according to operational requirements, in this, I'll have wise model
Total and grand total. When I remove these two rows (total and grand total) it works fine all the parameters. I think the problem is in these calculations total only...
For total, I use this formula:
<? xdoxslt:set_variable ($_XDOCTX, "Tvar', xdoxslt:get_variable($_XDOCTX,_'Tvar') + sum (current - group (//PRIORITY1REPAIR)) + sum (current - group (//PRIORITY2REPAIR)) + sum (current - group (//PRIORITY3REPAIR)))? >
Great for total:
<? xdoxslt:set_variable ($_XDOCTX, "Tvar', xdoxslt:get_variable($_XDOCTX,_'Tvar') + sum (current - group (//PRIORITY1REPAIR)) + sum (current - group (//PRIORITY2REPAIR)) + sum (current - group (//PRIORITY3REPAIR)))? >
Here I am providing example of XML file for which I got this error
rowset <>
< ROW >
NOKLA < MANUFACTURER > < / MANUFACTURER >
XYZ < TEMPLATE > < / TEMPLATE >
ALLTEL < PLANTYPE > < / PLANTYPE >
< PLANPERIOD > 2009 - 22 < / PLANPERIOD >
< PLANWEEKPERIOD > 25/05/2009 < / PLANWEEKPERIOD >
< PRIORITY1REPAIR > 0 < / PRIORITY1REPAIR >
< PRIORITY2REPAIR > 0 < / PRIORITY2REPAIR >
< PRIORITY3REPAIR > 0 < / PRIORITY3REPAIR >
< PRIORITY1ASC > < / PRIORITY1ASC >
< PRIORITY2ASC > < / PRIORITY2ASC >
< PRIORITY3ASC > < / PRIORITY3ASC >
< / ROW >
< ROW >
NOKLA < MANUFACTURER > < / MANUFACTURER >
XYZ < TEMPLATE > < / TEMPLATE >
ALLTEL < PLANTYPE > < / PLANTYPE >
< PLANPERIOD > 2009 - 22 < / PLANPERIOD >
< PLANWEEKPERIOD > 01/06/2009 < / PLANWEEKPERIOD >
< PRIORITY1REPAIR > 0 < / PRIORITY1REPAIR >
< PRIORITY2REPAIR > 0 < / PRIORITY2REPAIR >
< PRIORITY3REPAIR > 0 < / PRIORITY3REPAIR >
< PRIORITY1ASC > < / PRIORITY1ASC >
< PRIORITY2ASC > < / PRIORITY2ASC >
< PRIORITY3ASC > < / PRIORITY3ASC >
< / ROW >
< ROW >...
That way I'll have my XML: if I have null in all columns of PRIORITY1ASC in the entire xml file I get this error. otherwise it gives good results.
I go with if condition for these lines PRIORITY1ASC, PRIORITY2ASC, PRIORITY3ASC. Because I don't want to print the model if I have a value zero
For one of these lines.
Can someone help me pls.
Published by: André on June 18, 2009 16:45Cool.
-
Why do all new Macbook Pro say I use almost 5 GB of photos and 2 GB of audio when I have none?
Just bought the laptop today and I already only 67 free concerts of 120, with the majority in Apps, photos and videos... which I have installed nothing. How can this be? And how can I solve this problem?
I tried re-indexing Spotlight coincidentally, I found on the forums - who did not.
I tried a terminal command that I found on the forums - that didn't work.
There is no way that I used half my 120 gig storage just by turning on the machine...
To determine what you have on your MBP, download OmniDiskSweeper and Grand Perspective (both free) Internet and open them. They will show all your files and respective sizes. Transfer to an external HARD disk or remove files, that you no longer want on your MBP.
Don't forget to empty the trash. Then only the space is allocated for the new data.
Ciao.
Addendum: The program that produces the screen in 'about this Mac' has a bug inside. It's not not to be approved for accuracy. Usually, but not always, a Spotlight re-indexing will correct, but not in your case.
-
I've cleaned just about every big file on my HD (OSX 10.9) - not a great movie or anything either, but I continue to be hampered by a 'Starting disk full' message
I would like some advice from those who know more. Thank you, christina
Download the Internet OmniDiskSweeper and Grand Perspective (both free) and open them. They will show all your files and respective sizes. Transfer to an external HARD disk or remove files, that you no longer want on your MBP.
Don't forget to empty the trash. Then only the space is allocated for the new data.
Ciao.
-
Old MacBook Pro. 250 GB drive is full. I have deleted or moved the docs, photo and music on an external drive and in ' on the Mac - memory "it says I 219 GB of"other ". How can I know what 'other' is and delete the useless/applications/etc?
First of all understand what OTHER actually represents
https://support.Apple.com/en-us/HT202867
If it seems an excessive amount on the screen "about this Mac", often a re-indexing of Spotlight will correct it:
https://support.Apple.com/en-us/HT201716
(there is a bug in the program that generates this view)
You could also download OmniDiskSweeper and Grand Perspective (both free) Internet and open them. They will show all your files and respective sizes. Transfer to a HARD drive external files don't want on your Mac or remove them.
Don't forget to empty the trash. Then only the space is allocated additional data.
Ciao.
-
Hey, I was wondering if I could buy the Photoshop and Lightroom plan for $9.99 and single-app purchase of Premiere Pro under an Adobe ID for a grand total of $ 29.98/Mo + tax. Is this possible?
https://creative.Adobe.com/plans
Yes, you can use the same Adobe ID to subscribe both photography at US $9.99 plan and plan of the only application currently at US $19.99.
.
-
Average for a quarter and the grand total amount
Hi all
I have a report (PivotTable) in which I view information about sales. I have category, subcategory in the rows. Quarter of the year in the columns. Sales are loaded at the day level in the fact table. My report must indicate the average quarterly sales. That is to say that all sales per month should be added to the top and sales 3 months should be on average to get the average of quarterly sales. We must show the total sales for each category sub. We must also show the % of sales for each subcategory with a category.
I did the following,
1. the aggregation of the column in the SPR Sales is basically
2. in the report, I shot months in the criteria and which excluded the pivot
3. I changed the aggregation (for total rum) for the SUM of criteria-> the column formula
4. I changed the AVG aggregation to view measures pivot
5. I have reproduced the measure to display the percentage of its sales
6. I enabled total in the lines.
Everything works well except the value of the subtotal of sales which gives me the average of subcategories at the level of the category, instead of this, it must be a sum. The % of total is correct where he gives 100% for each category
Please help me reach the sum to the total sub level
Thank you!
Concerning
Deepak
Hey, I just fixed the problem myself. The solution was to write the formula as AVG (sales per quarter, category, subcategory), then change the rule of the aggregation in short.
-
Relation to the total column and row grand totals
Hello world
I have requirement I need to create a statement of expenses with BI Publisher in Siebel. I need to group the items of expense by date and have a show total amount for the row and column. The report should look like this when done:
FEES
Date of... Meals... Entertainment... Total
06/19/09.........75......................175............................250
06/20/09.........50 ..................... 50..............................100
------------------------------------------------------------------------
Total... 125....................225............................350
I do not know how to address the issue since the amounts for the "meal" and "Entertainment" is not stored in separate columns, but instead of this, there is a 'Category' column and a column 'amount '. The XML should look like this:
< EXPENSE_REPORT >
< ID > 232 / < ID >
< NAME > fresh June < / NAME >
< EXPENSE_ITEMS >
< DATE > 19/06/09 < / DATE >
MEAL < CATEGORY > < / CATEGORY >
< > 25 < / AMOUNT >
< / EXPENSE_ITEM >
< EXPENSE_ITEMS >
< DATE > 19/06/09 < / DATE >
ENTERTAINMENT < CATEGORY > < / CATEGORY >
< AMOUNT > 50 < / AMOUNT >
< / EXPENSE_ITEM >
< EXPENSE_ITEMS >
< DATE > 20/06/09 < / DATE >
MEAL < CATEGORY > < / CATEGORY >
< AMOUNT > 50 < / AMOUNT >
< / EXPENSE_ITEM >
< / EXPENSE_REPORT >
Any suggestions on how I should approach this? Thanks in advance.
Fred
Published by: Fred_1 on September 21, 2009 22:30Fred/Kumar,
1. it should be simple enough to BEEP model too.
2. a glance the link thread above, I answered how do in Datatemplate.
3 Db rollup is also good optionLook at this
http://winrichman.blogspot.com/2009/09/cross-tab-summation-in-RTF.html
Take a look at these too, it will help you for sure.
http://winrichman.blogspot.com/search/label/cross%20tab
http://winrichman.blogspot.com/search/label/BIP%20Vertical%20sum
http://winrichman.blogspot.com/search/label/cross-tab
http://winrichman.blogspot.com/search/label/summation%20In%20BIP -
SQL query for roll up the amounts from more down to the highest level
with data (select child 'C', 'P' as a parent, 11 amount of double
the Union all select 'C1', 'C',-2 double
Union all select 'C2', 'C', 3 double
the Union all select 'C3', 'C',-8 double
Union all select 'C4', 'C', 10 double
Union all select 'C11', 'C1', 7 double
the Union of all select them 'C12', 'C1', double 12
Union all select "C21", "C2", 5 double
Union all select "C22", "C2", 9 double
Union all select 'C31', 'C3', 6 double
the Union all select 'C32', 'C3',-4 double
the Union all select 'C41', 'C4',-3 double
the Union of all select them "C42', 'C4' 13 doubles
the Union of all select them "C111", "C11", 16 doubles
Union all select 'C121","C12", 8 double
) Select * from given by 2
Hi Experts,
I have the following table with the child-parent relationship which I would like to roll up from a lower to a higher level. The problem here is that I'm moving the level I should replace the amount for a parent with the overall value of his children and grand total aggregate amount should be c
For example; In the example given the c111 data roll up to c11 as 16 (Please note: the amount for c11 is 7 should not be added to 16 rather replaced by 16) that more should roll up to c1.
That means c1 = c11c12; c11 = c111 = 16 Yes, c1 = 16instread 12 16712.
Since it is an intermediate table, I don't have any control over how many levels it can contain.
So dynamically, I need a rollup query and group the amount of a lower to a higher level from the bottom.
Is this possible? I look forward to any help. Thanks in advance.
SQL > data
() 2
3. Select 'C' child, 'P' as a parent, 11 amount of double
4 union all select 'C1', 'C',-2 double
5 Union all select them 'C2', 'C', 3 double
6 Union all select them 'C3', 'C',-8 double
7 union all select 'C4', 'C', 10 double
8 union all select 'C11', 'C1', the double 7
9 Union all select 'C12', 'C1', 12 dual from
all the 10 union select "C21", "C2", 5 double
all the 11 union select "C22", "C2", 9 double
12 union all select 'C31', 'C3', 6 double
all the 13 union select 'C32', 'C3',-4 double
14 union all select 'C41', 'C4',-3 double
all the 15 union select 'C42', 'C4', 13 from dual
all the 16 union select 'C111","C11", 16 of the double
all the 17 union select 'C121","C12", 8 double
18)
19, data1
20 in accordance with
(21)
22 Select parent
23, child
24, lpad ('-', (level 1) * 3, '-'). parent tree_structure
25, amount
26, case when connect_by_isleaf = 1 then amount 0 otherwise end amount_leaf
27 data
starting 28 with parent = 'P '.
29 to connect
30 per parent prior child =
31)
32 Select parent as a node
33, tree_structure
34, amount_sum
35 of Data1
model 36
size 37 by
(38)
39 children
40, parent
41)
42 measures
(43)
44 amount_leaf as the amount
45, tree_structure
46, 0 amount_sum
47)
automatic control of 48 rules
(49)
50 amount_sum [none, none] = amount [cv (), cv ()] + nvl (sum (amount_sum) [all cv (child)], 0)
(51);ŒIL TREE_STRUCTURE AMOUNT_SUM BLINK
--- ------------------------- ----------
P P 50
C ---C 24
C1 ------C1 16
C11 ---------C11 16
C1 ------C1 8
C12 ---------C12 8
C ---C 14
C2 ------C2 5
C2 ------C2 9
C ---C 2
C3 ------C3 6
C3 ------C3 -4
C ---C 10
C4 ------C4 -3
C4 ------C4 1315 selected lines.
-
New MacBook Pro says I 1.83 GB Audio
Hello!
I got my first MacBook 3 days. I'm still learning and I have absolutely nothing on it except for Spotify I downloaded. I don't have any music, photos, videos or files. When I went to 'the way my Mac' and under 'Storage', he said (I have attached a screenshot) that I have 1.83 GB Audio, almost 1 GB of photos and a few MB of video.
So my question is, why he didn't say that when I have absolutely no content on my mac? I know it's only a few concerts when added together but I wonder where it comes from and WHY it is said that.
Is there a way can I fix? Factory Reset my MBP?
Kind regards
Kasia
The program that generates that view has a bug, that is why the information should always be viewed with skepticism. A few times, but not always, a Spotlight re-indexing will correct the data:
https://support.Apple.com/en-us/HT201716
If you want to know exactly what you have on your MBP, download OmniDiskSweeper and Grand Perspective (both free) Internet and open them. They will show all your files and respective sizes.
https://www.OmniGroup.com/more
http://grandperspectiv.sourceforge.NET/
Ciao.
-
Problem of storage on my Macbook
Storage indicates I have 77 GB of applications on my macbook, but I don't actually have that many applications. How to remove some storage?
If your source for this information is the 'about this Mac' view, be aware that there is a bug in the program that the product and the information contained in this display cannot be relied upon for accuracy. A few times a reindex spotlight will correct:
https://support.Apple.com/en-us/HT201716
Have accurate information, download OmniDiskSweeper and Grand Perspective (both free) Internet and open them. They will show all your files and respective sizes.
https://www.OmniGroup.com/more
http://grandperspectiv.sourceforge.NET/
Ciao.
-
I recently installed a new HD in my mid-2010, MacBook Pro that the original was defective, I then restored from a time Machine up which was recorded on an external drive. My MacBook is now going great but I noticed the problem with how my saved items are displayed, I have about 110 GB of Photos, documents, etc. and all are showing as 'Other' when they should be distributed in the divisions 'Apps', 'Movies', etc.. I'm not sure how to solve the problem, I tried a Migration Wizard, but it says 'User needs Attention' so don't know where to go from here really. Any ideas?
If you use the 'about this Mac' view, be aware that there is a bug in the program that it generates and should not be relied upon. Sometimes, but not always, he will correct a reindexing of Spotlight:
https://support.Apple.com/en-us/HT201716
If you want specific information about the data on your HARD drive, download OmniDiskSweeper and Grand Perspective (both free) Internet and open them. They will show all your files and respective sizes.
https://www.OmniGroup.com/more
http://grandperspectiv.sourceforge.NET/
Ciao.
Maybe you are looking for
-
Multiple images with the same file name no doubt prevent export
iMac running OS X El Capitan v10.11.6; Photos 1.5 I'm trying to export approximately 331 images and I get an error report saying that only 169 of the exported images due to the inability to create files for 159 of the images. Then the report gives m
-
low battery level, does not give a warning.
Hello When my battery is almost empty it does not give a warning. I have a HP G62 and windows 7. My closed laptop (black screen). Until I'm always a popup that says I should connect my laptop to the power. When I restart my laptop I had a window wher
-
Queue of the preview to the opposite end
Is it possible to get a glimpse of a queue of LabVIEW to the opposite end? I'm using LabVIEW 8.6 Thanks a lot for your help Conway
-
Help! Static route between two router WRT160NL
Hi all I have my internet connection to connect to my main router from Linksys WRT160NL (192.168.1.1) with 192.168.1.x. My 2nd Linksys router to connect to the first gateway as well.The 2nd router has the ip 192.168.1.100 WAN and it's a local subnet
-
cannot run or uninstall Microsoft security essentials or install new version Original title: what is error code ox80073601