year-week calculation
HelloI want to create a table like this
DAY OF THE WEEK OF THE YEAR
2007 W1 JANUARY 3, 2007
W2 2007 JANUARY 10, 2007
: : :
: : :
: : :
Wn 2010 December 29, 2010
I want the data from 2007 to 2010 like this and week should start as w1 for each year
my departure date is January 3, 2007
Like this?
SQL> WITH row_gen AS (
2 SELECT rownum rn FROM dual
3 CONNECT BY LEVEL <= 209)
4 SELECT TO_CHAR(dt, 'YYYY') year, 'W'||TO_CHAR(dt, 'IW') week,
5 dt thedate
6 FROM (SELECT TO_DATE('27-Dec-2006', 'dd-mon-yyyy') + (rn * 7) dt
7 FROM row_gen);
YEAR WEE THEDATE
---- --- -----------
2007 W01 03-JAN-2007
2007 W02 10-JAN-2007
2007 W03 17-JAN-2007
2007 W04 24-JAN-2007
. . .
2010 W49 08-DEC-2010
2010 W50 15-DEC-2010
2010 W51 22-DEC-2010
2010 W52 29-DEC-2010
John
Tags: Database
Similar Questions
-
Format of day, time of year, week, in figures
I would subtract one date from another. Number return weeks and days and I'd years, weeks and days. Formatting will not allow adjustment of the year. Any suggestions?
Hi max,.
I suspect that the unit is not available for the same reason 'month' isn't available, unlike the week, day, hour, minute, and second, it is not a stable unit. Conversion from weeks to days gives the same result for weeks in February 2004, as it does for weeks in July 1918, Conversion from months to days may require multiplying by 28, 29, 30 or 31 for one month, or a value with a fractional part for a period of more than a month long conversion (although this period was an integer when measured (or counted) in months.)
You can get an approximate value in doing some math.
In the example, the end result is a text string. Formula below.
C2: A - B
D2: QUOTIENT (DUR2DAYS (C2), 365.25) & "is" & QUOTIENT (MOD (DUR2DAYS (C2), 365.25), 7) & "w" & MOD (DUR2DAYS (C2), 7) & "d" "" ""
As mentioned, this is an approximation, and it is a text string, OK for display, but not useful (or usable) in all other calculations. A 'curiosity', more than anything.
Kind regards
Barry
-
Advice on getting from previous years week
Hello
Not sure if this is the right place to ask this, but here goes...
I need to run that two queries to extract data on sales of selection.
The first will come out sales for the previous week, for example (Monday, May 16, 2011 - Sunday 22 May 2011). I want then to the second out sales for the same week last year for example (Monday, May 17, 2010 - Sunday, May 23, 2010).
I'll have the Date and to which has been entered by the user of my first query, how do I training Oracle (11.2.0.1.0) the same week of the previous year?
Thank you and best regards,
Andrew
Published by: user9533852 on May 23, 2011 15:03Try this,
For this week
SELECT * FROM sales_table WHERE TO_CHAR (sales_date, 'YYYYIW') = TO_CHAR (SYSDATE, 'YYYYIW');
For the same week last year.
SELECT * FROM sales_table WHERE TO_CHAR (sales_date, 'YYYYIW') = TO_CHAR (ADD_MONTHS (SYSDATE, -12), 'YYYY') || TO_CHAR (SYSDATE, 'IW');
-
Deriving from the first day of the week ww in the year yyyy
I need to be able to display the first day of a particular week in addition to the "week of the year" and the year. for example:
give me the following:select to_char("ServiceDate",'yyyy-ww') as "Year/Week", sum("Points") as "Points" from my_table group by to_char("ServiceDate",'yyyy-ww') order by to_char("ServiceDate",'yyyy-ww')
and so on. What I would like to add to the dataset is the same day, the first day of the week for this week/year. For example, the first line would look like this:Year/Week Points 2008-33 1 2008-35 1 2008-42 4 2008-43 2 2009-01 1 ...
* Or whatever the first day of the week 33 of 2008 is (assuming that "first day of the week" is a Sunday, in my case).Year/Week 1st day of week Points 2008-33 08-AUG-2008* 1
My brain is on "dim" right now; any help is greatly appreciated.
Thanks in advance,
Carlselect to_char(trunc("ServiceDate",'ww'),'yyyy-ww') as "Year/Week", to_char(trunc("ServiceDate",'ww'),'DD-MON-YYYY') "Week Start Date", sum("Points") as "Points" from my_table group by trunc("ServiceDate",'ww') order by trunc("ServiceDate",'ww') /
SY.
-
I would like to view the week starting Monday and ending with Saturday and Sunday (on the same weekend) together. At the moment week view starts Sunday and runs through to Saturday. Is this possible?
(Alt + T) Tools menu > options > calendar > views defined years week begin to anything that takes your fancy
-
ADF: by changing the colors depend on the date (week)
Hello world
I use Jdev 11 G...
I have an ADF reads only the table with 8 columns. (itemno, itemname, deliverydate, deliveryweek, type, location, filter, org).
now, I have to change the color of the itemno according to the following conditions:
1. If the value type of the column is not null, then do itemno to yellow...
2. If type is null, then the itemno color should be:
Brown: if calculated is the current week...
Red: If the calculated week is next week...
Rose: If the week calculated beyond next week...
Note: week must be calculated from sysdate and deliveryweek column. (deliveryweek-(minus) current week (calculated from sysdate))
the values in the column deliveryweek is as follows: 26-2011, 2012-06, and so on. where 26 and 06 are weeks.
In short, we must get the week of the deliveryweek column and calculate the week being sysdate and subtract and do the postings you want to color.
How can I achieve this requirement?
Any suggestions would be really grateful.
Thanks in advance.
Thank you.Hello
The inlinestyle of the background-color (instead of just color) value column
Arun-
-
turnover of 18 weeks from the week of the current month number
Hello
I have a requirement as described below.
Time table name:
Columns: year, month of exercise and exercise week
table above has the join with the sales table and contains data on sales according to the week. so less granularity of data at the level of the week.
We have a report that contains columns exercise, actual sales and forcast sales. our requirement is to filter the data with the following criteria.
Filter for the current month
Fiscal week Jan between 1-18 of the current year
Fiscal week Feb between 5-23 of the current year
Week fiscal March between 9-27 to the current year
.
.
.
.
Fiscal week November between 44 the week of the current year and week 10 of next year
December
with above requirement therefore filter the data bearing 18 weeks from the week of the current month number
I tried with timestampadd (interval, sql_tsi_week, week), but it does not work as I expacting. Please provide the code/logic to do so.
Appreciate your help.
Thank you
Jay.Jay wrote:
I need to get the results of 18 weeks of turning to anypoint starting with the week number of the 1st of every month at 18 weeks. read my question again once and you will be able to understand.It kind you of lack the point to be honest. It is very difficult to answer specific questions without the required information. To answer a question like this we need a minimum of:
1. oracle version
2. examples of data (CREATE TABLE / INSERT statements)
3. expected results
4. explanation of the business rules.Alternatively, you can read the link in my original reply.
Please provide the information requested and someone can help.
-
Beginning and end of the week according to YYYYWW
Hi all
I have a date like format
201050
201051
201052
201101
I wanted to display their dates of beginning and end of the relevant year - week.SQL> with t as ( 2 select 201050 yw from dual union all 3 select 201051 from dual union all 4 select 201052 from dual union all 5 select 201101 from dual union all 6 select 201102 from dual 7 ) 8 -- 9 -- 10 select yw, trunc (trunc (to_date (substr (yw, 1, 4), 'yyyy') + 7, 'iyyy') + 7 * (substr (yw, 5) - 1), 'iw') start_dt 11 from t 12 / YW START_DT --------------- ----------- 201050 13/dec/2010 201051 20/dec/2010 201052 27/dec/2010 201101 03/jan/2011 201102 10/jan/2011 5 rows selected. SQL>
-
Using the query - amount weekly, daily, max &; time
Hi guys,.
I came looking for help with this query, I should use to create a new table. At first I just thought I needed to store the weekly amount and some other information, but then told me that I need the sum for the week and the hourly figure higher this week with time. I managed to make all columns except rush hour causing me issues.
The DESC table is as follows: http://i38.tinypic.com/8yt0.png
My query result has need of the following:
Db_name (direct copy of the table)
TYPE (direct copy of the table)
YEAR (cropped from TD_HR - first 4 characters)
WEEK (cropped from TD_HR and then converted to the IW format)
TOTAL (weekly column TOTAL amount)
HOURLY_PEAK (the largest AMOUNT for a given time during a week)
PEAK_TIME (time of the highest sum for the week)
I have everything show except PEAK_TIME. Sample data:
My current (terribly inefficient) query is the following:DB_NAME TD_HR TOTAL TYPE CSAHEPA 2008-07-24 16 35 CON CSAHEPA 2008-07-24 15 4 CON CSAHEPA 2008-07-24 16 19 CON CSAHEPA 2008-07-24 17 3651 CON CSAHEPA 2008-07-24 16 7 CON CSAHEPA 2008-07-24 17 113 CON CSAHEPA 2008-07-24 17 534 CON CSAHEPA 2008-07-24 17 289 CON CSAHEPA 2008-07-24 17 12 CON CSAHEPA 2008-07-24 16 52 CON
The final column data are given in the 2nd query here as:select DB_NAME, YEAR, WEEK, sum(SUM), TYPE, sum(WEEKLY_PEAK) from ( select DB_NAME, SUBSTR(TD_HR, 1, 4) year, to_char(to_date(SUBSTR(TD_HR, 1, 10), 'RRRR-MM-DD'), 'IW') week, sum(TOTAL) sum, TYPE, 0 WEEKLY_PEAK from CORCON01_HOUR_CHG_TOTALS group by DB_NAME, SUBSTR(TD_HR, 1, 4), to_char(to_date(SUBSTR(TD_HR, 1, 10), 'RRRR-MM-DD'), 'IW'), TYPE union all select db_name, year, week, 0 sum, type, max(peak) weekly_peak from ( select DB_NAME, SUBSTR(TD_HR, 1, 4) year, to_char(to_date(SUBSTR(TD_HR, 1, 10), 'RRRR-MM-DD'), 'IW') week, TYPE, sum(total) peak, CONCAT(INITCAP(TO_CHAR(TO_DATE(rpad(td_hr, 10),'yyyy-mm-dd'),'dy')), substr(td_hr,11))||':00' peak_time from CORCON01_HOUR_CHG_TOTALS group by DB_NAME, SUBSTR(TD_HR, 1, 4), to_char(to_date(SUBSTR(TD_HR, 1, 10), 'RRRR-MM-DD'), 'IW'), TYPE, CONCAT(INITCAP(TO_CHAR(TO_DATE(rpad(td_hr, 10),'yyyy-mm-dd'),'dy')), substr(td_hr,11))) group by db_name, year, week, type) group by db_name, year, week, type
CONCAT (INITCAP (TO_CHAR (TO_DATE (rpad (td_hr, 10), "yyyy-mm-dd"), "dy")), substr(td_hr,11)) |': 0 0' peak_time
Any help (get the last column included and/or improvement of the effectiveness of the query) is greatly appreciated.
MikeThis?
with results as (select db_name, to_date(td_hr, 'yyyy-mm-dd hh24') td_hr, total, type from CORCON01_HOUR_CHG_TOTALS), final_results as (select db_name, td_hr, type, sum(total) sum_total from results group by db_name, td_hr, type) select db_name, to_char(td_hr, 'yyyy') year, to_char(td_hr, 'iw') week, type, sum(sum_total) week_sum_total, max(sum_total) peak_sum_total, to_char(max(td_hr) keep (dense_rank first order by sum_total desc), 'yyyy-mm-dd hh24') peak_hour from final_results group by db_name, to_char(td_hr, 'yyyy'), to_char(td_hr, 'iw'), type; DB_NAME YEAR WEEK TYPE WEEK_SUM_TOTAL PEAK_SUM_TOTAL PEAK_HOUR ---------------- ---- ---- ---------- -------------- -------------- ------------- CSAHEPA 2008 30 CON 4716 4599 2008-07-24 17 CSAHEPA 2008 39 CON 611 555 2008-09-24 16
(And why, oh why, you store your dates as VARCHAR2?) ({noformat} * sobs * {noformat})
-
Clause type SQL how can the others cannot?
Hi all
I met a topic called the type Clause when I was reading Pro Oracle SQL by Karen Morton, Kerry Osborne, Robyn SandsRiyaj Ntanguand Jared still. I just read the chapter and did some practice on my local machine. It is obvious that it is a very powerful feature. And I also reachered on the web and found out that it is used for spreadsheets (excel etc.). Can someone please give me a simple example which, in which case one must use the clauses types SQL Analytic Functions or group Advanced functions cannot cure?
Either said by the way, I recommend strongly Pro SQL Oracle book to all who want to learn the knowledge of SQL.
Thanks in advance
Hello
In short Yes, the TYPE clause allows you to perform calculations of "spreadsheet-like". With the help of the clause TYPE is quite rare. Now with the introduction of the WITH recursive clause in 11g 2, you can almost everything in SQL, do not even talk about the pattern match feature introduced in 12 c.
You can probably do now with analytical functions / recursive clause the clause of MODEL can do. And I must say that it is a shame that the TYPE clause has never been improved since its introduction in 10g.
In my view, the clause TYPE can come in handy when you need cross reference calculations (typically dealing with periods such as dates, years, weeks). For example, I personally used a MODEL clause for an analysis of sales time, where I watch the sales of previous years to find a pattern for the current. References of cells in a MODEL clause allows to easily, something like [my_year, my_week] model = local_pattern [(y ENTRE CV()-2 ET CV) (-1, w BETWEEN (CV-2) RESUME AND () + 2)]
-
Oracle 11g and partitions on a star model
Hello
I am Manager of the Business Intelligence service in a society. We use SAP BI4.1 SP3 and an Oracle 11 g server.
We have big questions about our various requests.
One of them is the use of "partition" and how they are used.
Here's the situation. I have a big fact with data on the inventory table. This table is partitioned with partition 1 per day, using the foreign key 'DATE_KEY"(digital YYYYMMDD)
I have a CIVIL dimension, whose primary key is also DATE_KEY (numeric YYYYMMDD). Other columns of attribute are like DAY (in a date format), YEAR, WEEK and so on. Very classic.
Now, I want to execute the following queries:
(1) to recover the 1 day stock, using the date format of my calendar dimension attribute
Select sum (stock_quantity)
of s FACT_STOCK
inner join DIM_CALENDAR d
On s.DATE_KEY = d.DATE_KEY
where d.DAY = to_date('16/02/2016','DD/MM/YYYY')
(2) get 1 day stock, using the primary key of my calendar dimension
Select sum (stock_quantity)
of s FACT_STOCK
inner join DIM_CALENDAR d
On s.DATE_KEY = d.DATE_KEY
where d.DATE_KEY = 20160216
(3) to recover the stock of 1 week, using the week of my calendar dimension attribute
Select sum (stock_quantity)
of s FACT_STOCK
inner join DIM_CALENDAR d
On s.DATE_KEY = d.DATE_KEY
where d.WEEK = 201607
Results of the explain plan command:
1)
expected: it's supposed to used 1 partition because the partition key is in the join
true: it does not use the partition. All the table partitions are analyzed.
2)
expected: it is supposed to used 1 partitionas the partition key is in the filter where
true: it uses a 1 partition.
3)
expected: it is supposed to use 7 partitionas the partition key is in the join
Real: it does not use the partition. All the table partitions are scanned.
The behavior is normal? I think that this isn't, but I'm not DBA.
"If it's normal, partition are completely unnecessary, since I can't say my professional user: 'Please use the technical dimension instead of the calendar attribute key' or 'Please list the day of your week instead of using the attribute of the week'"
Is it possible to implement dabase settings in order to use the partition.
Notice the: BF0000 used for pstart and pstop, also references to the "party join filter.
It is Oracle, creation and use of a filter of flowering of the first entry (small) to identify the partitions that need to access the second table.
It is possible for Bloom filters identify data redundant, but to identify the partition, they seem to be very accurate.
It seems that you should have a unique constraint on d.day for your first query, this would allow Oracle to see she had access only a single partition - and which could replace the filter of flowering with a subquery to pstart/pstop and KEY/KEY filter (possibly KEY (SQ) / KEY (SQ)) instead of: BFnnnn
Concerning
Jonathan Lewis
-
Help formula of ASO Urgent...
Hi Experts,
I have fomula Member that contains the actual value or budget based on the actual load. Formula works well as expected however the aggregation does not.
Member name: forecast (Abs) (25 of solve order)
-case when islevel ([time] .currentmember, 0) then (case when IsEmpty ([PY_PER]) and IsEmpty ([PY_PER_REVENUE]) and then ([last budget year (Abs)]) else ([last year (Abs)]) end) ENDMember name: prediction Test (30 of solve order)
CASE WHEN IsLevel ([time] .currentmember, 0), THEN [SEE]. [Forecast (Abs)] else (sum ([Time]. CurrentMember.Children, [VIEW]. [Forecast] (Abs))) end
The above formula is rolling only level months but months level value is not aggregate level qtr and qtr to the level of the year.
Our temporal dimension is multiple hierarchy enabled. Primary hierarchy is Power (year-> week-> date) and secodary is exercise (year-> qtr-> month-> date (shared)).
Any help is appreciated.
Raja MohamedHello Mohamed,
I think the problem is in
sum ([Time]. CurrentMember.Children
That is why the month working and probably the week also works. Maybe you have to work with descendants, and not just take the kids. It is dynamic, so the year children are quarters and they have no data because it is stored at lev0.
Kind regards
Philip Hulsebosch
-
Calendar of the ADF: Drag and Drop
Dear all,
I tried to add the drag and drop functionality provided by Oracle ADF to a calendar that displays events from the database.
< af:calendar id = 'c4' value = ' #{bindings. " CalendarView1.calendarModel}.
calendarActivityListener = "#{CalendarBean.activityListener}" > "
< af:calendarDropTarget dropListener = "#{CalendarBean.handleDrop}" action = "MOVE" / > "
< / af:calendar >
The "CalendarBean" code is that provided in the Oracle ADF Faces "DemoCalendarBean.java" demo application
Unfortunately, the following error occurs "oracle.adfinternal.view.faces.model.binding.FacesCtrlCalendarBinding$ AdfmCalendarActivity cannot be cast to oracle.adfdemo.view.calendar.rich.model.DemoCalendarActivity.
Can anyone advise a solution
Thanks in advance
Concerning
Hello
Start with the calendar using Oracle demonstrations certainly seem convoluted - I did the same thing. I had to interpret what the demo was trying more of in the java code in general, and then write my own code. Below, I have the code that works for my clients.
1.) tag add calendar Drop target within your calendar.
2.) create your listener to drop in a managed bean (make sure that your method is mapped into the target calendar Drop). Note the areas where I've "updated HERE". I had fun with the data conversions that you see
Updated - this must go in your bean example. You can of course do this dynamic, but for now, it should work.
currTimeZone private zone is TimeZone.getTimeZone (' America/Detroit');.
This card to your target calendar drop tag
public DnDAction handleDrop (DropEvent dropEvent) {}
Method to handle the Drag and Drop feature calendar
Return _handleDrop (dropEvent, false);
}
public DnDAction _handleDrop (DropEvent dropEvent, showPopup boolean) {}
Drag and drop (mailable)
Transferable transferable = dropEvent.getTransferable ();
CalendarDropSite dropSite = (CalendarDropSite) dropEvent.getDropSite ();
DropSiteDate date = dropSite.getDate ();
CalendarActivity.TimeType timeType = dropSite.getTimeType ();
Civil activity
Activity CalendarActivity = (CalendarActivity) transferable.getData (DataFlavor.getDataFlavor (CalendarActivity.class));
If (activity! = null) {}
_handleCalendarActivityDrop (dropEvent, dropSiteDate, activity, showPopup);
Return dropEvent.getProposedAction ();
}
Return DnDAction.NONE;
}
private _handleCalendarActivityDrop Sub (DropEvent dropEvent, dropSiteDate Date, CalendarActivity activity, boolean showPopup) {}
Current start date Info get an activity
Date startDate;
startDate = activity.getStartDate (currTimeZone);
Calendar startCal = Calendar.getInstance (currTimeZone);
startCal.setTime (startDate);
Obtain the primary key of the calendar item as we move
String rowPK = activity.getId (m:System.NET.SocketAddress.ToString ());
int startDayOfYear = startCal.get (Calendar.DAY_OF_YEAR);
int startHour = startCal.get (Calendar.HOUR_OF_DAY);
int startMin = startCal.get (Calendar.MINUTE);
int startYear = startCal.get (Calendar.YEAR);
Get current Info from Date of end of the activity
Date endDate;
endDate = activity.getEndDate (currTimeZone);
Calendar endCal = Calendar.getInstance (currTimeZone);
endCal.setTime (endDate);
int endDayOfYear = endCal.get (Calendar.DAY_OF_YEAR);
int endHour = endCal.get (Calendar.HOUR_OF_DAY);
int endMin = endCal.get (Calendar.MINUTE);
int endYear = endCal.get (Calendar.YEAR);
Download New Start Date object dropSiteDate Info
Calendar dropCal = Calendar.getInstance (currTimeZone);
dropCal.setTime (dropSiteDate);
int dropDayOfYear = dropCal.get (Calendar.DAY_OF_YEAR);
int dropHour = dropCal.get (Calendar.HOUR_OF_DAY);
int dropMint = dropCal.get (Calendar.MINUTE);
int dropYear = dropCal.get (Calendar.YEAR);
calculation variables
long eventDelta = 0;
int newEndDayOfYear = 0;
Check if there is any change with the start date new old vs.
If (startDayOfYear! = dropDayOfYear) {}
Get the value of delta beginning-enddate
eventDelta = endCal.getTime () .getTime () - startCal.getTime () .getTime ();
Info set start date (Leaving time infact info)
startCal.set (Calendar.DAY_OF_YEAR, dropDayOfYear);
startCal.set (Calendar.YEAR, dropCal.get (Calendar.YEAR));
startCal.set (Calendar.MONTH, dropCal.get (Calendar.MONTH));
calculate the new endDate
Day newEndDate = new Date (startCal.getTime () .getTime () + eventDelta);
endCal.setTime (newEndDate);
reformat the start date, just in case.
Trainer SimpleDateFormat;
Formatter = new SimpleDateFormat ("yyyy-MM-DD hh: mm:." "") « « S ») ;
Date newStartDate;
newStartDate = new Date (startCal.getTime () .getTime ());
Formatter.format (newStartDate);
Take the iterator that is used for the calendar
DCBindingContainer dcbindings = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
UPDATE HERE - the name of your iterator binding your view calendar object
Iterator DCIteratorBinding = dcbindings.findIteratorBinding ("NameOfYourViewObjectIterator");
Get lines of database that uses the iterator
Line lines [] = iterator.getAllRowsInRange ();
Line currentRow = iterator.getCurrentRow ();
Must make sure that we have the iterator on the right line
If (rows.length > 0) {}
for (int i = 0; i)< rows.length;="" i++)="">
Updated HERE - this is a primary key for your view object
If (rows [i].getAttribute("Id").toString () .equals (rowPK)) {}
We found the line, now exit loop and move forward
currentRow = lines [i];
break;
}
}
}
If (currentRow! = null) {}
Get the binding of operations
CHECK to make sure that you have a validation link on your Page Def
OperationBinding commitBinding = dcbindings.getOperationBinding ("Commit");
/ Date start and end Date for the line that we are changing the value
* We need to create an oracle.jbo.domain.Timestamp because the view entity object using oracle.jbo.domain.Date
* oracle.jbo.domain.Date does not accept that the oracle.jbo.domain.Timestamp, which stamp accepts java.util.Date
*/
Start date of new game
Timestamp newStartDateTs;
newStartDateTs = new Timestamp (newStartDate.getTime ());
UPDATE HERE - launched date field
currentRow.setAttribute ("Startdate", newStartDateTs);
New defined end date
Timestamp newEndDateTs;
newEndDateTs = new Timestamp (newEndDate.getTime ());
UPDATE HERE - launched date field
currentRow.setAttribute ("Enddate", newEndDateTs);
Perform field validation against currently modified line
try {}
currentRow.validate ();
} catch (Exception e) {}
System.out.println (e);
Restore all changes so there is no garbage data is entered into the database
currentRow.refresh (Row.REFRESH_UNDO_CHANGES);
return;
}
Run the validation on the database operation
commitBinding.execute ();
Look for errors during validation: If no errors, then update calendar
If (commitBinding.getErrors () .isEmpty ()) {}
Refresh the calendar client in order to reflect the new changes
RequestContext adfContext = RequestContext.getCurrentInstance ();
adfContext.addPartialTarget (getCalendarComponent ());
} else {}
currentRow.refresh (Row.REFRESH_UNDO_CHANGES);
}
} else {}
Nothing to do here.
}
}
}
protected RichCalendar getCalendarComponent() {}
FacesContext context = FacesContext.getCurrentInstance ();
UIComponent root = context.getViewRoot ();
Hard-coded id for the moment, but that can be loaded dynamically.
UPDATE your schedule component JSPX HERE - id
return (RichCalendar) root.findComponent ("c1");
}
(3.) If can't remember off hand imports, if you have a problem let me know, I'll send a list of what I have.
I hope this helps. Good luck!
Gavin
-
CDA, ptd, qtd in dashboard prompt
Hello
How to use ptd, qtd, CDA as a guest of dashboard
I created netamount ptd, CDA, qtd in SPR
my metric is netamount
in the dashboard if I select ptd, then give values of ptd
SELCT CDA give CDA netamount
Also QTD even
its dashboard to change all the dashboard
How to do thisTry first with the single report and a test if its working. later, you can implement for all reports.
Create Measssure
'Your_table_name '. "" PTD "= Somr calculation I SPR
'Your_table_name '. "" QTD ' = Somr calculation I SPR
'Your_table_name '. "" for a year "= Somr calculation I SPRNow you have 3 steps in the layer of presentation called ptd, qtd, for a year.
Create a report format the column as 'Your_table_name '. "' @{var_mes} {PTD}" (ptd as defalut Messure) save the report.
Now create the dashboard quick. In this Variable Prompt selection. In the right part of the presentation Variable as var_mes writing.
Now, select list selection and custom values, select enter ptd.
Select values enter qtd and again for a year...Now you have a presentation with 3 custom values, ptd, qtd CDA variable
Save the guest of the dashboard.
Put this guest of dashboard and report to the saingle dashboard. imitaialyy your report must indicate the value of ptd (coz you have default select ptd above in column e formula 'Your_table_name'.) ("' @{var_mes} {PTD}")
Now wheh u change the command prompt, vraibale should go and maessuare should change.
check if correct/help
Bachelot -
We are trying to build a repository which intelligently connects HFM OBIEE and struggle with as obvious problems:
-How to build a calendar
-variances calculated in OBIEE with the structure of the cube of HFM
etc.
Someone there already did this and maybe we can share some ideas or recommend a company with experience in this area.
(not interested by OFMA)
Thank you
AlexIn terms of the timeline, what are you willing to build? As for the gap, as you it comme vous l' avez have look something like vs year previous calculation exercise based on a specific dimension or account?
Maybe you are looking for
-
List of files with exclamation point?
How can I put a list of files with an exclamation during a sync? I see the small window that I can go through, but I'd like to see all the iTunes files cannot locate.
-
Shooting distance shot always twice in Eos Utility?
Hello After I upgraded my computer and reinstalled Eos Utility for use with my Canon EOS 7 d (mark I), Eos Utility now * always * shoots twice when I take pictures of the computer (remote shooting). No idea why this is so? I disabled gross and the t
-
.mov, I get no play and nothing found on the market
-
WHAT IS ERROR #4206 flash drive
having the latest flash player, that he was working then just stopped and now only shows a white screen with the words... Error # 4206 even google chrome with his own shows to FlashPlayer tried error compensation browser same etc etc need some tips o
-
Problems accessing the C code execution
I had difficulties to get C code to run in my project bb10 test.h #ifndef TEST_H_ #define TEST_H_ #ifdef __cplusplus extern "C" { #endif int callMe(void); #ifdef __cplusplus } #endif #endif /* TEST_H_ */ test.c #include #include #include #include "te