How to arrange a month in month wise
I am creating a matrix report for monthwise receipts in different accounts. Matrix rowfield....account No, matrix column fields month,matrix cell fields amount....Report is coming Ok but i want January should come first then feb onwards but it is coming April first...August onwards
Pls, suggest me what i have to do?
Thanks in Advance...
ex :
emp_doj :
01-jan-09
01-feb-09
01-mar-09
01-apr-09
01-may-09
01-jun-09
01-jul-09
01-aug-09
01-sep-09
01-oct-09
01-nov-09
01-dec-09
01-jan-10
01-feb-10....................
you need the output like this :
account no jan feb mar apr may jun jul aug sep oct nov sep dec jan feb mar
1 2 5 100 22 52 22 22 55 22 22 22 555 5 55 844
2 100 152 412 525 522 155
Just try to this way ,
column field --> for ex : emp_doj or otherwise u r matrix column date field
go to u r query :
select to_char(emp_doj,'Mon') as doj
*, emp_doj,........*from tablename
* two times u have select the matrix column field ,like above query emp_doj two time selected
You should give Alias Name --> to_char(emp_doj,'Mon') as doj
after that go to u r data model
Matrix column fields groups are should be this order
1) emp_doj( this should come first)
2) doj ( alias name u r given that field should come second )
after u compile run the report.
The report output will come like this
account no jan feb mar apr may jun jul aug sep oct nov sep dec jan feb mar
1 2 5 100 22 52 22 22 55 22 22 22 555 5 55 844
2 100 152 412 525 522 155
Similar Messages
-
How to save and month and year wise values
Hi friends,
in my ztable i have to enter values manually for month and year wise..
so i have to create parameter for month and year how to create it.
in my parameter month and year fields..
once he given month and year then he should enter values for fields..
i have doubt how to give parameter for this...table..
example: month: 1
year : 2007
after that user enter values for following fields.
kunnr
name
core values
noncorevalues
above fields user will enter values month wise ..
once he enter the values for january it should save ...
next he enter values for february and it will save..
when ever he want to see the january month data how can he see..
is there any logic for the above problem...Hai venkat,
I am not totally clear with your question some how i understood. I give my opinion may be it ll help ful to you.
In your ztable you want to enter the values for the fields kunnr, name, core values ,noncorevalues as per month.
As i say in your ztable add another field as month with other 4 fields. Provide the table maintenance for your table or else in se11 -> table display ->utilities -> table contents -> create entries is one way.
If you proivided maintenance for your table go to SM30. where you can manually enter values .
<b>reward if useful</b>
Regards,
sunil kairam. -
"how to use Query include one month "
Hi all expert,
How to make a request how to add table "QTYSALES one month yesterday"
so that I can compare with this month.
Query me this:
SET ARITHABORT OFF
SET ANSI_WARNINGS OFF
SELECT T0.ItemCode, T0.Dscription,T1.OnHand, convert(varchar,SUM(T0.BaseQty*T1.NumInSale)) AS 'Qty Sales',DAY(GetDate()) as 'Days',
Case WHEN Month(GetDate()) in (1,3,5,7,8,10,12) THEN 31 WHEN Month(GetDate()) in (2,4,6,9,11) THEN 30 ELSE 28 END AS 'Total days'
,convert (varchar,(t1.onhand/(SUM(T0.BaseQtyT1.NumInSale)/DAY(GetDate()) Case WHEN Month(GetDate()) in (1,3,5,7,8,10,12) THEN 31 WHEN Month(GetDate()) in (2,4,6,9,11) THEN 30 ELSE 28 END)))AS 'TURN OVER IN MONTH'
,round(convert (varchar,(t1.onhand/(SUM(T0.BaseQtyT1.NumInSale)/DAY(GetDate()) Case WHEN Month(GetDate()) in (1,3,5,7,8,10,12) THEN 31 WHEN Month(GetDate()) in (2,4,6,9,11) THEN 30 ELSE 28 END))),4)* 30 AS 'Turn Over Days'
FROM DBO.INV1 T0 INNER JOIN DBO.OITM T1 ON T0.ItemCode = T1.ItemCode
WHERE Month(T0.DocDate) = Month(GetDate()) AND Year(T0.DocDate) = Year(GetDate())
GROUP BY T0.ItemCode,T0.Dscription,T1.OnHand
union
SELECT T1.ItemCode, T1.itemname,T1.OnHand, '' AS 'Qty Sales',DAY(GetDate()) as 'Days',
Case WHEN Month(GetDate()) in (1,3,5,7,8,10,12) THEN 31 WHEN Month(GetDate()) in (2,4,6,9,11) THEN 30 ELSE 28 END AS 'Total days'
,'No Sales' AS 'TURN OVER IN MONTH'
,NULL
FROM DBO.OITM T1
WHERE T1.ITEMCODE NOT IN (SELECT ISNULL(ITEMCODE,0) FROM INV1)
GROUP BY T1.ItemCode,T1.itemname,T1.OnHand
ORDER BY 1
thanks for all
Edited by: rachelhel on May 20, 2009 8:06 AMhaiiii allll pls help...thankss
Hi consulatant B1
How to use Query
My goal is to create a table to see * The number of sales in a month yesterday *
I want to make a request showing the amount of sales at the end of the month.
For example this month is on May 25, so I want to show the Quantity of one month April 25
I have tried several times, but still just wrong.
I need expert help to solve the problem for me.
thanks -
How to Count Number of completed line items in past 6 months / 12 months ?
How to Count Number of completed line items in past 6 months / 12 months ?
Hi,
I am trying to count "Number of Completed Line Items in Purchase Order Document" for my Key Figure ZPO_CNT.
Purchase Order document = ZEBELN
Line Item = ZEBELP.
I need to find and count if the Line Item has been received in the past 6 months from today and similarly in the past 12 months.
I have "Delivery Completed" field, ELIKZ.
So, based on this would I be able to calculate it in Query Designer?
If so, Please let me know howHello Deva
If youe want to calculate the completed line item for last 6 or 12 month then i think u will be displaying the query data for these montrhs...create a customer exit to give you date range and restric it in filter area....
Now Choose any of the below option
1. I would suggest to implement an additional key figure "counter" in cube and fill values with one for which delivery is completed.
Now use calculated key figure in Query Designer based on logic
IF counter = 1 THEN counter ELSE 0
OR
2. create a formula variable based on ELIKZ and use replacement path variable, it will display you no. of docs for which delivery is completed....
Award points if it solves your problem
Revert back in case of further assistance...
Thanks
Tripple k -
How to get ONLY month and MONTH within date...
I have to convert something from sql server to oracle.
In SQL Server I have:
SELECT
TEXT_26 AS CostUnit,
MILESTONE_DATE AS ContractShipDate,
ACTUALFINISH AS ActualShipDate FROM PROJ_TASK
WHERE
TEXT_29='SHIP'
AND NAME NOT LIKE 'CMSB%'
AND NAME NOT LIKE 'CCFB%'
AND (MONTH(ACTUALFINISH) = MONTH(GETDATE()) - 1)All seems very simple SQL except I don't know how to convert that last line:
... AND (MONTH(ACTUALFINISH) = MONTH(GETDATE()) - 1)Basically Im just extracting the month so that I say the MONTH of the actual finish date is equal to the month of Today - 1. Meaning get the month for today (GETDATE() in sql server) and then subtract ONE month from it.
How can I do that line in oracle?
Thanks,
JonI generally find it simplier if one answers the question I posedYou need to realize that with free advice and help you get what you pay for. If you want people to run the statements for you then you should provide create table and sample data scripts.
Another alternative is
trunc(actualfinish,'mm') = add_months(trunc(sysdate,'mm'),-1)http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/functions201.htm#i79761
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/functions004.htm#i76717 -
How do I check if my month to month membership renewal request went through?
I find the interface for renewal hard to follow. What exactly do I have to do to renew a month to month membership, and how do I know if the renewal is being processed. I'm asked to update my credit card info, it looks good and I hit ok. Does this mean I've renewed? there is nothing that tells me a request has been sent or anything.
Hi There,
For any sort of payment related issue kindly contact our support team via: http://helpx.adobe.com/in/contact.html?step=CCSN_adobe-id-signing-in_stillNeedHelp
If you are unable to use chat option kindly try below mentioned steps.
Try different browser.
Delete cookies and cache
If the problem still persists Kindly revert with the below mentioned information.
OS version:
Browser Version:
You can also try: http://helpx.adobe.com/x-productkb/global/phone-support-orders.html
Thanks,
Atul Saini -
HI , I, ON THE MONTH TO MONTH BILLING FOR Ps AND Lr ($9.99) ... i downloaded Ps but now want to download Lr ... how do i do that because it only gives me the option to take it on a month to month wit the $9.99 .... isn't it included with the package im currently on ??
Niel.v.d.h please utilize the steps listed in Install and update apps - https://helpx.adobe.com/creative-cloud/help/install-apps.html to install Photoshop Lightroom through the Creative Cloud Desktop application.
-
How do I get a one-month subscription to the latest version of InDesign program
How do I get a one-month subscription to the latest version of InDesign program
As you can see here, single apps are $29.99/month with no annual commitment.
-
How do I total expenses per month
I am using the check register template in numbers. I added a table to calculate a running total of expenses per category per month. I can get the table to keep a running total of expenses per category, but have not been able to add the per month value. How do I add that part into my formula. Specifically, my formula so far is =SUMIF(Transactions :: $Category,A2,Transactions :: Amount). Now all I need is to add the month value so I can see how much I am spending per month per category.
Transactions
Beginning Balance
$126.37
Type
Date
Description
Category
Amount
Balance
Debit
3/19/12
Gas at Shell
Bills
$ (50.54)
$ 75.83
Debit Card
3/20/12
Starbucks
Starbucks
$ (1.79)
$ 74.04
Debit Card
3/21/12
Freebirds Austin
Food
$ (9.72)
$ 64.32
Debit Card
3/23/12
Smokey Mo’s
Food
$ (7.00)
$ 57.32
Deposit
3/26/12
Deposit
Deposit
$ 100.00
$ 1,444.57
Debit Card
Bills
$ 1,444.57
DEP
Bills
$ 1,444.57
DEP
Bills
$ 1,444.57
Debit Card
Bills
$ 1,444.57
105
Bills
$ 1,444.57
DEP
Bills
$ 1,444.57
Debit Card
Bills
$ 1,444.57
Bills
$ 1,444.57
Here is an example of the checking register table I am building
Category
Amount
Home
$ 0.00
Food
$ (16.72)
Bills
$ (50.54)
Credit Card
$ 0.00
Entertainment
$ 0.00
Starbucks
$ (1.79)
Total
$ (69.05)
And here is an example of the table for "March" that I am building. But, I only want March expenses to add in this table. Once April comes around, I want a new table to show expenses per category for that month.
I am new to this community, to have patience please. -
My Adobe XI trial expired I paid for a month to month subscription on MArch 13, 2015 but I could not activate it. The prompt is asking me for a serial number (which I wouldnt have since I downloaded the trial from the website. How do I activate it with my Adobe ID? "activate with Adobe ID" is not an option on my screen. It only asks me for the serial number.
uninstall your acrobat XI.
if win os clean, Download Adobe Reader and Acrobat Cleaner Tool - Adobe Labs
then dl the desktop cc app and use it to install your subscription acrobat XI, Creative Cloud Help | Creative Cloud for desktop -
In I cal, I am trying to make a schedule for the gym. It is basically the same every month. How can I transfer it from month to month.? Please help me.
Set each day to repeat? Edit the event, and select repeat. You can set a custom repeat, if it's specific days and not specific dates, for instance.
-
How to calculate Month on Month growth rates in an OBIEE query?
Dear all,
I would like to ask your help on how to calculate Month on Month growth rates [(last month - previous month)/previous month*100%] in an OBIEE query. This ratio should be always calculated for the last 2 available months.
I have the following query:
Month0 | Month1 | Month2
Product A 500 | 100 | 200
Product B 600 | 300 | 150
would like to add Month on Month column as following:
Month0 | Month1 | Month2 | Month on Month(%)
Product A 500 | 100 | 200 | +100.00%
Product B 600 | 300 | 150 | -50.00%
I tried to add a calculated item but it was not successful because I could not find out how to show only the calculated column as % with 2 decimals. Moreover, I would ideally prefer to have an automatic update but as far as I understood it can't be done in the calculated item automatically
I also tried to add a new column in the column area and to filter the results for the last month, then for the previous month and then based on it to calculate the needed ratio but unfortunately it also does not work out.
Thank you your hints in advanceHi,
The best way to solve this is using the Ago function. With this you can create a logical column for the previous month. Then you will have 2 columns available with which you can do your calculations.
If you want to do this with a calculated item (don't know if the formatting will work for you), but you can make the calculation more general by using $1 for column 1 and $2 for column 2 in your calculation. So the relative columns ($x) will change with the columns in your report.
Regards -
How Should select default (Apr-mar)month in cross tab?
HI Experts,
I have created webi report with cross tab format. In this report how should select Current year (April Month) to Next Year (March Month).
For Example:
2013 apr.......2014 mayHi Manikandan,
Similar to your previous post about selecting Fiscal Year, do this in BEx, Have a range on Fiscal Month which either the user can input the range or use Customer Exits to derive it.
The in your cross tab, having Fiscal Month in your columns will show the range selected.
with regards
Gill -
Could I do monthy payments on a 13inch MacBook air? And if so how much would it cost per month?
Apple offers the Juniper Visa card through Barclay's Bank. Their interest rates are "fair" but even with excellent credit I was pretty shocked when they offered me 19.99% APR. There's also Bill Me Later, but I think their rates are in the mid-to-high 20s (APR).
As Michael suggested, your best bet would be a loan through your local/bank credit union. My bank offers unsecured personal loans up to $2500 (at 10.99%) on approved credit. That's pretty darn good, considering what it is. -
How to get count for missing month
I created a view as follows:
CREATE OR REPLACE FORCE VIEW "Vinfection1" ("MONTH", "COUNT") AS
select "MONTH","COUNT" from (
select to_char(s.pdate,'Mon-yyyy') as month, count(*) as count
from surproc s, diagnosis_surproc d
where s.surprocid = d.surprocid and d.diagnosisid in ('506', '507', '508', '509', '510')
group by to_char(pdate,'Mon-yyyy'))
order by to_date(month,'Mon-yyyy')
Some months are missing in the view. I want to put that month and 0 in the view. How to do it?
Thanks,
JenniferHi, Jennifer,
You need to outer-join to some table or result set (such as all_months, below) that has one roe per month.
Here's one way:
CREATE OR REPLACE FORCE VIEW Vinfection1 (month, month_s, cnt) AS
WITH all_months AS
SELECT ADD_MONTHS (first_month, LEVEL - 1) AS month
FROM (
SELECT TRUNC (MIN (pdate), 'MONTH') AS first_month
, TRUNC (MAX (pdate), 'MONTH') AS last_month
FROM surproc
CONNECT BY LEVEL <= 1 + MONTHS_NETWEEN (last_month, first_month)
SELECT a.month
, TO_CHAR (a.month, 'Mon-yyyy') AS month_s
, COUNT (*) AS cnt
FROM all_months a
LEFT OUTER JOIN ( surproc s
JOIN diagnosis_surproc d ON s.surprocid = d.surprocid
AND d.diagnosisid IN ('506', '507', '508', '509', '510')
) ON a.month = TRUNC (s.pdate)
GROUP BY a.month
/Avoid table- and column names that are non-standatrd (such as names that need double-quotes), or are built-in function names (such as COUNT).
Don't use ORDER BY in a view. Almost anything you do with the view will cause the ordering to be lost anyway.
Even if you do have an ORDER BY clause in the view, you'll often want to ORDER BY month. Rather than call TO_DATE whenever you need to sort, I suggest having two month columns; month (whcih is a DATE) for sorting, filtering and joining, and month_s (whcih is a VARCHAR2) for displaying.
Use ANSI join syntax, especiallly for outer joins.
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Always say which version of Oracle you're using.
Edited by: Frank Kulash on Mar 20, 2012 12:03 PM
Added outer join condition -
How to group these values month by month ?
Hi,
I have a nice SQL statement which returns days by days, the values of a device.
WITH S1 AS
(SELECT DATE1,
ROUND(AVG(VALEUR),2) Debit
FROM EVV_E032
WHERE DATE1 BETWEEN TO_DATE('01012006000000', 'DDMMYYYYHH24MISS') AND TO_DATE('31122006235959', 'DDMMYYYYHH24MISS')
AND CLEF_VAR =
(SELECT CLEF_VAR FROM SITE_DEBIT_RIVIERE WHERE SITE = 'E032'
GROUP BY date1
SELECT NULL LINK ,
TO_CHAR(n, 'DD.MM'),
NVL(ROUND(AVG(Debit),2), 0) "Débit"
FROM
(SELECT TRUNC(TRUNC(to_date(2006,'YYYY'),'year'), 'DD')-1 + level n,
rownum jours
FROM dual CONNECT BY level<=366
) days
LEFT JOIN s1
ON days.n = TRUNC(date1,'DD')
GROUP BY n
ORDER BY nSample values :
Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('10/02/2006 09:49:59','DD/MM/YYYY HH24:MI:SS') 1,63);
Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('21/02/2006 10:35:12','DD/MM/YYYY HH24:MI:SS') 1,68);
Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('21/02/2006 11:30:30','DD/MM/YYYY HH24:MI:SS') 0);
Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('23/02/2006 14:02:02','DD/MM/YYYY HH24:MI:SS') 0);
Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('23/02/2006 16:22:34','DD/MM/YYYY HH24:MI:SS') 0);
Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('30/04/2006 18:09:08','DD/MM/YYYY HH24:MI:SS') 1,72);
Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('20/05/2006 11:57:02','DD/MM/YYYY HH24:MI:SS') 1,72);
Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('07/06/2006 15:11:58','DD/MM/YYYY HH24:MI:SS') 1,79);
Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('08/06/2006 20:00:26','DD/MM/YYYY HH24:MI:SS') 1,82);
Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('19/06/2006 09:42:32','DD/MM/YYYY HH24:MI:SS') 1,72);
Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('20/06/2006 04:30:00','DD/MM/YYYY HH24:MI:SS') 1,82);
Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('20/06/2006 10:39:01','DD/MM/YYYY HH24:MI:SS') 1,72);
Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('24/06/2006 19:34:50','DD/MM/YYYY HH24:MI:SS') 1,82);
Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('26/06/2006 14:37:26','DD/MM/YYYY HH24:MI:SS') 1,88);The output are values grouped day by day. I would like to group tehse values month by month, but could not figure how to do. Even though I am not a newbie newbie on SQL, this code is going far too much for me. I know some of you guys can handle this. I tried hard but coud not succeed. Could you help me ?
Regards, Christian.Difficult to work out (read: too much hassle) with your data and sql, as you haven't provided a set of info for all the tables provided, but hopefully this will give you an idea:
with my_tab as (select trunc(sysdate)+30 dt, 1 val from dual union all
select trunc(sysdate) dt, 2 val from dual union all
select trunc(sysdate) dt, 20 val from dual union all
select trunc(sysdate)+30 dt, 10 val from dual union all
select trunc(sysdate)+60 dt, 6 val from dual)
-- end of mockup of table "my_tab"; see SQL below...
select trunc(dt, 'mm') dt, sum(val)
from my_tab
group by trunc(dt, 'mm')
order by trunc(dt, 'mm');
DT SUM(VAL)
01-MAR-09 22
01-APR-09 11
01-MAY-09 6
Maybe you are looking for
-
On my lap top one of my apps was pushed to the right side of my screen to where I can no longer see it, however, when I do an app expose it pops up. Unfortunately as soon as I click on the app it disappears again. How do I fix this?
-
My ipad wont respond when i plug a charger into it
So about a week ago my ipad wouldent respond when i connected the wall charger to it, But if i turn the ipad fully off and leave it over night it would charge to 100% but then run out of battery fast, ive updated my ipad and the update said it would
-
Iphoto wont open or update after Yosemite upgrade
Hi there, I have seen questions like this but not exactly this before. After backing my early 2011 Macbook pro 13" to my 'my passport' I installed Yosemite about a week ago. Now iPhoto will not open. There is no error message, just nothing happens. T
-
Adobe Acrobat 6.0 Professional Problem
The subject software freezes upon opening and will not get beyond the initial start-up screen. Eventually after 10 minutes a syntax error will be displayed. I have attempted to repair the program many times and have also remove the program 3 times an
-
Illustrator CS6 files not saving properly as PDFs??
Prior to printing my work, I save PDF versions of my files. More often than I'd like, when I print the PDF file from my computer, some of the graphics do not print correctly. For example, a portion of a curved graphic (like a swirl) might be cut of