How can i use key figure in rows
Dear all
I had a keyfigure Total delivery date in days how can i use this field in row.
hi
Create a structure and add this keyfigure to it in Row, But if you do this you dont have keyfigures in Columns..
Hope this helps...
Dev
Similar Messages
-
How can we restrict Key Figure in the BI System
Hi All,
Can any one explain How can i restrict key figures in BI system.
So when i create a query a specific user can only execute it if a specific key figure is a part of query otherwise he is not allowed to execute a query.
For Example:
A user TEST123 is allowed to execute a query with keyfigure Quantity he is not allowed to execute the query if any other key figure is present in the query
Regards,
DeepakHay Diogo,
Bravo...
Your suggetions always work for me. The scenario was that
A user TEST_PLD08 should only allow to see output for the querys which consist of the keyfigure PLDQUACMP and not for other keyfigures while other user TEST_PLD07 is allowed to see the output for querys consist of any of the keyfiguers.
so I have assign a authorization profile PLD_TEST07 to the user TEST_PLD08 with KeyFigures authorization as mentioned below and it is working fine
I EQ :
I EQ PLDQUACMP
You can forward me more scenarios like this if you can think of more it will be really helpful for me
Regards,
Deepak -
Reporting Agent - Print Layout - Issue in Displaying Key Figures in Rows
Hi,
We have issue while printing reports using Reporting Agent. As part of Query Definition we have Structure of key figures in Rows. But while creating Reporting Agent , in Print Layout option Under Table Rows we are not able to drag Structure of key fig.
What could be the solution to this issue. How can we use key figures in rows?
Thanks in advance.
SamirHi,
putting product in the rows will slove the issues as the unit cost depends upon the prdoduct and therefore it will uniquely identify each of the material and then it will get multiplies with the qty and therefore you will get the correct result.
this kind of issue you will always face when you are going to multiply cost with the Qty and as the cost differ with the individual material.
Also putting material into the rows will cause the no. of rows to increase as all the materials will show up in the individual rows for the particular month.
Also you can make a claculated key fgure for the multiplication and use before aggregation.
But for that your both the key figures should be in the same cube i.e. in the same rows or the before aggregation will not work you will not even get an option of before aggregation in the CKF if the key figures belong to two different cubes.
Since your qty and cost are coming from two different cubes before aggreagtion will not work here.
And if you do before aggregation then you report will become quite slow as it will do all the multiplication anf then will bring the result.
So it depends on your requirement and your design how to proceed.
Hope it helps
Thanks -
How can i use row set iterator to create multiple dummy detail rows upfront
Hello i am new to ADF and jdeveloper and have a Forms 9i/PLSQL background.
I have a 1 to many master to detail view link and 2 vo's one for each of the master and detail table.
I am trying unsuccsessfully to create 7 unique detail rows up front to populate at a later stage.
I have created a master record with primary key being staff number and week ending date.
i then use code below to try and create 7 detail records - P.S i have trimmed it to the first 2 for demonstration.
I am using
RowSetIterator rsi = this.mydetailVO.getRowSetIterator();
Row newRow1=rsi.createRow();
newRow1.setAttribute("Staff Num","123456A");
newRow1.setAttribute("Week_Ending_Date", "2010-01-01");
newRow1.setAttribute("Claim_Date", "2010-01-01");
newRow1.setAttribute("Day", "Sun");
rsi.insertRow(newRow1);
Row newRow2=rsi.createRow();
newRow2.setAttribute("Staff Num","123456A");
newRow2.setAttribute("Week_Ending_Date", "2010-01-01");
newRow2.setAttribute("Claim_Date", "2010-01-02");
newRow2.setAttribute("Day", "Sat");
rsi.insertRow(newRow2);
However it does create two rows but it always writes over the first row with the details of the second row so they are not unique.
How can i get a new unique row inserted with different details to the firat and how then do i access it uniquely.
ThanksJohn thanks for reply.
I have tried the following and still i get 2 rows created but the first one gets overwritten with the last one. I'm confused as to why the inbuilt insert row doesnt move it on to the next available row. Any idea what i'm not doing in between inserting rows?
ViewObject vo1 = this.getmyVO1();
vo1.executeQuery();
Row newRow1 = vo1.createRow();
newRow1.setAttribute("Staff Number","123456A");
newRow1.setAttribute("Week_end_date", "2010-04-04");
newRow1.setAttribute("Date", "2010-04-01");
newRow1.setAttribute("Day", "Sun");
vo1.insertRow(newRow1);
Row newRow2 = vo1.createRow();
newRow2.setAttribute("Staff Number","123456A");
newRow2.setAttribute("Week_end_date", "2010-04-04");
newRow2.setAttribute("Date", "2010-04-03");
newRow2.setAttribute("Day", "Sat");
vo1.insertRow(newRow2);
P.S Yes they are dates but i made them strings for the time being until i get this working thanks for noticing.
Edited by: user13012264 on 20-Apr-2010 04:19
Edited by: user13012264 on 20-Apr-2010 04:20 -
How can i use multiple row subquery in update statement
Hai All
I using group function in my update statement.. and i need to update more rows so i need to use multiple row
subquery pls tell me how to use multiple row subquery in update statement
For example
while i am using this like this i got an error
update dail_att set outtime in (select max(r2.ptime) from temp_att where empcode=r2.enpno and
barcode=r2.cardn and attend_date=r2.pdate group by enpno,pdate,cardn);
Pls tell me how to use with example
Thanks & regards
Srikkanth.MHai Man
Thanks for ur response Let me clear what i need
First step Fetch the records as text file and stores into table T1
and the next step is i have seperated the text using substring and stores in different columns of a table
There are two shifts 0815 to 1645 and 1200 and 2000
Here I rep IN and O rep OUT
Empno date time inout
001 01-01-10 0815 I
002 01-01-10 0815 I
003 01-01-10 0818 I
001 01-01-10 1100 0
001 01-01-10 1130 I
002 01-01-10 1145 0
002 01-01-10 1215 I
004 01-01-10 1200 I
005 01-01-10 1215 I
004 01-01-10 1315 O
004 01-01-10 1345 I
001 01-01-10 1645 0
002 01-01-10 1715 0
003 01-01-10 1718 0
004 01-01-10 2010 0
005 01-01-10 2015 0
This is my T1 table i have taken data from text file and stored in this table from this table i need to move data to another table T2
T2 contains like this
Empno Intime Intrin Introut Outtime Date
001 0815 1100 1130 1645 01-01-10
002 0815 1145 1215 1715 01-01-10
003 0818 1718 01-01-10
004 1200 1315 1345 2010 01-01-10
005 1215 2015 01-01-10
This what i am trying to do man but i have little bit problems Pls give some solution with good example
And my coding is
declare
emp_code varchar2(25);
in_time varchar2(25);
out_time varchar2(25);
Cursor P1 is
Select REASON,ECODE,READMODE,EMPD,ENPNO,FILL,PDATE,PTIME,INOUT,CARDN,READERN
From temp_att
group by REASON,ECODE,READMODE,EMPD,ENPNO,FILL,PDATE,PTIME,INOUT,CARDN,READERN
ORDER BY enpno,pdate,ptime;
begin
for r2 in p1 loop
declare
bar_code varchar2(25);
begin
select barcode into bar_code from dail_att where empcode=r2.enpno and attend_date=r2.pdate;
For r3 in (select empcode,empname,barcode,intime,intrin,introut,addin,addout,outtime,attend_date from dail_att)loop
if r2.inout ='O' then
update dail_att set outtime =(select max(r2.ptime) from temp_att where empcode=r2.enpno and barcode=r2.cardn and attend_date=r2.pdate group by r2.cardn,r2.enpno,r2.pdate );
end if;
end loop;
exception
when no_data_found then
if r2.inout ='I' then
insert into dail_att(barcode,empcode,intime,attend_date)(select r2.cardn,r2.enpno,min(r2.ptime),r2.pdate from temp_att group by r2.cardn,r2.enpno,r2.pdate );
end if;
end;
end loop;
commit;
end;
Pls tell me what correction i need to do i the update statement i have used a subquery with group function but when i used it will return only one row but my need is to return many rows and i need to use multiple row subquery
and how can i use it in the update statement
Thanks In Advance
Srikkanth.M -
How can I use multiple row insert or update into DB in JSP?
Hi all,
pls help for my question.
"How can I use multiple rows insert or update into DB in JSP?"
I mean I will insert or update the multiple records like grid component. All the data I enter will go into the DB.
With thanks,That isn't true. Different SQL databases have
different capabilities and use different syntax, That's true - every database has its own quirks and extensions. No disagreement there. But they all follow ANSI SQL for CRUD operations. Since the OP said they wanted to do INSERTs and UPDATEs in batches, I assumed that ANSI SQL was sufficient.
I'd argue that it's best to use ANSI SQL as much as possible, especially if you want your JDBC code to be portable between databases.
and there are also a lot of different ways of talking to
SQL databases that are possible in JSP, from using
plain old java.sql.* in scriptlets to using the
jstlsql taglib. I've done maintenance on both, and
they are as different as night and day.Right, because you don't maintain JSP and Java classes the same way. No news there. Both java.sql and JSTL sql taglib are both based on SQL and JDBC. Same difference, except that one uses tags and the other doesn't. Both are Java JDBC code in the end.
Well, sure. As long as you only want to update rows
with the same value in column 2. I had the impression
he wanted to update a whole table. If he only meant
update all rows with the same value in a given column
with the same value, that's trivial. All updates do
that. But as far as I know there's know way to update
more than one row where the values are different.I used this as an example to demonstrate that it's possible to UPDATE more than one row at a time. If I have 1,000 rows, and each one is a separate UPDATE statement that's unique from all the others, I guess I'd have to write 1,000 UPDATE statements. It's possible to have them all either succeed or fail as a single unit of work. I'm pointing out transaction, because they weren't coming up in the discussion.
Unless you're using MySQL, for instance. I only have
experience with MySQL and M$ SQL Server, so I don't
know what PostgreSQL, Oracle, Sybase, DB2 and all the
rest are capable of, but I know for sure that MySQL
can insert multiple rows while SQL Server can't (or at
least I've never seen the syntax for doing it if it
does).Right, but this syntax seems to be specific to MySQL The moment you use it, you're locked into MySQL. There are other ways to accomplish the same thing with ANSI SQL.
Don't assume that all SQL databases are the same.
They're not, and it can really screw you up badly if
you assume you can deploy a project you've developed
with one database in an environment where you have to
use a different one. Even different versions of the
same database can have huge differences. I recommend
you get a copy of the O'Reilly book, SQL in a
Nutshell. It covers the most common DBMSes and does a
good job of pointing out the differences.Yes, I understand that.
It's funny that you're telling me not to assume that all SQL databases are the same. You're the one who's proposing that the OP use a MySQL-specific extension.
I haven't looked at the MySQL docs to find out how the syntax you're suggesting works. What if one value set INSERT succeeds and the next one fails? Does MySQL roll back the successful INSERT? Is the unit of work under the JDBC driver's control with autoCommit?
The OP is free to follow your suggestion. I'm pointing out that there are transactions for units of work and ANSI SQL ways to accomplish the same thing. -
How can I use more lines to show a field of a row in a report?
How can I use more lines to show a field of a row in a report? Table A have two columns: (c1 number(5),c2 varchar2(1000)).When I show the table on a report,the column c2 show itself in one row.So the width of html page is very wide.How can I split the field c2 to many lines?
Thanks for any help.I was wondering if an answer was found for this one.
I have the same problem using the default "Look 4" template for the region. I have found in the CSS file where it is defined and it specifies "nowrap" in the style, which is why the long value is not being split over multiple lines.
So, my question is, without modifying or creating templates, is there a way to override the "nowrap" attribute from within the item definition? e.g. in the Column Attributes.Column Formatting.CSS Style field. I had some success changing the display properties, such as background colour and font size but I can't seen to override the nowrap attribute! -
How can I use table headers only without using rows.
how can I use table headers only, without using rows and without leaving the space.
If anyone could say me how to paste the pic in this questions, I would have shown it.
The flow of view is in this way
{Table header(table on top of table)
column header1___|| column header2__ || column header3__ ||}
<b>Here is the blank space I am getting, How to avoid this space?this space is of one table row height</b>
{Contents column1 || Contents column2 || Contents column3 || (This is of other table below the uper table)}
I am using scroll for the content part of table only.
So I am using two tables.
I am using NW04.I did the possibles you explained, but couldn't get rid off the space.
Any other solutions?
I am keeping the header static and the content columns scrollable.
I have used two tables one to display header above and the other to display only the contents.
I have put the contents table in scroll container.
And the header table in transperent container.
Thanks and Regards,
Hanif Kukkalli -
Ethiopia doesn't figure on the countries list. How can I use Itunes store in Ethiopia?, Ethiopia doesn't figure on the countries list. How can I use Itunes store in Ethiopia?
If there is no iTunes Store in your Country... Then there is no iTunes Store you can use...
iTunes Store: Which types of items can I buy in my country? -
i have my mac pro with the keyboard in spanish and i didn't knew that it was going to be a big problem because i can't use the key pads the way they are printed, how can i use them the way they are printed?
why can't you use the keyboard the way it is printed?
-
Converting key figures from rows to column using DSO and start routine
Hi SDNer:
I need some help to convert key figures from rows to column.
The source is DSO 1 and I am thinking about writing ABAP in the start routine to do the conversion. The target is DSO2.
Below is the more detail information with example. Basically, for each record in DSO 1 I need to create 3 records (because there are 3 KF's) and output to DSO2.
I would really appreciate some help on this.Thank you.
Tony
DSO 1 data format (SOURCE)
Period ID KF1 KF2 KF3
200702 100 300 200 750
Output to DSO 2 (TARGET)
Period ID KF LABEL
200702 100 300 KF1
200702 100 200 KF2
200702 100 750 KF3This is the code in BI 7.0.
u need to put a field "Label" in DSO1. u dont need to populate this in DSO1 but it helps the code to populate the field in DSO2.
DATA: wa_result TYPE _ty_s_sc_1,
t_result TYPE STANDARD TABLE OF _ty_s_sc_1.
DATA:counter(2) TYPE n.
LOOP AT SOURCE_PACKAGE INTO wa_result.
counter =0.
while counter < 3 .
wa_result- Period = wa_result-Period.
wa_result- ID = wa_result-ID.
if counter = 0.
wa_result- KF1 = wa_result-KF1.
wa_result- Label = 'KF1'.
elseif counter = 1.
wa_result- KF1 = wa_result-KF2.
wa_result- Label = 'KF2'.
else.
wa_result- KF1 = wa_result-KF3.
wa_result- Label = 'KF3'.
endif.
APPEND wa_result TO t_result.
counter = counter+1.
endwhile.
endloop.
CLEAR: SOURCE_PACKAGE,wa_result.
LOOP AT t_result INTO wa_result.
APPEND wa_result TO SOURCE_PACKAGE.
ENDLOOP. -
HT3354 how can i use one table for reference to another
how can i use a table for a referance to another eg when i type a word in a cell, i will like it to match the word with another table then return the information in the cell i am using
you can use vlookup() (or any of the lookup family of functions) to locate an item based on a key value:
Here is an example of something you can do with two tables:
The table on the right is title "Data" and stores a list of names with age and favorite color.
The table on the left uses the value in the first column to lookup up information in the table Data
in the table on the left:
B2=IFERROR(A2&" is " & VLOOKUP(A2, Data :: A:D, 2, 0)&" years old and likes the color "& VLOOKUP(A2, Data :: A:D, 3, 0), "NOT FOUND")
I know this look complicated. so I'll break it up into smalled pieces:
first the "&" is called the concatenate operator and joins two strings. like this:
a string is a set of characters between double quotes.
so "string 1" & "string 2" becomes "string 1string2" or "Sam " & "Jones" becomes "Sam Jones"
you can use cell references instead of strings directly in which case the concatenation is performed on the contents of the cells.
so if cell A1 contains "Hi " and the cell A2 contains "There" then A1 & A2 will result in "Hi There"
so you could add the formula
A3=A1 & A2
this is short hand for select cell A3 then type everything including the A3 so that A3 contains "=A1 & A2" (omit the double quote)
OK. So the formula I provided concatenates several items together:
it concatenates A2, then the string " is " then a formula, then the string " years old and likes the color " then a formula
the two formulas (highlighted in blue) perform a lookup of the value in cell A2 in columns A thru D of the table named "Data". If if finds the value in cell A2 in the first column of the lookup range in the table Data (column A) then it returns the value from the same row but in the second or third column.
all that is in a function calld iserror() to trap the condition where the calue you enter in A2 does not exist in the table Data:
You will find the Numbers users guide and function reference helpful. You can download then from Apple here:
http://support.apple.com/manuals/#productivitysoftware -
Using Key figure attribute of a characteristic in a query
Hi All,
I have the following scenario. I have defined a key figure attribute for a characteristic Infoobject. I have included this characteristic infoobject in an Infocube. I now want to use the key figure attribute as a regular key figure when I create a report based on the Infocube. Is it possible and if so how is it possible?
Thanks
SundarHi Saundar,
There's another way.Set the characteristic with key figure attributes as a data target under your info area. Create a MultiProvider and include your Cube and this characteristic. Here you can set the key figure as your MultiProvider key figure.
Don't forget to take care of the identification of MultiProvider.
Hope this helps.
Regards,
Aaron -
How to identify which key figure will the numeric pointer for deltas?
Hi All,
I have created a numeric pointer for generic extraction ? but how to identify which key figure will the numeric pointer will use for deltas ?
how to identify the key figures which is suitable for numeric pointer. And the generic extraction is based upon the copa table?
Can anyone suggest me how the numeric pointer works and how to identify deltas are carried out at numeric pointer?
Thanks
PoojaPooja,
If you are using a generic extractor which is based on COPA table, then numeric pointer may not be the suggested delta extraction mechanism.
A time stamp would be the better one to use. In a time stamp, you can give a lower limit value of 300 seconds.. so that it will try to fetch the missed records.
Moreover, a delta would be based on a character, preferably a time char.
In your requirement, try to figure out the character on whichdeltas will be based.
Sasi -
Problem with using Key Figure inside IDT
Hii Experts,
I have created an Universe using Information Design Tool(IDT), in which i had created the Key figures whose value are calculated based up on Date i supply and that value is Being Calculated fine according to my need.
But Problem is that when i am going to use that Key figures value in further Calculation, its returning wrong value....
Can anyone please help me, how can i use the Key figure's value in another key figure for further calculation inside the IDT.
Thanks
PrakashHi Prakash,
Can you explain what are you doing exactly and what you wan to do?
Can you provide the expression you wrote? Which database are you using?
Thank you
Didier
Maybe you are looking for
-
Auto Mute is not working when cycle recording in MIDI to a take folder
I'm hoping someone can provide insight into the problem I'm having in Logic X. I'm attempting to record multiple takes of MIDI recording playing an e-kit through Addictive Drums. I have gone into the MIDI recording options menu and selected "create
-
PDF opens in Reader but Reader is not my default viewer
I have doPDF as one of my printers so I can create a PDF file. In Control Panel Folder Options, my default PDF viewer is set to Foxit. That is what I want. I have Acrobate Reader on my PC for the rare instances I NEED Acrobate Reader. When I select d
-
Water damage speaker doesnt work for music/ videos
I was on the shower and a bit of water hit my iphone 4s specifically on the ear speaker, though it is still working ear speaker is not and cannot play music/ videos using the speaker, but I can use the speaker when talking to someone on the other lin
-
How can I use iMessage in iPad 2
How can I use iMessage in iPad 2?
-
I've used the option dialogue box and set the default webpage to my own but yahoo comes up instead. They must be desperate! This really stinks. How can I get rid of it?