Help with Report Condition
I have three parameters in my report which are academic year, instance code and id number. Only two parameter values are entered when user runs report, that is, either academic year and id number or academic year and instance code.
The report produces a student’s statement of results and should show all results for the previous years. E.g. if student did c-inst1 in 2009, c-inst2 in 2010, c-inst3 in 2011, when user enters 2011 for parameter academic year and c-inst3 as course instance, the report should display all the results of students starting from 2011 going back to 2009 for all the three course instances c-inst1, c-inst2 and c-inst3.
My report conditions are as below:
ACADEMIC_SESSION <= :ACADEMIC_YEAR AND
(Id_NUMBER = :ID_NUMBER OR (:ID_NUMBER IS NULL AND (CI.INSTANCE_CODE = :course_instance OR What?? ) What condition should I add here in order to get all those records with course instance entered as well as previous course instances done by a student?
Please assist. Thanks.
user8655468 wrote:
I have three parameters in my report which are academic year, instance code and id number. Only two parameter values are entered when user runs report, that is, either academic year and id number or academic year and instance code.
The report produces a student’s statement of results and should show all results for the previous years. E.g. if student did c-inst1 in 2009, c-inst2 in 2010, c-inst3 in 2011, when user enters 2011 for parameter academic year and c-inst3 as course instance, the report should display all the results of students starting from 2011 going back to 2009 for all the three course instances c-inst1, c-inst2 and c-inst3.
My report conditions are as below:
ACADEMIC_SESSION <= :ACADEMIC_YEAR AND
(Id_NUMBER = :ID_NUMBER OR (:ID_NUMBER IS NULL AND (CI.INSTANCE_CODE = :course_instance OR What?? ) What condition should I add here in order to get all those records with course instance entered as well as previous course instances done by a student?You can use lexical parameter in reports sql and pass the condition whatever u want. How can we do that ?
1. create a parameter like PR with char data type.
2. pass the column name and other parameter to this parameter via After Parameter Form trigger.
Hope this will help you.
Similar Messages
-
I need help with the conditional build tag option RoboHelp 10
I need help with the conditional build tag option. I want to apply CBT to content in a topic. I looked at the Help topics and believed that I applied the feature correctly. Howver, it is not working as desired. In the 2nd sentence below I want the text highlighted in blue to only appear for the printed output and the text printed in purple to only appear for the .htm /online output. Please help.
There are common tasks used to manage the folders in the Navigator and the folders
in the BBS Folders Viewer Grid. For more information on these common tasks see Help
and Support in Success Enterprise. click the links below.Hi there
Using tagging is a two part process.
Part One
You create and apply the tags to the information you wish to control.
Part Two
You create a Build Expression that is used when you generate your output. The Build Expression typically reads something like: NOT Tag1 (or whatever your tag name is)
Then when you generate and use the Build Expression, the information tagged is not included in the build.
Cheers... Rick -
I have been doing battle with the SBO Customer Receivables Aging Report. I am trying to add the fields "Customer Reference" and "Creation Date" to the Repetitive area of the report with no success. All of the existing fields are variables, and the on-line help says to contact SAP support (which would be me) for help with changing variables. Does anyne have a list of these variables, or know how to define them?
Many thanks,
Mike.Hi Mike Stroud, i'm actualy also working on the customer ageing report. You also responded to my post. It was the reports one. Well, im not sure about the variables but i simply wrote a query that brings all that info and more up. But i'm having problems diplsying it. In the normal SAP report/print layout, if i make the report based on the query it doesn't let me move the info from the repetitive area to the header....why.....can you get around this??? I then did it in the advanced layout but the first page is always wrong. What do you want to do with the variables?? what are you trying to achieve with the report because me and my coleagues have had a BIG problem with the ageing.
-
File Upload Problem - help with a condition
Dear all,
I have built a form that includes a file upload. Everything works great until I don't include a file for upload(!) It wont allow me to "not" upload a file, it throws an error at me. My database allows this field to be blank. Do I have to wite some sort of condition that allows the file field to be blank, if so, could anyone help with it?
Many thanksHello,
Can any one at Adobe help with this please as I still cannot understand why I am forced to upload a file with the file upload control. What happens if I dont want to add a file with my insert form??? I get errors if I do not include a file:
Developer Details:
Folder error. Security Error. Folder 'C:\Inetpub\Www_root\absbiodiesel.co.uk\' is out of base folder 'C:\Inetpub\Www_root\absbiodiesel.co.uk\NewsArticles\'. (FOLDER_DEL_SECURITY_ERROR)
tNG Execution Trace - VIEW
tNG_insert.executeTransaction
STARTER.Trigger_Default_Starter
tNG_insert.doTransaction
BEFORE.Trigger_Default_FormValidation
tNG_insert.prepareSQL
tNG_insert.executeTransaction - execute sql
tNG_insert.postExecuteSql
AFTER.Trigger_FileUpload*
ERROR.Trigger_Default_Insert_RollBack
tNG_insert.getRecordset
tNG_insert.getFakeRsArr
tNG_insert.getLocalRecordset
tNG_insert.getFakeRecordset
tNG_insert.getFakeRecordset -
Need help with Report Generation Toolkit: Excel Set Cell Format.vi
Hi people,
I've been searching and found this old thread of someone asking what is the input parameter "Number format". And I dont know what should I put in there. I've tried so many possibilities, but nothing works so far, such as:
0,0
0,?
0,#
#,0
?,0
and also with @, doesnt works. Where would I find help about this parameter?
I'm using Excel2003, german version, thus local decimal separator is a comma.
I also found this help from NI, but seems doesnt help me either. Do I miss something important?
thanks,
Yan.Hi,
I've used your suggestion and some numbers in excel doesnt need to get "right click, change to numbers" anymore (green indicators on the left-top side in some cells are gone). But, I think its still not a number, because I cant use a simple formula, such as in cell A10 I type "= A1/2" (cell A10 equals cell A1 divided with 2) . I got error which says its not a number.
Well, but other thing is found, any format-string I put in the input of Excel Set Cell Format.vi, such as #,########, will be shown the same as "customize #,########" if I right click in a cell in excel and click "Zellen formatieren" (formatting cell). But however, the numbers are still depends on the input of the format I put in the Append Table to Report.vi.
regards,
Yan. -
OBIEE 11G help with report narrative and table view
Hi,
I have a report designed like the below, I have used "narrative view" for customer detail and "table view" for order detail. In the narrative view I can say row = 1 and it picks up the first record of the customer detail, but order detail shows all rows. How can I control it so the order detail shows only the detail record of the customer associated. Also how do I go to the second record and so forth. Please help. If this is not possible and if there are any alternates, please let me know. Thanks for your time and help.
Customer Number:
Customer Name:
Customer Address:
Order Detail:
Line number | Order No | Order description | Order Statusssk1974 wrote:
Hi,
I have a report designed like the below, I have used "narrative view" for customer detail and "table view" for order detail. In the narrative view I can say row = 1 and it picks up the first record of the customer detail, but order detail shows all rows. How can I control it so the order detail shows only the detail record of the customer associated. Also how do I go to the second record and so forth. Please help. If this is not possible and if there are any alternates, please let me know. Thanks for your time and help.
Customer Number:
Customer Name:
Customer Address:
Order Detail:
Line number | Order No | Order description | Order StatusWhy don't you do this?
1) Build a dashboard prompt for Customer Number. and save to a PV.
2) Build a report with all the columns for customer and order (in Criteria View) with a filter for the PV to capture the dashboard prompt.
3) Build a pivot table with Customer Number and Customer Name in the Rows section. Put the Customer Address in the Measures section and change the Aggregation Rule to Max.
This will serve as the summary table showing only the information of the customer selected.
2) Build Pivot Table:2 with the Order details.
3) In the Compound Layout, put Pivot table one on the top and Pivot Table:2 below it.
When a customer is selected, you will have the customer data with the order details under it for that customer only. -
Hi Friend,
I'm quite new to Oracle BI. I have managed to create a request (from the answers section) that returns desired result, my problem is the formatting requirement of my report... the thing is i need to have three sections first of which is the header with such information as timestamp, company logo etc. the second section will contain the body of the report (which i have generated from query) and the last section will be footer.
How and where do i get the formatting power to achieve this? the dashboard seems to have very limited formatting power. Could you also point me a any documentation that could be helpful?
Many thanks in advanceSince no one mentioned it, I'll add this as well:
In the Compound Layout View, in the top left corner, there is a Print and PDF button. Click it and there are options to included a HEADER and FOOTER. You can add a timestamp for the report, date, page numbers, author, etc. See if these may help you as well. -
hi to all experts,
i have a requirement of listing purchase orders created only on Sunday and Saturday,please help me out im struggling with is report from 2 days. any sample code will helpHi,
Use as follows
Parameters : P_startdate type dats,
P_enddate type dats.
data: days_between type i.
ranges : r_days type dats.
days_between = p_startdate p_enddate.
do days_between times.
Call function module DATE_TO_DAY to see if the day is sat or sun.
Call function DATE_TO_DAY
Exporting
DATE = p_startdate
Importing
WEEKDAY = g_day.
*if the day is sat ir sun populate u'r ranges
<b>If g_day = Sat or g_day = Sunday.</b> Changed
R_days low = p_startdate.
R_days- high = .
R_days sign = I.
R_days option = EQ.
Append r_days.
Endif.
P_startdate = p_startdate + 1.
enddo.
Select * from vbak
into table lt_vbak
where erdat in r_days.
This works only in Enlgish logon
For better results I advise you to check the Function module DATE_TO_DAY and see the Text elements used for the Day texts.
And create in your program also similar text elements and compare using the text elements rather than hard coded stuff in one language.
Regards,
Sesh -
Help with pricing condition??
Hi Guyz,
I have a requirement with my client, the want to supply material to an external customer at an intercompany price(ZPR9). So whenever a sales order is created for this specific customer it should pull the price from Intercompany price(ZPR9). I have a option to create new pricing procedure and new pricing condition but this condition should pick up the price from ZPR9 so that we don't have to define the price manually like we do in PR00.
I can't able to assign ZPR9 to my new pricing procedure because ZPR9 is use for intercompany and this customer doesn not belong to any of our company code.So the situation is i have to define new pricing procedure and new pricing condition but this condition should pull the price from ZPR9.
when I see the details of ZPR9(condition type) its condition category is assigned as 'Y' which is customer reserve Y. I am not sure what this is.So could you plz advice how to handle this whole scenario. Appreciate your help.
thanks
Mohammed.mohammed,
This type of requirement is hard to handle and if you do it in a wrong way, whoever support this process later will have a hard time.
Anyway, I think one of the twisted ways of doing this is to use Alternative Culculation routine and put the logic to get the condition right out of price condition table (A*) of ZPR9. This is not flexible at all because this involves hard coding, so I do not recommend this.
The message I can get from your client is "We don't want to maintain the same condition here and there," but sometimes they have to deal with it, because the nature of the condition type is very different from business point of view.
Having said that, in order for them to have easier way to create the condition, maybe you can develop a custom ABAP to copy ZPR9 condition into the new condition you might be creating, and either have them run the program every time they update ZPR9 or schedule the job.
Hope this helps.
Akio -
Need help with report quering store procedure
I posted earlier today with my code, but I thought I should start a new thread and explain my scenario properly. Sorry for that.
have to find if a person visited a particular type of store, lets say pets mart in last six months. Every time a member of us go to store, the transction is saved into a database, which means that there are 100s of records for each member. I have few condition to apply (like flags). For example, if a member visited pets mart in last 6 months, we can send him cuopan for that store.
In my last code, I was using count(*) which takes for ever as everytime function is been called, it checks everything and then return more then one row. And my scenario requires only a flag kind of stuff, like either that member visited a particular store or not.
I am not sure what approach would be the best and optimised, obviously not the count one. I tried the case statment and it also returns more then one record (for each visit of the member) and I am looking for something like if it occured then Y else N.
My old code was something like that
function fnc (memberno, startdate, endate) return number as abc number;
begin
select count(*) into abc
from table a, table b
where a.zz = b.cc
and a.shop_date between startdate and endate)
and a.store_shoped in ('st01' , 'sto02' , 'sto3')
and a.store_location in ('loc1' , 'loc2');
return (abc);
end fnc;
I really appreciate if you can suggest me a better way to handle my situation.
Could someome please help me?Something involving WHERE EXISTS or add a ROWNUM = 1 filter:
function fnc (p_memberno in number, p_startdate in date, p_enddate in date)
return number
as
abc number;
begin
select count(*)
into abc
from dual
where exists (select null
from table a, table b
where a.zz = b.cc
and ?? = p_memberno
and a.shop_date between p_startdate and p_enddate
and a.store_shoped in ('st01' , 'sto02' , 'sto3')
and a.store_location in ('loc1' , 'loc2'));
return (abc);
end fnc;With either approach, the count will return only 0 or 1 and will stop at the first match it finds. -
Help with Report Script please :(
Hi,
I'm trying to write a report script with a slight calculation and would really appreciate some help.
Ideally I want to create a report where I only get the Account and Value. I select all my members but I need a calculation on the Entity dimension. Here's what i am trying to achieve:
(All selected members for all Entities + All selected members for all Entities in group RIA-IFRS REPORTING ADJS. ) Yes I'm duplicating the members of group RI-IFRS REPORTING ADJS.
So account 100 for all Entities = 50
account 100 for all Entities in RI-IFRS REPORTING ADJS. = 25
I want to display account 100 grouped as 75 without showing a line for each entity.
This is what I have so far but it doesn't work right:
ROWREPEAT
SUPCOLHEADING
SUPCOMMAS
SUPHEADING
SUPBRACKETS
SUPEMPTYROWS
TABDELIMIT
MISSINGTEXT "#mi"
DECIMAL 2
NOINDENTGEN
<PAGE ( Years, Version, Currency, Scenario, InterCompany, "Entity", "Cost Center","Set of Books","Reporting")
"FY10" "Current" "Currency" "Actual" "InterCompany" "Entity" "Cost Center" "AB_CON_USD" "Reporting"
<ROW ("Account")
<LINK(<DESCENDANTS("Total Balance Sheet Accounts","Lev0,Account"))
{ CALCULATE ROW "Entity" = "Entity" + "RI-IFRS REPORTING ADJS."})
<COL (Period)
"Dec"
!Dreamscapeuk wrote:
Hi Robert, I wasn't getting any data, but I managed to figure that out. Basically I created 2 columns with the values I needed and then added them up with a calc cloumn. However I can't get my essbase substitution variables working. So I created a substitution variable called CurrQtr and set this to Quarter3. In my script I'm using this @CurrQtr as a period however it doesn't use it as it's just giving me the total for the Period dimension. Any help?
Here's the script:
ROWREPEAT
SUPCOMMAS
SUPBRACKETS
SUPEMPTYROWS
TABDELIMIT
MISSINGTEXT ""
DECIMAL 2
NOINDENTGEN
<PAGE ( DataSrc, Years, Version, "P&L Type", Currency, Scenario, InterCompany, "Cost Center","Set of Books","Reporting")
"DataSrc" "FY10" "Current" "No_Type" "USD" "Actual" "InterCompany" "Cost Center" "AB_CON_USD" "No_Cost_Type"
<COLUMN (Period)
@CurrQtr
WWL "RIA-IFRS REPORTING ADJS."
CALCULATE COLUMN "Gaap" = 1 - 2
ORDER 0,3,1,2
<ROW (Account)
<LINK(<DESCENDANTS("Global Accounts","Lev0,Account"))
In my script I'm using this @CurrQtr as a period however it doesn't use it as it's just giving me the total for the Period dimension. Any help?
I don't understand this...
*<COLUMN (Period)*
* Qtr3 WWL "RIA-IFRS REPORTING ADJS."*
have you tried like this.??
Edited by: Prabhas on Feb 1, 2011 12:05 AM -
I've encountered another bump in the road. Can someone point me in the right direction in order to get help creating a report based on dates input by a user?
I have a report that keeps track of outages based on application. I now need to break down that report and display the percentage of availability for each application and by each day between the dates entered by a user.
I have been unsuccessful at finding any information on how to get this accomplished.Willi, I have a question concerning your query.
I have a start date and end date in my table that keeps track of outages based on application. How would I incorporate that into your query, in addition I am not having any luck at the breakdown by day. When I attempt to run the query changing my attributes I get a column with hours = 24 and date = the start date of my outage. Please help. -
I am very confused and frustrated with this whole process. I got Captivate to build a on line teaching tool for my office employees. After creating the training I found that you have to have a place to host it. I found a web host, and made a website and uploaded the program to it. I got captive 7 so that I could make use of the reporting tool. (I need to be able to track which employees did the training). I then found that when I upload the results to actrobat.com, the user needs an adobe ID and password. So I went on actrobat and entered all my employees as name, and employee number @ adobe.com It let me enter everyone of them with no issues whatsoever. Until I had some of them try to take the training. They were able to open my training and complete the whole thing. When they went to post results it asked fro their adobe ID and password. Armed with the ID and password I gave them it states that the Id email was not verified. I cannot find a way to verify it. Should be an easy way to upload employees that you need to track? Please help, I am not a computer guy, I am a safety guy and I am lost.
RBI don't normally use Acrobat.com as an LMS, but from memory Adobe has some kind of email verification mechanism whereby once a person registers an email address as their Adobe ID then they receive a verification email sent to that address and they're expected to confirm they are a real person by clicking a link or something. Is it possible that your employees did not receive this verification email or that it was picked up and ditched by your company's antivirus software thinking it was a virus? If their email addresses were never verified then that would explain why they were not able to log in just because you set up their Adobe IDs.
-
Hi
I need to have a condition in the which gives available hours , considering the tester whose decommision date is not greater than the day_date.
I have 4 tables :
3 dimension tables and 1 fact table
dim_date : has all possible dates in all formats
dim_tester : has the all the tester values , and its inception ( when the tester was bought) and decommision(when the tester was decommsioned or removed)
dim_time : which has hour seg prime values , and the available hours for a day
Fct_tester_utilization : this table has the keys to link all the dimension tables and the logged hours (used hours) details.
i need to calculate available hours based on the inception date and decommision date.
A tester is considered to be online if its between inception and decommsion date, and available hours has to be calculated for all the testers online, if the tester is decommisioned then it has the date value of when its decommsioned if not it has the far value like 12/31/9999.
Here is the ddl and some sample data
CREATE TABLE EDW_DIM.DIM_DATE
DATE_KEY NUMBER(*, 0)
, DAY_DATE DATE
, SUN_WEEK_START_DATE DATE )
Sample Data:
DATE_KEY DAY_DATE SUN_WEEK_START_DATE
3260 05-DEC-10 05-DEC-10
3261 06-DEC-10 05-DEC-10
3262 07-DEC-10 05-DEC-10
3263 08-DEC-10 05-DEC-10
3264 09-DEC-10 05-DEC-10
3265 10-DEC-10 05-DEC-10
3266 11-DEC-10 05-DEC-10
3267 12-DEC-10 12-DEC-10
3268 13-DEC-10 12-DEC-10
3269 14-DEC-10 12-DEC-10
3270 15-DEC-10 12-DEC-10
3271 16-DEC-10 12-DEC-10
3272 17-DEC-10 12-DEC-10
3273 18-DEC-10 12-DEC-10
3274 19-DEC-10 19-DEC-10
3275 20-DEC-10 19-DEC-10
3276 21-DEC-10 19-DEC-10
3277 22-DEC-10 19-DEC-10
3278 23-DEC-10 19-DEC-10
3279 24-DEC-10 19-DEC-10
3280 25-DEC-10 19-DEC-10
3281 26-DEC-10 26-DEC-10
3282 27-DEC-10 26-DEC-10
3283 28-DEC-10 26-DEC-10
DIM_TESTER:
CREATE TABLE EDW_DIM.DIM_TESTER
TESTER_KEY NUMBER(10, 0) NOT NULL
, TESTER_NAME VARCHAR2(25 BYTE)
, TESTER_CATEGORY VARCHAR2(25 BYTE)
, TESTER_INCEPTION_DATE DATE
, TESTER_DECOMMISSION_DATE DATE
Sample data:
TESTER_KEY TESTER_NAME TESTER_CATEGORY TESTER_INCEPTION_DATE TESTER_DECOMMISSION_DATE
401 RFR6155-2 Bench 02-NOV-06 31-DEC-99
402 RFR6250-2 Bench 02-NOV-06 25-SEP-09
403 RFR6250-3 Bench 02-NOV-06 31-DEC-99
404 RFR6250-7 Bench 02-NOV-06 31-DEC-99
405 RFR6275-2 Bench 02-NOV-06 27-MAY-08
406 RFR6275-3 Bench 02-NOV-06 31-DEC-99
407 SMOKY Bench 02-NOV-06 31-DEC-99
408 SUGAR Bench 02-NOV-06 31-DEC-99
409 ZIF-02 Bench 02-NOV-06 31-DEC-99
410 ZIF-03 Bench 02-NOV-06 25-SEP-09
411 ZIF-04 Bench 02-NOV-06 25-SEP-09
412 ZIF-18 Bench 02-NOV-06 31-DEC-99
413 ACDC ATE 05-NOV-03 09-DEC-06
414 AEROSMITH ATE 05-FEB-05 15-OCT-09
416 BEATLES ATE 10-APR-06 02-OCT-07
417 BLAINE SIMULATOR 14-MAY-03 31-DEC-09
418 BURNS SIMULATOR 02-SEP-03 31-DEC-09
419 CAPOTE ATE 16-JUN-05 31-DEC-99
420 CHICO ATE 03-JUN-03 31-DEC-99
421 CLASH ATE 01-APR-04 09-NOV-10
422 DAPHNE ATE 29-DEC-04 31-DEC-99
424 EXACTA ATE 24-MAR-03 31-DEC-99
425 FOGHAT ATE 16-JUN-05 31-DEC-99
427 GRATEFULDEAD ATE 05-MAR-03 05-NOV-07
428 GRENACHE ATE 06-JAN-06 31-DEC-99
431 IDITAROD ATE 24-MAR-03 31-DEC-99
432 IRONMAIDEN ATE 20-JUL-03 30-JAN-07
434 LEDZEPPELIN ATE 01-FEB-05 07-NOV-10
531 RFALAB-037 Bench 01-SEP-07 31-DEC-99
532 UFLEX1 ATE 18-SEP-07 14-OCT-08
DIM_TIME
CREATE TABLE EDW_DIM.DIM_TIME
TIME_KEY NUMBER
, HOUR_SEG_PRIME VARCHAR2(50 BYTE)
Sample Data:
TIME_KEY HOUR_SEG_PRIME
1 AM-OS:12 AM - 7 AM
61 AM-OS:12 AM - 7 AM
121 AM-OS:12 AM - 7 AM
181 AM-OS:12 AM - 7 AM
241 AM-OS:12 AM - 7 AM
301 AM-OS:12 AM - 7 AM
361 AM-OS:12 AM - 7 AM
421 AM-Eng:7 AM - 9 AM
481 AM-Eng:7 AM - 9 AM
541 Prime Time:9 AM - 7 PM
601 Prime Time:9 AM - 7 PM
661 Prime Time:9 AM - 7 PM
721 Prime Time:9 AM - 7 PM
781 Prime Time:9 AM - 7 PM
841 Prime Time:9 AM - 7 PM
901 Prime Time:9 AM - 7 PM
961 Prime Time:9 AM - 7 PM
1021 Prime Time:9 AM - 7 PM
1081 Prime Time:9 AM - 7 PM
1141 PM-Eng:7 PM - 10 PM
1201 PM-Eng:7 PM - 10 PM
1261 PM-Eng:7 PM - 10 PM
1321 PM-OS:10 PM - 12 AM
1381 PM-OS:10 PM - 12 AM
FCT_TESTER_UTILIZATION:
CREATE TABLE EDW_FACT.FCT_TESTER_UTILIZATION
TESTER_KEY NUMBER(10, 0)
, DIM_DATE_KEY NUMBER(10, 0)
, DIM_TIME_KEY NUMBER(10, 0)
, LOGGED_TIME NUMBER(10, 0)
Sample Data:
DIM_DATE_KEY DIM_TIME_KEY TESTER_KEY LOGGED_TIME
3260 1 345 60
3260 1 347 60
3261 1 707 60
3261 1 708 60
3261 1 709 60
3261 1 710 60
3261 1 711 60
3261 1 713 60
3261 1 715 60
3261 1 722 60
3261 1 723 60
3261 1 724 60
3261 1 726 60
3261 61 345 60
3261 61 355 60I have calculated available hours :
Here is my query :
SQL SELECT
B.HOUR_SEG_PRIME,
t.tester_name,
TRUNC(c.DAY_DATE + 1,'IW')-1 AS Week,
c.DAY_DATE,
t.tester_inception_date,
t.tester_decommission_date,
CASE
WHEN B.HOUR_SEG_PRIME = 'AM-OS:12 AM - 7 AM' THEN 0.292
WHEN B.HOUR_SEG_PRIME = 'AM-Eng:7 AM - 9 AM' THEN 0.083
WHEN B.HOUR_SEG_PRIME = 'Prime Time:9 AM - 7 PM' THEN 0.417
WHEN B.HOUR_SEG_PRIME = 'PM-Eng:7 PM - 10 PM' THEN 0.125
WHEN B.HOUR_SEG_PRIME = 'PM-OS:10 PM - 12 AM' THEN 0.083
END
)* 24 AS "Available_Hours"
FROM dim_time B join fct_tester_utilization f
on f.dim_time_key = B.time_key
join dim_date c
on f.dim_date_key = c.date_key
join dim_tester t
on t.tester_key = f.tester_key I have not written a where condition in the above query , could any one please assist me in writing query considering the above mentioned conditions for inception and decommision dates?
Output with the above query:
WEEK TESTER_NAME DAY_DATE INCEPTION_DATE DECOMMISION_DATEAVAILABLE_HOURS
12/5/2010 BROWN 12/6/2010 11/2/2006 12/31/9999 10.01
12/5/2010 CHICO 12/11/2010 6/3/2003 12/31/9999 3.00
12/5/2010 MEGATRACE 12/8/2010 8/20/2009 8/27/2010 10.01
12/5/2010 MEGATRACE 12/9/2010 8/20/2009 8/27/2010 10.01
12/5/2010 MEGATRACE 12/10/2010 8/20/2009 8/27/2010 10.01
12/5/2010 MERLOT 12/5/2010 3/24/2003 12/31/9999 7.01
12/5/2010 MEZCAL 12/5/2010 6/2/2006 12/31/9999 7.01
12/5/2010 OUZO 12/11/2010 4/23/2008 12/31/9999 1.99
12/5/2010 RFALAB-080 12/9/2010 1/17/2009 12/31/9999 10.01
12/5/2010 RFR6275-2 12/8/2010 11/2/2006 5/27/2008 10.01
12/12/2010 MEGATRACE 12/13/2010 8/20/2009 8/27/2010 10.01
12/12/2010 MEGATRACE 12/16/2010 8/20/2009 8/27/2010 10.01
12/12/2010 MEZCAL 12/18/2010 6/2/2006 12/31/9999 7.01
12/19/2010 MARCO 12/25/2010 3/24/2003 12/31/9999 7.01
12/19/2010 MEGATRACE 12/21/2010 8/20/2009 8/27/2010 10.01
12/19/2010 MEGATRACE 12/22/2010 8/20/2009 8/27/2010 10.01
12/19/2010 MERLOT 12/22/2010 3/24/2003 12/31/9999 10.01
12/26/2010 MALBEC 12/27/2010 4/14/2006 12/31/9999 10.01
12/26/2010 MARCO 1/1/2011 3/24/2003 12/31/9999 7.01
12/26/2010 MEGATRACE 12/28/2010 8/20/2009 8/27/2010 10.01In the above output the tester MEGATRACE has already been decommsioned on 8/27/2010 but still there is a day_date , i should not calculate available hours for the testers which have already been decommisoned.
Expected Output :
WEEK TESTER_NAME DAY_DATE TESTER_INCEPTION_DATE TESTER_DECOMMISION_DATE AVAILABLE_HOURS
12/5/2010 BROWN 12/6/2010 11/2/2006 12/31/9999 10.01
12/5/2010 CHICO 12/11/2010 6/3/2003 12/31/9999 3.00
12/5/2010 MERLOT 12/5/2010 3/24/2003 12/31/9999 7.01
12/5/2010 MEZCAL 12/5/2010 6/2/2006 12/31/9999 7.01
12/5/2010 OUZO 12/11/2010 4/23/2008 12/31/9999 1.99
12/5/2010 RFALAB-080 12/9/2010 1/17/2009 12/31/9999 10.01
12/12/2010 MEZCAL 12/18/2010 6/2/2006 12/31/9999 7.01
12/19/2010 MARCO 12/25/2010 3/24/2003 12/31/9999 7.01
12/19/2010 MERLOT 12/22/2010 3/24/2003 12/31/9999 10.01
12/26/2010 MALBEC 12/27/2010 4/14/2006 12/31/9999 10.01
12/26/2010 MARCO 1/1/2011 3/24/2003 12/31/9999 7.01
12/26/2010 MEGATRACE 8/26/2010 8/20/2009 8/27/2010 10.01The last day_date for Megatrace should not be greater than the decommsionned date.Please Help
Edited by: user13502884 on Feb 10, 2011 11:11 AM
Edited by: user13502884 on Feb 10, 2011 1:23 PM
Edited by: user13502884 on Feb 10, 2011 1:24 PMPeter Gjelstrup wrote:
user13502884 wrote:
Please let me know if my question is not clear ....My personal opinion: Too much work to be done, turning you sample data into something usuable. Had you posted it as insert statements, several people might already be working at your issue.
Right now, I haven't even read it to the end..
Sorry to say
PeterThere is so much of data for a week , so i was unable to figure out how much sample data i can post , please look into the last set of sample data obtained by my query , which gives an idea of what i am looking into...
is there a way where i can send some excel files? -
Help with report script query please
Hi,
I'm trying to write a report script with a slight calculation and would really appreciate some help.
Ideally I want to create a report where I only get the Account and Value. I select all my members but I need a calculation on the Entity dimension. Here's what i am trying to achieve:
(All selected members for all Entities + All selected members for all Entities in group RIA-IFRS REPORTING ADJS. ) Yes I'm duplicating the members of group RI-IFRS REPORTING ADJS.
So account 100 for all Entities = 50
account 100 for all Entities in RI-IFRS REPORTING ADJS. = 25
I want to display account 100 grouped as 75 without showing a line for each entity.
This is what I have so far but it doesn't work right:
ROWREPEAT
SUPCOLHEADING
SUPCOMMAS
SUPHEADING
SUPBRACKETS
SUPEMPTYROWS
TABDELIMIT
MISSINGTEXT "#mi"
DECIMAL 2
NOINDENTGEN
<PAGE ( Years, Version, Currency, Scenario, InterCompany, "Entity", "Cost Center","Set of Books","Reporting")
"FY10" "Current" "Currency" "Actual" "InterCompany" "Entity" "Cost Center" "AB_CON_USD" "Reporting"
<ROW ("Account")
<LINK(<DESCENDANTS("Total Balance Sheet Accounts","Lev0,Account"))
{ CALCULATE ROW "Entity" = "Entity" + "RI-IFRS REPORTING ADJS."})
<COL (Period)
"Dec"
!For the benefit of anyone else looking for this answer, I figured it out.
//To do this it's better to create 2 columns:
<COLUMN (Period)
Q4
WWL "RIA-IFRS REPORTING ADJS."
//Then add the 2 columns up:
CALCULATE COLUMN "Q4 Gaap" = 1 - 2
//And order the column how you want
ORDER 0,3,1,2
Hope this help someone out.
http://atmyplace.co.uk
Maybe you are looking for
-
How i can connect my imac to my apple tv
cannot connect my computer to the apple tv
-
Connect apple tv to DVR or SATELITE BOX?
can I connect my apple tv to my satelite box or to my blue ray player?
-
PC Crashed-How do I get my music from my iPhone back onto PC?
My PC crashed a few weeks ago. I have had it reformatted and have reinstalled itunes. When I hook up my iPhone and choose "transfer purchases from Amanda's iPhone" it only pulls over a few random songs (and I have purchased many, many more). How do I
-
Both Shift keys are not working
Hi, My laptop both the shift keys stopped working suddenly,I tried few possibilities like holding shift keys alternately and at a time for few minutes, and along with Ctl key,Alt key, but not solved my problem.Please suggest me.......as soon as possi
-
I purchased a T.V. online and forgot to check my reward points prior to checkout and payment. Can the transaction be voided at the register and reinstated using the certificate also. Points on the account were not received from current transaction an