How to get --Last date of the Last value .
Dear All,
I have a report like
Material Country Current Price
1112----- Singapore -
100
1112----- Japan -
120
1112----- Malesia -
99
Here current price is Last Value of the particular Material on particular Date.
This I can get based on Key figure Aggregation ( Last Value and reference Character 0CALDAY ), It is giving the last Value of the Particular Material.
Now my user wants to see Last date of the value ( Date of the Value )
Example :-
Material Country Date --Current Price
1112----- Singapore -
01/04/2008 -- 100
1112----- Japan -
04/05/2008 -- 120
1112----- Malesia -
05/05/2008 -- 99
If I drill down the date in my report it is showing all dates , my user wants to see only last date .
Hope some one has solved this issue , please help me to solve this issue.
Regards,
SHAIK.
I have created a keyfigure with date as a data type.
In aggregation tab, I selected aggregation Maximum.
Upto DSO, data is Loaded perfect. Ok.
I added the same key figure in cube , When I am trying to Activate the Transformation,
It is giving Error message.
Rule 17 is invalid and is being deleted. The reason for this is that a field or InfoObject that is used in rule 17 has been deleted in the source or target of the transformation ODSO ZPL_DSO1 -> CUBE ZPLATT_C (0GH6MHANQ2J79LXZBLGIJ9ZK9LWHK6RS)
Plz Advice.
Regards,
SHAIK
Edited by: shaik on May 7, 2008 5:46 PM
Similar Messages
-
How to get a date of end last aggregation made in an essbase ASOcube....
Hallo all,
maybe somebody has desided a problem i have:
i need to show in a report, made in Answers Oracle BI EE for a multidimensional essbase ASO cube, a date of end last aggregation in a cube.
Is it possible to get a date of end last aggregation in an essbase ASO cube
Thank a lot for "helpful help"))Off the top of my head you could probably scrape the application log using perl or some other programming language. Look for something like:
Successfully built [xx] new aggregate views. Elapsed time [xx.xx] sec
Other than that, not sure. -
How to get warning by using the previous value of the column and new value
Hi all,
Suppose the column A has the true and when I click on button which also sets the value of the column as true I should dispaly warning that column a is already true.How can I achieve this.How to store the original value of the column and then check wirth the new value.
Thanks in advance.You dont have to store the value anywhere
You can do this from setMethod of EOImpl.java
eg:
void setAttributeXXX(String Value)
// value contains new value
// getAttributeXXX() contains oldValue
if (value.equals(getAttributeXXX()))
// Verify value is > 0 if (value.compareTo(0) <= 0)
throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT, // indicates EO source
getEntityDef().getFullName(), // entity name
getPrimaryKey(), // entity primary key
"AttributeXXX", // attribute Name
value, // bad attribute value
"AK", // nessage application short name
"FWK_TBX_T_EMP_SALARY_REQUIRED"); // message name
setAttributeInternal(AttributeXXX, value);
--Prasanna -
Yesterday, I updated my computer. I have a excel document that I use everyday for work and saved the document prior to doing such. After updating, I had to restart the computer. Now when I open that excel document, it brings me back to a copy of the program I created over 4 weeks ago. How do I get the most recent copy which had over 4 weeks of work in it?
ThanksGood morning Gandrin
There is quite a difference between syncing and back-up and they are different features in iTunes, although some people combine them together.
1. The first thing that happens when you connect your device is that a photo manager asks if you want to offload your photos. I always do this because it is the most valuable way to back-up your photos only.
2. Then Itunes will come up and if you have automatic sync turned on it will begin to sync FROM your computer to your device. It's a one-way sync and is the primary way to keep photos, music and some apps managed on your device. New apps are synced onto your Itunes app tab. If you add or delete items in your iTunes folders then those changes are synced to your device. I always check to make sure my new apps are now in my iTunes library and specific device tab.
4. There is also a back-up step where you can back your device onto your computer. I think this is the step that should have been done when you got your new PC. It doesn't save the apps here but does save their setting and data. I prefer to set this up to be a manual back-up process.
http://support.apple.com/kb/HT4946.
5. There is also a a "Automatically sync new apps checkbox in your itunes device apps tabs. That should be checked "on".
6. If the missing apps were purchased through iTunes then I think you can download them again (make sure you use the same Apple Id). If you then resync with itunes those apps should appear in iTunes for you.
Maybe there is something in my rambling that will help -
How to get this data in the WebI
Hi There
i have a WebI report, the data looks like this
userName Type
Mike DT
Mike NB
Susan DT
Colleen DT
Colleen NB
i only need to pick up Mike and Colleen, cause only they have both DT and NB, how can i get the data like this?
thanksCreate a variable as below:
[ctgt1type]=Count([type]) ForEach([username]) In Report>1
Then create a filter with this condition:
[ctgt1type]=1
This might work. I tried this with the Islands marketing universe selecting customer and country to display only customers with multiple countries. But your original soulton is more elegant and with report level filters more development and maintenance efforts are required
Edited by: Uvee on Nov 2, 2011 2:24 PM -
How to get start date of the period for a given date from cube
I have a situation where i need to find the start day of the period for a given date. is there a way to know that. i want to use that in my report. i enter the date from my report(i have date parameter), depends on the date, i want to display the start day
of the period. how can i write expression for that in my report?
ramHi ramprasad74,
According to your description, you are using Analysis Services as a data source for the report, the cube has hierarchy: Fyear, FQuarter, FPeriod, fweek, Fdate. You want to add a date parameter to the report, after you changed value of the parameter, the
report will return the first day of FPeriod.
To achieve your goal, we need to add a parameter to the report, then use the parameter in mdx query. For detail information, please refer to the following steps:
In the Report Data pane, right-click on a dataset created from a SQL Server Analysis Services data source type, and then click Query. The MDX query designer opens in Design mode.
On the toolbar, click Design to toggle to Query mode.
On the MDX query designer toolbar, click Query Parameters symbol. The Query Parameters dialog box opens.
In the Parameter column, click <Enter Parameter>, and then type the name of a parameter.
In the Dimension column, choose a value from the drop-down list.
In the Hierarchy column, choose a value from the drop-down list.
In the Default column, from the drop-down list, select a single value.
Click OK.
In query designer dialog box, type the mdx query like below:
with member [Measures].[FirstChild]
as
[Date].[Fiscal].currentmember.parent.firstchild.name
select {[Measures].[FirstChild]} on 0,
[Date].[Fiscal].[Date].members on 1
from
( SELECT ( STRTOSET(@ParameterName, CONSTRAINED) ) on 0
from
[Cube]
Here are relevant threads you can reference:
https://social.msdn.microsoft.com/forums/sqlserver/en-US/c7146ac3-40ea-4d53-b321-c707aebbd405/how-to-pass-date-parameter-to-mdx-query
https://social.msdn.microsoft.com/forums/sqlserver/en-US/fd12a865-bc90-4a65-af42-ce38a8cfa29b/pass-date-time-parameter-to-mdx-query-ssrs
If you have any more questions, please feel free to ask.
Thanks,
Wendy Fu
If you have any feedback on our support, please click
here. -
How to get pixel data in the format I want
I'm writing a format plug-in and am having some difficulty getting the pixel data from photoshop in the format I want. From what I gather from the documentation in the SDK I need to specify the following to tell photoshop what format to deliver my pixels in:
theRect
loPlane
hiPlane
data
colBytes
rowBytes
planeBytes
planeMap
I specify all of these appropriately for a 32 bit rgba8888 uncompresssed image and it works just fine... but ONLY if the image I load in the first place matches the format I am requesting. If the image I load is some other format, like a 256 color image with a palette, gFormatRecord->advanceState() just fails with a nebulous -30500 error code (formatBadParameters) instead of delivering pixel data.
So my big question is this: Is Photoshop capable of doing the conversion and delivering the pixels to my format plug-in in my requested format? If it CAN do it, what might I be doing wrong? Please help! Thanks!!You noticed you can use the planeMap[] array to permute the channels. It's not so obvious that Photoshop should offer generalised bit depth/colour space/palette processing. It can be argued that's the role of the plugin itself: to mediate between Photoshop's native image data (which it does offer conveniently) and whatever arbitrary image format the user requires. At least, that's what most of
my plugins do.
Sure, there are a few obvious conversions, but you have to stop somewhere... Sooner or later you'll be implementing stuff on the Photoshop side that
should be in a plugin. I don't have a big problem with the line drawn in the current API. -
How to get distinct data if the query contains a column with Long Datatype?
How can we select distinct records based on a LOng column
From the Oracle 9i SQL Reference:
LONG columns cannot appear in certain parts of SQL statements:
n GROUP BY clauses, ORDER BY clauses, or CONNECT BY clauses or with the
DISTINCT operator in SELECT statements
n The UNIQUE operator of a SELECT statement
n The column list of a CREATE CLUSTER statement
n The CLUSTER clause of a CREATE MATERIALIZED VIEW statement
n SQL built-in functions, expressions, or conditions
n SELECT lists of queries containing GROUP BY clauses
n SELECT lists of subqueries or queries combined by the UNION, INTERSECT, or
MINUS set operators
n SELECT lists of CREATE TABLE ... AS SELECT statements
n ALTER TABLE ... MOVE statements
n SELECT lists in subqueries in INSERT statements -
How to find a data with the minimum value I get without using sub query
Currently, I manage to get a record by using subquery to find the minimum number, eg:
SELECT TAccTrn.ASysCde
FROM TAccTrn
WHERE TAccTrn.AAccTrnNum=(SELECT Min(TAccTrn.AAccTrnNum)
FROM TAccTrn, TDbtSchCltDtl
WHERE TDbtSchCltDtl.ASrcRefId=TAccTrn.ASrcRefId
AND TDbtSchCltDtl.ASrcRefSubId=TAccTrn.ASrcRefSubId
AND TDbtSchCltDtl.ASrcRefSeq=TAccTrn.ASrcRefSeq)
Is there any more idea without using the subquery?Hi ,
What about using an in-line view and the row_number () analytic function...????
Here is an example....
SQL> select * from emp;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 18/12/1980 800,00 20
7499 ALLEN SALESMAN 7698 20/02/1981 1600,00 300,00 30
7521 WARD SALESMAN 7698 22/02/1981 1250,00 500,00 30
7566 JONES MANAGER 7839 02/04/1981 2975,00 20
7654 MARTIN SALESMAN 7698 28/09/1981 1250,00 1400,00 30
7698 BLAKE MANAGER 7839 01/05/1981 2850,00 30
7782 CLARK MANAGER 7839 09/06/1981 2450,00 10
7788 SCOTT ANALYST 7566 18/04/1987 3000,00 20
7839 KING PRESIDENT 17/11/1981 5000,00 10
7844 TURNER SALESMAN 7698 08/09/1981 1500,00 0,00 30
7876 ADAMS CLERK 7788 21/05/1987 1100,00 20
7900 JAMES CLERK 7698 03/12/1981 950,00 30
7902 FORD ANALYST 7566 03/12/1981 3000,00 20
7934 MILLER CLERK 7782 23/01/1982 1300,00 10
14 rows selectedUsing a solution like the one you don't want ...(a subquery) i would write....
SQL> select ename from emp
2 where hiredate=(select min(hiredate) from emp)
3 /
ENAME
SMITHWhereas , using an in-line view....
SQL> select ename from
2 (
3 select ename,row_number() over(order by hiredate asc) row_num from emp
4 )
5 where row_num=1
6 /
ENAME
SMITHIs it acceptable...????
Regards,
Simon -
This is really a SQL question. How to get a record for the max value
I have a table ZTX with the following fields and values
VBELN POSNR SEQNR DESCRIPTION
3001 10 001 Desc1
3001 10 002 Desc2
3001 10 003 Desc3
I want to create a query so that I can join tables VBAK-VBELN, and VBAP and ZTX. So that I only get the row of ZTX which has max (SEQNR) i.e 003 in this case. How can I write the SQL statement. Is there a way to write a single SQL statement which can retrieve from all three table VBAK, VBAP and ZTX maybe with a subquery or do I really have to first take the results of VBAK and VBAP join into internal table then fire query on ZTX.
Thanks for readingSomething like this
Select * into table my_table from ztx as z
join vbak as b on b~vbeln = z~vbeln
join vbap as p on p~vbeln = z~vbeln " maybe posnr also?
where
z~seqnr = ( select max( seqnr ) from ztx where vbeln = z~vbeln ). -
Select statement for last day of the last quarter and first quarter
Anybody provide me the single select statement which should result the last day of the last quarter and last day of current quarter?
Ex: Select last date of the last quarter,last day of current quarter from XYZ(DUAL...)
Thanks in AdvanceHi,
Here's one way:
SELECT TRUNC (SYSDATE, 'Q') - 1 AS prev_qtr_end
, ADD_MONTHS ( TRUNC (SYSDATE, 'Q') - 1
, 3
) AS this_qtr_end
FROM dual;TRUNC (dt, 'Q') returns the first day of the quarter containing dt.
Subtract one day from that, and you have the last day of the previous quarter.
Add 3 months to that, and you have the last day of the current quarter. ADD_MONTHS (dt, n) will always return the last day of a month if its first argument, dt, is the last day of a month. -
How to get the date of the last transaction in a mounted standby database?
Hello,
Could you tell me how to get the date of the last transaction recorded in a MOUNTED standby database?
The following query doesn't work...because the database is not open...
select scn_to_timestamp(current_scn) from v$database;
ThanksHi,
You should be able to run the following command in mounted mode on standby database.
select current_scn from v$database;
then run the following to convert it to timestamp.
select scn_to_timestamp(99999999) from dual; *<-- Replace here the SCN value you got above. This needs to be run on the primary database due to standby database in mount mode.*
Alternatively you can also check at the alert.log file to find the last scn which has been applied.
Regards
Edited by: skvaish1 on Jan 19, 2010 11:15 AM -
How to get the date for the last day of a week?
Is there a easy way to get the date for the last day of week?
eg a week starts on monday and end on sunday
January 11, 2005 is the start date for the week
January 17, 2005 is the end date for the week
or
say
February 26, 2003 is the start date for the week
March 5, 2003 is the end date for the week
I just need a simple way of figuring that out....
I figured out how to get the start date for the week but just can't get the latter..
formatting of the date is not of a concern.. that I know how to do
thanks in advanceHow about something like the following?
Calendar someDay = new GregorianCalendar(2005,0,11);//2005 Jan, 11
//Note above that January is 0, not 1, as counting starts from 0.
someDay.add(Calendar.DAY_OF_MONTH,6); //add 6 days
java.util.Date lastDayOfWeek = someDay.getTime();
//If someDay was the start of a week, lastDayOfWeek should now be
//the last day of that week.
System.out.println(lastDayOfWeek.toString() ); -
How can i get the date of the last update of one PL/SQL package ?
Hello,
How can i get the date of the last update of a PL/SQL package
named MYPACKAGE ?
Thanks in advance ! ;-)to get the timestamp,last ddl time of object
select timestamp,last_ddl_time from user_objects
where object_name='<package name>';
this will give you last transaction time ,date of object -
Hello....
I want to get the last date of the month.
For example, the last date of Jan is 31.
How can I get the last date of the particular month and year ????
Thanks for help.
GloriaHi Gloria
1. How can I compare the date???date1.compareTo(date2)
where date1 and date2 is a java.util.Date Object
will return 0 if it is the same date
or
date1.after(date2)
where date1 and date2 is a java.util.Date Object
will return true if date1 is after date2
(the same for date1.before)
2. How can I change the date format into yyyymmdd format???? I just want the year, month and date.try the java.text.SimpleDateFormat Object
new SimpleDateFormat("yyyymmdd").format(yourdate)
Hope this help.
Please also have a look at a calendar I wrote, (maybe it help)
demo & source :
http://www.geocities.com/globe_software/java/components/
globe_sa
Maybe you are looking for
-
I am planning a 5k obstacle course run and would like to be able to layout the course on the property using my ipad - looking for a good app - any suggestions?
-
ADF: Read only user access to application role on BTFs
Hi, My JDeveloper version is 11.1.1.5 I am trying to create read only users in my adf application. But I am unable to give read only permissions to the user on bounded task flows/ .jssf page which have editable tables and forms. I have searched for t
-
Fixed vendor table in source list
Hi Friends, We understand that EORD is the table for Source List.Fixed Vendor check which we maintain in source list (transaction ME01) does not get saved in the table EORD.It get saved at some other table,Can you please let me know the table name fo
-
Problem About Focus transfer in swing JTable Cell
I open a JDialog in KeyPressed Event of Cell of the JTable,when the JDialog closed, I cannot set the Focus to next Cell in my code. the focus was set on the ToolBar(I don't write it in my code). key pressed void this_keyPressed(KeyEvent e) { String t
-
Hi, Our MDT server is acting strange! I have previously had this system running without problem - i could both capture and deploy computers as is and no changes have been made to mdt. But my latest capture does not work. When i capture my reference m