Year ,quarter crosstab
Hello, I am working currently on crosstab and I do have a date object from universe, from that I need to get year ,quarter, but when i create a variable for the year it is working but when drag that into the report showing the multivalue error and dates of that object from jan 1 2011 to current date.Can you guys please give some idea.
thanks,
San
Please check Variable "Year" that you have created should be Dimension object not Measure object.
Similar Messages
-
dear all,
any function module in bw which returns me the calendar year quarter for 0CALQUART1 and 0CALQUARTER.
while we on the data subject, what does 0FISCVARNT do? thanks.Hello Amit,
thanks for replying once again.
i dont want current or previous quarter... nothing wanting to write my own routine, is there any function module in sap which e.g. throws in a date 21/02/2001 and it returns me the quarter. -
Querying the PRIOR YEAR Quarter QTy
Hi Friends and All,
I need your help in querying the PRIOR YEAR Quarter QTy.Please suggest me
Year Qrt QTY
1970 Q1 100
1970 Q2 75
1970 Q3 36
1970 Q4 46
1971 Q1 99
1971 Q2 20
1971 Q3 49
1971 Q4 60
1972 Q1 80
1972 Q2 39
1972 Q3 50
1972 Q4 49
2008 Q1 100
2008 Q2 200
2008 Q3 300
2008 Q4 400
2009 Q1 345
2009 Q2 456
2009 Q3 178
suppose if the user select year 2008, then the prvious year 2007 last quarter values should be displayed
Thanks in Adv,
Claoker
Edited by: user12146923 on Nov 4, 2009 10:53 AMHi,
Perhaps the best way is a self-join, where you act like one table (c in the example) containes the current year's data, and another table (p) contains the previous year's data, if any.
SELECT c.year
, c.qrt
, c.qty
, p.year
, p.qty
FROM table_x c
LEFT OUTER JOIN table_x p ON p.year = c.year - 1
AND p.qrt = c.qrt
ORDER BY c.year
, q.qrt
; -
Reg:-Previous Year Quarter
Hi All,
I need to build a new report on Balance Sheet Quarterly in Financials. My reqiurement is..Show the Quarterly Balance sheet comparing Curent Quarter and Previous year Quarter
i.e Current Qtr vs Previous Year Qtr.
In the report levl , I have used Presentation variable for Current Quarter:-FILTER("Facts - GL Balance"."Balance Global1 Amount" USING (Time."Fiscal Quarter" ='@{var_qtr}{2011 Q 1}'))
In the Dashboard, I used two filters Fiscal Year, Fiscal Quarter.. So if select Fiscal Quarter 2011 Q2 then the user should also be able to see 2010 Q2 data.
May I know how to achieve this.
Thanx in advance.Hi all,
I have built a report on Balance Sheet using following columns:
1) General Ledger Code
2) Current Quarter
3) Previous Quarter
4) Global Amount
Now I got a new requirement to add a column Variance to the layout which should be difference of (Current Quarter- Previous Quarter).
For current Quarter, we have used this formula :FILTER("Facts - GL Balance"."Balance Global1 Amount" USING (Time."Fiscal Quarter" ='@{var_qtr}{2011 Q 1}'))
For Previous Quarter , we have used this formula:-FILTER("Facts - GL Balance"."Balance Global1 Amount" USING (Time."Fiscal Quarter" = ( case when substring('@{var_qtr}{2011 Q 1}' from 6 for 8)='Q 1' then cast(cast(substring('@{var_qtr}{2011 Q 1}' from 1 for 4) as int)-1 as char(4))||' '||'Q 4' when substring('@{var_qtr}{2011 Q 1}' from 6 for 8)='Q 2' then substring('@{var_qtr}{2011 Q 1}' from 1 for 4)||' '||'Q 1' when substring('@{var_qtr}{2011 Q 1}' from 6 for 8)='Q 3' then substring('@{var_qtr}{2011 Q 1}' from 1 for 4)||' '||'Q 2' else substring('@{var_qtr}{2011 Q 1}' from 1 for 4)||' '||'Q 3' end)))
I need help how to calculate variance.. -
Report by year quarter or month
We have requirement where we may have to show some reports by either year,quarter or month.How this is supported in OBIEE answers ?
Mark's suggestion answers exactly what you asked, but when you select "quarter," for example, you'll get all quarters regardless of year. This would also be true if you selected "month." What I would suggest is building dashboard prompts for year, quarter and month. This way the user can select what year, then quarter, then month if needed, to constrain the data appropriately. By checking off "All Choices" in the dashboard prompt design, you user can see all quarters for a year, for example.
Another way would be to use drill down from Year to Quarter to Month.
Hope that helps you... :) -
dear all,
i would like to get year quater from my 0fiscper... is there anyway to do that?Hi,
You can write a simple code with the help of "if..elseif...".
For eg.g.
V_fiscper = 2010001
If v_fiscper+4(3) = '1' or
v_fiscper+4(3) = '2' or
v_fiscper+4(3) = '3'.
v_qrt = 2. (Calendar year quarter).
elseif v_fiscper+4(3) = '4' or
v_fiscper+4(3) = '5' or
v_fiscper+4(3) = '6'.
v_qrt = 3.
and so on...
Hope this willl help.
- Jaimin -
Cal. Year/Quarter Values in Text
Hi All,
I have a report which displays Net Sales in Yearly Quarters wise
Ex: 20131 20132 20133 20134
Query has included Cal. Year/Quarter infoobject, I've done setting to display as 'Text' for Cal. Year/Quarter object properties in Bex.
But I'm expecting the report results as
Ex: 2013 Q1 2013 Q2 2013 Q3 2013 Q4.
Could you please suggest me what are the settings I'm missing.
Regards
SunilHi Anshu n Phani,
I was posted this discussion by checking "Mark this discussion as Question" check box. So it was posted as question. When I got the correct answer (immediate reply) I've checked that reply as 'Correct Answer' and after that I've posted some of my observations regarding my question.
Checking 'Correct Answer' will populate the question status as "this question has been Answered' and 'Useful Answer' will make the thread as not answered, but if the Author of the question make it as "Assumed Answer', then question status got 'This question is Assumed Answer'. And thread get closed. This is the only way I know to give the proper status of a question in SCN.
Phani Could you please explain, is there any other way to close the thread ?
As Anshu mentioned, it's been changed as Discussion (I donn know how it happened) , I'm unable to mark it as Correct and Useful, so mentioned in my reply as "Thread is Closing'.
Thanks
Sunil -
Offset issue for Fiscal Year Quarter
Dear All,
There is a requirement to develop a report for balance sheet to compare the fiscal year quarter like if user is going to give input 20143 then comparison quarter is 20142 where I did offset (-1) and if user give input as 20141 then the comparison quarter is 20134 where I am using offset as (-7).
So I have incorporated both offset in one variable. Now the issue is if I will run for any quarter then it is giving error in the run time. Could anyone suggest that how I could achieve this, whether I have used correct offset interval?
Query Key Figures Selections:
Bex Analyzer Selection Error:
Regards,
Abhishek JainHi,
I wouldn't do it in that way i.e. one column where you count previous quarter for quarters 2 3 4 (offset -1) and another column for counting previous quarter for quarter 1 (offset 7).
There should be just one column where you count just previous quarter. Use an EXIT to count previous quarter for any value of quarter.
Regards, Leszek
something like this can be used:
WHEN 'ZPREVQUARTER'.
* QUARTER(1) TYPE C.
* YEAR(4) TYPE C.
* have to be defined after DATA: keyword !!!
IF i_step = 2.
LOOP AT i_t_var_range INTO l_s_var_range
WHERE vnam = 'ZCURRENTQUARTER'.
EXIT.
ENDLOOP.
CLEAR: l_s_range.
YEAR = l_s_var_range-low(4).
QUARTER = l_s_var_range-low+4(1).
IF QUARTER = 1.
YEAR = YEAR - 1.
QUARTER = '4'.
ELSE.
QUARTER = QUARTER - 1.
ENDIF.
CONCATENATE YEAR QUARTER INTO l_s_range-low.
l_s_range-sign = 'I'. "loc_var_range-sign.
l_s_range-opt = 'EQ'. "loc_var_range-opt.
APPEND l_s_range TO e_t_range.
ENDIF. -
Customer Exit for Calendar year/Quarter
Hi Experts,
I had a scenario as I had a Time char 0Calquarter. Based on this I need to derive the current quarter headcount and Pervious year same quarter headcount. To get the headcount I defined a counter constant '1' for each employee at cube level.
In a Query
a) Assign a system date to 0Calquarter variable in query.
b) If the variable is blank till current quarter the headcount need to display and same as previous quarter headcount.
c) If the user enters any value (say 20083) tht quarter current headcount and pervious year quarter(20073) headcount.
For the above scenarios I need to write customer exit.
Thanks,Hi Shanthi,
Thanks for u r reply.
Headcount is defined as 'constant'. when Z_COUNT Keyfigure is dran & droped in rows it'll cumulate and display the current headcount.
hope u understand the headcount.
I require the cmod logic.
Thanks -
Enable fiscal year/quarter selection in a query
Hello all,
I want to have an characteristic fiscal year/quarter similar to fiscal year/period (0FISCPER) in my query. Unfortunately I can not find such a characteristic in the time infoObjects in my cube and in the administrator workbench.
Our Fiscal year starts in July. So the first quarter is July - September. The BW release is 3.5.
How canI enable a fiscal yearquarter selection in my query?
Any ideas would be great.
Thanks upfront and Best regards,
Stefanos from Munich/Bavaria/GermanyStefanos ...
A couple of options for the same :
1. Have 0FISCPER in your cube and map the same to the custom characteristic in the update rules.
2. Have the custom characteristic in the cube in a separate dimension
3. If you have the same in the cube - have a variable against that and execute your query...
By doing the above you can get the same in the query.
Arun
Assign points if useful -
How to get current fiscal year/quarter/month/week
Post Author: [email protected]
CA Forum: Semantic Layer and Data Connectivity
Hi friends,
I have to calculate
1. current year/quarter/month/week.
2.Previous year/quarter/month/week.
please tell the process to achieve the above scenerio's.
the structure of the fiscal_cal is as follows.
Name Null? Type
TODAY NOT NULL DATE
FISCAL_DAY NUMBER(8)
FISCAL_WEEK NUMBER(6)
FISCAL_MONTH NUMBER(6)
FISCAL_QTR CHAR(18)
FISCAL_YEAR NUMBER(4)
FISCAL_MONTH_WORK_DAYS NUMBER(2)
sample week data is as follows
FISCAL_WEEK
200752
200753
209901
Thanks.based on ur target database DBMS you can find a built-in functions be used in the universe designer to get the requirment you talked about, like in oracle
to_char(mydate,'yyyy') it will return the year in the yyyy format.
and the same way for the other things you want
to_char(mydate,'q') return the quarter.
w return the week of the month
ww return the week of the year
mm return the month
,, to get the last year
you can use also a builtin functions
like add_months(mydate,-12) that return the same date for the last year, and you can do the same operations as before.
its all related to the DBMS.
good luck -
"non assigned" value for Calender year quarter not possible
All of us know that we can not assign "#" value to calender year quarter.
In my planning level (which is a part of multi planning area consinsting 2 cubes, Actual COPA cube and Plan COPA cube), I want to copy data from Actual copa cube to plan copa cube using planning function of formula type, but actual copa cube is not getting populated against calyear quarter.
I want to retain calyearquarter as a characteristic in my level as it is acting as a key to my plan data. What shoould be done in such a scenario?santoshkumar,
I would suggest you build a characateristic relationship exit on calendar year quarter, probably based on fiscal year period or 0calmonth.. Make sure you leave Calendar year quarter out of your planning level in the copy so it would derive it.
Hope this helps,
Mary. -
SSRS Parameter - Fiscal Year - Quarter
Using a SSAS cube as source I'm having problems getting using a dynamic parameter expression of the Quarter part of the time dimension so that the current quarter is selected each time the report is executed. The time dimension is using a Fiscal year
- where for example Q4 is for February, March and April) and Q1 (for May, June, July) etc,,
Below I haved showed how the parameter is working using a hardcoded Quarter part - and how it's not using the dynamic one:
When hardcoding the Quarter as in the below expression - using this expression - the parameter works:
="[PostingPeriod].[Posting Period].[Year].&[" & Year( DateAdd( "m", -4, Today() ) ) & "].&[Q4].&[" & Month( DateAdd( "m", -4, Today() ) ) & "]"
When trying to do a dynamic solution for the Quarter it's not working (emty results in the parameter list) - I'm using this:
="[PostingPeriod].[Posting Period].[Year].&[" & Year( DateAdd( "m", -4, Today() ) ) & "].&[Q" & DatePart(DateInterval.Quarter,DateAdd(DateInterval.Month,-1,today())) & "].&[" & Month(
DateAdd( "m", -4, Today() ) ) & "]"
Suggesting to how I can solve this dynamic would be very appriciated.Sorry, I missed the last part (highlighted) in the expression.
="[PostingPeriod].[Posting Period].[Year].&[" + CStr(Year( DateAdd( "m", -4, Now() ) )) + "].&[Q" + CStr(DatePart("q",DateAdd("m",-4, Now()))) + "].&["
+ CStr(Month( DateAdd( "m", -4, Now() ) ) )+ "]"
Can you give me some details on the Qtr parameter properties? Are you using "Specify values" or "Get values from a query" option?
Where do you see that the parameter value is blank?
Thanks,
Ayad -
Hi All,
In my requirement Financial year starts from Nov to Oct.
According to This in FEB 14 its 2014 Q2.
My query is like below
SELECT 'Q'+DATENAME(Quarter, CAST(CONVERT(VARCHAR(8), Getdate()) AS DATETIME))
But it is giving result Q1. how i can make it Q2?Try this query
declare @date date='20131001';
SELECT 'Q'+convert(varchar(1),(case when month(@date) between 10 and 12 then 1
when month(@date) between 1 and 3 then 2
when month(@date) between 4 and 6 then 3
when month(@date) between 7 and 9 then 4
end)),@Date
SEt @date ='20140201'
SELECT 'Q'+convert(varchar(1),(case when month(@date) between 10 and 12 then 1
when month(@date) between 1 and 3 then 2
when month(@date) between 4 and 6 then 3
when month(@date) between 7 and 9 then 4
end)),@Date
SEt @date ='20140501'
SELECT 'Q'+convert(varchar(1),(case when month(@date) between 10 and 12 then 1
when month(@date) between 1 and 3 then 2
when month(@date) between 4 and 6 then 3
when month(@date) between 7 and 9 then 4
end)),@Date
SEt @date ='20140901'
SELECT 'Q'+convert(varchar(1),(case when month(@date) between 10 and 12 then 1
when month(@date) between 1 and 3 then 2
when month(@date) between 4 and 6 then 3
when month(@date) between 7 and 9 then 4
end)),@Date
Satheesh
My Blog |
How to ask questions in technical forum -
Hello All,
I have the below scenario where i have Two Facts Fact Quarterly and Fact Yearly but one Time Dimension which has Quarter grain.
So my question is how do i Establish relationship from Fact Yearly to Time Dimension??
Ex:Hi naveej,
According to your description, you want to know how to build the relationship with time dimension and fact tables. Right?
Based on your screenshot, it's better to have only one fact table for sales and build the relationship with time dimension. To determine quarterly or yearly data only depends on how you slice the time dimension. However, I notice that the Revenue for year
is different from the aggregated Profit for quarters. If the Revenue and Profit are different measure, you need to have two fact tables. And you should build the relationship (Regular) between TimeDim and FactYearly on YYYY attribute.
Reference:
Defining a Fact Relationship
Best Regards,
Simon Hou
TechNet Community Support
Maybe you are looking for
-
ORABPEL-01005 class path is set correctly while deploying a BPEL composite.
07:20:08 AM Received HTTP response from the server, response code=500 07:20:08 AM Error deploying archive sca_HelloSoa1_rev1.0.jar to partition "default" on server soa_server1 http://slc01mrt.us.oracle.com:8001 07:20:08 AM HTTP error code returned 50
-
There's a book I bought two years ago that's just not a good book and I can't have visible with my little siblings using my iPad. It's not on my bookshelf on my iBooks app, but it is under Purchased Books. I understand you cannot permanently remove t
-
How to make a copy of a DB and keep it updated in real time?
Hi I have an Oracle Database 10g RAC and ASM on HP UX platform in the production environment and I need to make a copy of that database on another server where each transaction is updated online. Could you please tell me how I can do that? There are
-
ORA-12827 insufficient parallel query slaves available
Hi, In our sql statements , we are using PARALLEL_MIN_PERCENT = 100 for getting 100% parallel slaves. But sometimes,it fails with ORA-12827. if we remove PARALLEL_MIN_PERCENT = 100 , then obviously the query execution time will increase. How to make
-
MacBook Pro crashes randomly after installing Yosemite
I have a MacBook Pro (Late 2011) and upgraded to Yosemite (OS 10.10). Suddenly, my computer crashes randomly and then has to restart. I use MS Office 2011 (ver.14.4.5) so not sure if that's where the conflict lies. I have attached the crash report