BEx Designer: How to count if an InfoObject(field=ProblemNr) is empty
Hi,
in the ROWS i have an InfoObject (let's say ProblemNumber) and in the COLUMNS another InfoObject (Date).
The IO in the Rows is not a primary key and it's not always filled in. The OrderNr might be a primary key.
I want to find out how many of the entries in a specific month (IO Date) have ProblemNr and how many not.
So basically would lool like the following:
April
With ProblemNr: 25
W/o Problem Nr: 18
Would you give me tips how i can show such a result.
Thank you!
I have two Field in the Multiprovider: DocNumber & DeliveryDate.
In the Query Design I created a Count (Calculated Key Figure) to count the entries
since Iu2019m not allowed to change anything in the Data Model.
The DocNumber might and might not have a DeliveryDate, Ex:
DocNumber DeliveryDate
1234 12.03.11
2345 --
4567 11.01.10
6789 01.05.11
So i need to design a Query to count Number of Documents (DocNumber ) that have
No(Empty) DeliveryDate & also Number of Documents (DocNumber ) that
have DeliveryDate.
So the result would look like something like this:
April May June July
No DeliveryDate 54 23 22 56
With DeliveryDate 32 3 52 26
So there are 54 Documents that have DeliveryDate Field empty and
32 Documents with DeliveryDate filled in.
Similar Messages
-
Urgent help!!how to count the no of fields retrieved by recordset??
hello friends,
i need to count the no of fields and not rows returned by the recordset
plz. help me soon,
Ex. rs.executeQuery("select * from table");
now how many columns will be there in the table,i need to know that
thanx in advance,its urgent so reply soon,
Vishalhey, i am getting an error as follows
cannot resolve symbol
symbol : method getMetaData (java.lang.String)
location: class front1
ResultSetMetaData rmd= getMetaData(globals.s);
^
1 error
can u expand the code a bit , so this error is solved ?
thanx again -
Query Designer - how to count distinct characteristic values in a column
Hello Experts,
I need to count the number of distinct occurences in a column and use it later for a percentage calculation. I'll give you a concrete example:
Promotion_ID Product Promoted
A ****************** P1 ******** 1
A ****************** P2 ******** 0
A ****************** P3 ******** 1
B ****************** P1 ******** 0
B ****************** P3 ******** 1
C
D
A promotion ID can have more than 1 product associated with it. A product can be promoted (1) or not. A promotion_ID can be also empty (no products C and D)
I need to calculate for each product the percentage of promotions where the product is promoted out of ALL promotions (4) or
P1 25 %
P2 0 %
P3 50%
How can I model this in the Query Designer ? How can I count the distinct Promotion_IDs ?
Any ideas will be appreciated.
Thanks
RadoHi,
Please take a look at the docs below.
https://websmp102.sap-ag.de/~sapdownload/011000358700002762432003E/HowToCount.pdf
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7e58e690-0201-0010-fd85-a2f29a41c7af
Regards,
® -
How to count the no of fields returned by recordset?
hi friends,
how can i know how many columns have been returned by the recordset
ex. rs.executeQuery("select * from table");
now how many columns r there in the table, can this be known?
thanx in advance,
VishalResultSetMetaData rsmd = rs.getMetaData();
int columnCount = rsmd.getColumnCount();ResultSetMetaData will provide you with a great deal of information about the ResultSet - check out the API here: http://java.sun.com/j2se/1.4.1/docs/api/java/sql/ResultSetMetaData.html
Hope this helps! -
Hi
In BI Bex Designer Query, I have 3 fields under Row box: Buyer, Material, Item Type (Stocked/Non-Stocked).
But doesn't have any field under column box.
Actually i wanted to find Buyer1 linked with how many number of Stocked/ Non-stocked items.
In need report in following format:
Buyer1 - Stocked 10
Non-Stoked 20
Buyer2 - Stocked 30
Non-Stoked 50
Pls let me know how to procees.
ThanksHi
Create a formula variable of replacement path type (replace with the field to be counted) in a formula, and count that.
Or u can even explore using exception aggregation. -
How to add logic in Bex designer?
I have one formula field ZPERCENT in my query designer. ZPERCENT(%) = ZQTY / ZREVENUE. Now I want to add one logic in Bex deisgner, if ZQTY is equal to 0, then field ZPERCENT should be 100%. Does anyone have an idea how to make it possible in Bex designer? I'm using Bex 3.5 version. Thanks a lot.
Formula ZPERCENT:
1st selection:ZQTY
2nd selection: ZREVENUEHi,
(ZQTY NOTEQUALTO 0) * (ZQTY/ZREVENUE) + (ZQTY=0)*100 -
How to count Unique Values in BEx
Hi Guys,
Can anybody please let me know how to count unique values of a characteristic.
Thanx in advance
PeterI have a similar scenario. If i drill up on the characterstic that had a count of one in each record, the total number of records should be stay equal to the summarised results in the last screen.
Would someone know how to do that .
Arti -
Hi all, I have a problem about design. I created a multiprovider.I'm using 0FI_AR_4 related cube (ZDEBIOTOR related data is coming from here) . and I'm using 0FI_GL_4 related ODS (G/L related data will come from here)
I'm using ZDEBITOR charactheristic within the "rows" field of the bex designer. but, I want to calculate an unrelated with ZDEBITOR value (actually it related with gl acount) for every rows of the report.but it tries to find a customer field even 0FI_LG_4 don't have. how can I do?I can't enhance GL4 cube because r-3 data don't have customer information, so data source doesn't have too. in the bex report, the situation is like this:
customer1's balance value, g/l account balance value (this g/l is total discount balance value)
i will divide discount balance value to the total sales amount and will get net sales amount. my problem is calculating g/l balance value within the same row with the customer because it doesn't have customer info. how can I calculate a global value that is unconnected with any type restrictions (for example row charactheristic)? -
How to Count Number of completed line items in past 6 months / 12 months ?
How to Count Number of completed line items in past 6 months / 12 months ?
Hi,
I am trying to count "Number of Completed Line Items in Purchase Order Document" for my Key Figure ZPO_CNT.
Purchase Order document = ZEBELN
Line Item = ZEBELP.
I need to find and count if the Line Item has been received in the past 6 months from today and similarly in the past 12 months.
I have "Delivery Completed" field, ELIKZ.
So, based on this would I be able to calculate it in Query Designer?
If so, Please let me know howHello Deva
If youe want to calculate the completed line item for last 6 or 12 month then i think u will be displaying the query data for these montrhs...create a customer exit to give you date range and restric it in filter area....
Now Choose any of the below option
1. I would suggest to implement an additional key figure "counter" in cube and fill values with one for which delivery is completed.
Now use calculated key figure in Query Designer based on logic
IF counter = 1 THEN counter ELSE 0
OR
2. create a formula variable based on ELIKZ and use replacement path variable, it will display you no. of docs for which delivery is completed....
Award points if it solves your problem
Revert back in case of further assistance...
Thanks
Tripple k -
"Result" row not appearing for the Structure record in Bex Designer.
Hi
In BI BEx Designer,
under Rows-> click any Characteristic-> Display Tab-> Result Rows: "Always Display" Option controls Last Row named "Result" (yellow colored) after the actual data reports ends.
But i am not finding this thing for the structure.
Actually my this report is based on 'Structure-> 2 selections' under Rows; once i run this query i get data without yellow colored 'Result" row at the end of report. I wanted to maintain the symmetry with other reports.
Could u pls let me know how to get Query last "Result" record if i use only structure under the rows.
Thanks...I limit the selection to display in one page, i see the overrall result but i've a result to show up after a Characteristic (result row option 'Display with more than one single value'), it works fine in BEx but not in web.
for the other query, yes i do KF in the report.
thanks -
Please let me know how to Count Number of completed line items in past 6 mo
How to Count Number of completed line items in past 6 months / 12 months ?
Hi,
I am trying to count "Number of Completed Line Items in Purchase Order Document" for my Key Figure ZPO_CNT.
Purchase Order document = ZEBELN
Line Item = ZEBELP.
I need to find and count if the Line Item has been received in the past 6 months from today and similarly in the past 12 months.
I have "Delivery Completed" field, ELIKZ.
So, based on this would I be able to calculate it in Query Designer?
If so, Please let me know how
KrishnaHi Experts,
I dont have a defined Restricted key figure yet.
I have populated 0COMPL_DEL(Delivery Completed Indicator) and 0EBELN (Purchasing Document Number) and 0EBELP (Line Item Number in Purchasing Document) .
This is what I think how I need to calculate:
Number of completed line items in past 6 months:
If Delilvery Completed Indicator (0COMPL_DEL) = x, calculate No. of Line Items (ZPO_CNT) from 0CALDAY to 6 months
and
Number of completed line items in past 12 months:
If Delilvery Completed Indicator (0COMPL_DEL) = x, calculate No. of Line Items (ZPO_CNT) from 0CALDAY to 12 months
Please let me know if the logic is correct. If so, how I can create this in report -
Huups: Can not see my InfoArea and InfoProvider in BEX Designer
Hey,
I wonder why I can not see my newly created InfoArea and InfoProvder in the BEX Designer ?
Anybody knows why ?
It's not related to useing Z Prefix notation.
ThanXs
MartinHi Martin,
Check following infoprovider tables and see if your infoproviders are in active version.
InfoCube: RSDCUBE
DSO: RSODSO
and for Infoobject goto transaction RSD1 and check.
And Finally for multiprovider RSDCUBEMULTI
Regards,
Durgesh.
Edited by: Durgesh Gandewar on Jul 19, 2011 2:42 PM -
Newly added Cal.View Measure does not appear in the BEX Designer
Hi,
anybody come about this :
A newly added Cal.View Measure does not appear in the BEX Designer:
I got a runnig query in Bex Designer, based on a transient InfoProvider which is based on a HANA Calculation View
and
added a new measure to the Calculation View
and
added a Reference InfoObject in the Publisher to the (transient) InfoProvider.
and
see the newly added filed in the Listccube of the(transient) InfoProvider with a technical generated name
and do not
get the newly added measure in the BEX Designer.
Whats wrong ? What needs to be done ?
Thank You
MartinHi Martin,
Are you trying to consume the HANA Calc View in BEx Front End Tool - Query Designer.Could you also check the data preview of the Calc View shows the newly added Measure.Check the definition of Calc View under SYS_BIC schema ->Column Views.
Rgds,
Murali -
How to count number of sales orders generated in a month in SAP SD
Hi SD Gurus,
I have a very strange query from client. I have to count the number of sales order created in a month for a z report. For example 30 in Jan, 25 in Feb etc. Could anyone suggest me How to count number of sales orders generated in a month in SAP SD.
Regards
Vinod KumarHi,
Goto the T.Code "SE16" or "SE16n" or "SE11".
Enter the table name as VBAK
Enter the created on date as the starting date of the period and to date as the end date.
Enter.
Click on "Number of Entries".It will tell you the number of entries created in a particular period.
If you want a report,goto the T.Code "VA05n".
Regards,
Krishna. -
Condition issue in BI Bex Designer Report...
Hi
In BI Bex Designer while writing the condition, may times I observed that If my condition doesn't work having its Characteristic Assignment is set to "All Characteristics in the Drill-down Independently" which is default, but if I set the option to "Individual Chars and Char Combinations" & check all the fields, it works.
But most of the time default nature works unlike above. Just wanted to find out: what is the rule?
May someone help me in this issue.
Thanks...To my knowledge when you select All Characteristics in the Drill-down Independently, condition works with respect to the characteristics which are currently drilled down in your report.
But when you select Individual Chars and Char Combinations, condition works on the characteristics which are currently drilled down in your report and also the characteristics that are available in free charactritics.
So I think All Characteristics in the Drill-down Independently and Individual Chars and Char Combinations and selecting all the characteristic checboxes are not the same. All Characteristics in the Drill-down Independently and Individual Chars and Char Combinations and selecting the characteristics which are in your rows are the same.
Maybe you are looking for
-
I receive the Missing Plug-In message when I drag a PDF file from the desktop into the Mail icon in the dock; however when I create a new message first, then drag in the PDF file to the body of the message, it works fine. I am also now receiving the
-
SENT items in IMAP accts present illogically. GMAIL & MOBILEME are correct
The way email is presented in Sent Items of a user's IMAP mail account is illogical. In the left sidebar, MAIL is presenting the sent mail with the FROM name in boldface. Makes no sense, since I know they are all FROM "MYSELF", it only makes sense to
-
Query Variable - Bottom N Reports
Hello Experts, I'm creating a Statistics query and would like to execute the query for 'Bottom N Reports' which would be an input variable. Could you please let me know how this could be accomplished. I know I can create a Condition for 'Total time'
-
1, memory release: There are two swf file:1.Swf, 2.swf.After i load 1.swf by ModuleLoader,i load 2.swf, but 1.Swf is memory, have not been removed, how the release of Memory is out. Remove and use of mandatory release, memory or not the release of sw
-
I'm running Windows XP home edition. Virtual Keyboard works with Internet Explorer.