How to avoid double-counting in Total field
Hi Gurus,
I'm new to Essbase.
Here's a question I don't know how Essbase handle it, my source data stores at relational database, normally one row in the fact table associates with only one row in dimension table, but very common scenario like one fact row can associate with many rows in dimension table, to simplify we have 4 tables:
1. DimProduct(ProductID, ProductName). there's one row like 1, "Bike"
2. FactSales(ProductID, Quantity), there's one row like 1, 10
3. FactSalesReasons(ProductID,ReasonID), there're 2 rows like 1,1 and 1,2 , suppose there're 2 reasons associate with this product sale, that means 1-N relationship between fact and dimension.
4. DimReason(ReasonID,ReasonName), there're 2 rows like 1,"Quality" and 2, "Promotion"
I expect the report as follows:
ProductName ReasonName Quantity
Bike Quality 10
Promotion 10
Total 10
But while built cube, I got the value 20 of Total. I know Microsoft SSAS has a many-many dimension usage can avoid this double counting issue (no need to write extra calculation script), can Essbase do similar way?
Thanks!
Xiao
What I would recommend in this case would be in a calc script. I would guess that this dimension is sparse which usually has a low calculation priority (calcs first and may get overwritten). So, at least for a first pass at a calculation...
========
SET UPDATECALC OFF;
Calc All;
"Total Reason" = @AVG(SKIPNONE,@CHILDREN("Total Reason"));
========
SKIP options are "none", "missing", "zero" or "both".
This will calculate for all accounts.
Similar Messages
-
How to avoid double-click to click-box
Hello,
until now I did not find a solution for this problem:
I have created a training course for a specific application, and in this coure are some click boxes on which the user should click. On many click boxes should the user click only once but if he double-click the click box, in real application nothing happens. There is only one way to succes the action - one click. But in captivate when the user double-click the click box instead of one click it evaluate as success action (the click box is set only to one click, double-click checkbox is not checked).
So my question is, is there any way how to avoid double-click in cases where the user should click only once? Or in case he double-click the click box to show failure caption?
Many thanks.
LukasHi all
Interesting thread. Unfortunately, what would be needed here is some sort of a widget that would run some internal timer. Sure, you can try multiple Click Boxes and configure one with a Single Click and one with a Double Click. But the problem with that (as I see it) is regardless of what you might try, the Single Click will win out every time. Thus you would need a widget of some sort that would "listen" for a Double Click and respond appropriately.
Tough call... Rick
Click here for Adobe Authorized Captivate and RoboHelp HTML Training
Click here for the SorcerStone Blog
Click here for RoboHelp and Captivate eBooks -
How to get an count for a fields in fields
Hai All
I have created a table and the table contains three fields code,date,time and now i need to count that how many times the time come for a day
for example in this table is calculated for daily attendance
Code Date Time
001 01-02-10 0815
001 01-02-10 1115
001 01-02-10 1145
001 01-02-10 1645
002 01-02-10 0815
002 01-02-10 1200
002 01-02-10 1230
002 01-02-10 1715
003 01-02-10 0815
003 01-02-10 1655
here the example table is there so now i need to count that no times the time count is there for a day
for eg code 001 has 4, and 002 has 4 and 003 has 2
I have tried
select count(*) as ct,barcode from temp_attendance
group by barcode
order by barcode
Like this and works fine with only barcode field and while we give other fields in group by function and it calculate for each time.
while i using this in cursor i need to all the variable displayed and i need the count the count that code has
no of time.
Thanks & Regards
Srikkanth.MNikhil seems to be correct
WITH T AS
( SELECT '001' barcode, '01-02-10' bar_date, '0815' Systime FROM dual
UNION
SELECT '001' barcode, '01-02-10' bar_date, '1145' Systime FROM dual
UNION
SELECT '002' barcode, '01-02-10' bar_date, '0815' Systime FROM dual
SELECT barcode,systime,
COUNT(*) over (partition by barcode,bar_date order by barcode)
from t;Thanks and regards
Sen
Edited by: Oracle beginner on Feb 18, 2010 2:37 PM -
Hi experts,
i loaded a flatfile1 into an ODS and then into an infocube. Again i loaded another flat file2 ( which had the same records as well as few more records as first one) the same way.. when i look at the Infocube, some of the records have double the values. How do i avoid this.. can i go for delta load from ods to infocube..
all the above loads are fulupdate.
Also SDNers,
By full update do we get all the data again if we load from ODS even if we laoded previously.?
thanks
Dave
Message was edited by: Dave MarcusIf you go as Delta from ODS to Cube, ODS will take care in sending only the changed records and the new records.
see this link:
Re: Delta Processing in ODS
Also see:
ODS & Delta
Thanks,
Raj -
How to avoid printing zero in amount field in adobe forms
Hi All,
If the amount is empty in the amount field then it is printing 0,00. I have written some peice of code to avoid printing that value. I wanted to print space.
Below is the logic which i have tried in javascript.
if ( this.WRSHB.rawValue == null )
this.presence == "hidden";
if ( this.WRSHB.rawValue == '0,00' )
this.presence == "hidden";
I am still able to print 0,00 in the form output.
Can anyone please help me out in achieveing the same ? Am I missing anything in the javascript coding?
Thanks and Regards,
Karthik Ganti.Hi,
Issue is fixed. I have written the above code in Form ready event and changed the amount field type to text field. It worked. Thanks.
Thanks and Regards,
Karthik Ganti. -
How to avoid double extension *jpg.tif when exporting layers to files?
Please help, I checked all the topics related and it seems nobody bothers about this issue.
When I do a Photomerge of a series of jpg files, Photoshop builds a multilayered file - but preserves in the name of each layer *.jpg
When I want now to export layers to files, the Scripting function will do the dumb thing and export each file with the original name - ending in JPG - , plus the extension required by me - for ex tif.
It does the same if I chose to export as jpg files and puts double extension again < *.JPG.jpg> at the end of each file exported from a layer.
I looked everywhere and couldn't find a way to solve this behavior, which forces me to do batch renames in Bridge.
The next program where I need the files (After Effects) doesn't want to import these files with double extensions.
Has anyone encountered this issue and what can be done to avoid these double extensions at Scripts/Export layers to files?
Thanks for the answerI have just altered my script so that it will remove the extentions if found.
http://www.scriptsrus.talktalk.net/Layer%20Saver.htm
Also it would be better to use :-
var layerName = activeDocument.activeLayer.name.replace(/\....$/,'');
As this way it doesn't arbitory remove the last four characters, only if it finds a fullstop. -
How to truncate currency part from total field in SAP B1?
Hi All,
Is there any way to truncate the currency part (for exp USD 23.45 should give 23.45) from total columns while fetching its value thru DI API (without left-trailing the varchar part)?
many thanks in advance..
regards,
Binitai can only give you some hints for your function
make some globals like (to now the sap separator)
oRecordSet.DoQuery("SELECT DecSep, ThousSep, MainCurncy FROM OADM");
if (oRecordSet.RecordCount > 0)
globals.SBODecSep = Convert.ToString(oRecordSet.Fields.Item("DecSep").Value);
globals.SBOThousSep = Convert.ToString(oRecordSet.Fields.Item("ThousSep").Value);
globals.SBOMainCurncy = Convert.ToString(oRecordSet.Fields.Item("MainCurncy").Value);
and define a system global (to set the windows separator)
public static string SysDecSep = ",";
the problem is that the windows country settings are also important.
regards
David -
How to get a count of total data points entered?
What Oracle tables are involved in getting the total number of data points actually entered in a particular DCM or panel.
I want to create a sql statement to show: Study, Panel, Total actual data points entered?This is what I have so far...
SELECT CS.STUDY,
DC.NAME,
COUNT(RP.RESPONSE_ID) "TOTAL DATA POINTS"
FROM RESPONSES RP
INNER JOIN CLINICAL_STUDIES CS ON ( RP.CLINICAL_STUDY_ID = CS.CLINICAL_STUDY_ID)
INNER JOIN RECEIVED_DCMS RD ON ( RP.RECEIVED_DCM_ID = RD.RECEIVED_DCM_ID
AND RP.CLINICAL_STUDY_ID = RD.CLINICAL_STUDY_ID
AND RD.RECEIVED_DCM_STATUS_CODE <> 'REMOVED')
INNER JOIN DCMS DC ON ( RD.DCM_ID = DC.DCM_ID
AND RD.DCM_SUBSET_SN = DC.DCM_SUBSET_SN
AND RD.DCM_LAYOUT_SN = DC.DCM_LAYOUT_SN
AND RD.CLINICAL_STUDY_ID = DC.CLINICAL_STUDY_ID)
INNER JOIN DCM_QUESTIONS DQ ON ( RP.DCM_QUESTION_ID = DQ.DCM_QUESTION_ID
AND RD.DCM_ID = DQ.DCM_ID
AND RD.DCM_SUBSET_SN = DQ.DCM_QUE_DCM_SUBSET_SN
AND RD.DCM_LAYOUT_SN = DQ.DCM_QUE_DCM_LAYOUT_SN
AND RD.CLINICAL_STUDY_ID = DQ.CLINICAL_STUDY_ID
AND DQ.ENTERABLE_FLAG = 'Y')
WHERE (RP.VALUE_TEXT IS NOT NULL OR RP.EXCEPTION_VALUE_TEXT IS NOT NULL)
GROUP BY CS.STUDY,
DC.NAME
ORDER BY CS.STUDY,
DC.NAME ; -
Hello experts,
can i avoid that a user is logged in a bsp 2 times (two different pc´s) ?
Is there a standard solution in SAP or is it custom development?hye Benjimin,
It is not possible to auhenticate single log in through any standard setting. Authetication is bascially initiated from the browse side and hence no real standard setting exists.
This can be achieved only through custom programming.
Regards
Imran. -
How To avoid column heading for only total line in ALV list Display
Hi,
How To avoid column heading for only total line in ALV list Display.Hi,
to change colunm header field catlog is built
look at the example below
Changing column text headers
use this to change, hide, or alter the ALV columns
CLEAR: gt_fcat.
READ TABLE gt_fcat WITH KEY fieldname = 'TEXT1' " ***
*TEXT1 is your field name
ASSIGNING <gtfcat>.
IF sy-subrc = 0.
<gtfcat>-coltext = 'Date Type'.
<gtfcat>-no_out = ' '.
<gtfcat>-tooltip = 'Date Type Text from IT0019'.
<gtfcat>-seltext = 'IT0019'.
keep seltext to '' if u want to hide
ENDIF.
regards
austin -
Estimated Row Count Query. How to avoid?
Hi,
I use Jdeveloper 9.0.3. Production to evaluate its capability with swing JClient. I found that before the form is shown on the desktop the framework runs the quety like this.
SELECT /*+ ORDERED USE_NL(RtEmployee) USE_NL(RtUnitmeasure) USE_NL(RtGroupcode) */ count(1) FROM (SELECT RtProduct.PRODUCTID, RtProduct.ID_UM, RtUnitmeasure.SHORTNAMERUS, RtProduct.ID_COMMON, RtProduct.NAMERUS, RtProduct.NAMEENG, RtProduct.ID_GROUPCODE, RtGroupcode.GROUPCODE, RtProduct.IS_GRCODEFAULT, RtProduct.VAT, RtProduct.PRICE_U, RtProduct.MINPRICE, RtProduct.MARKUP, RtProduct.IS_DISCOUNT, RtProduct.NOTE, RtEmployee.SURNAME, RtProduct.CREATEDATE, RtProduct.MODIFYDATE, RtProduct.ID_OPERATOR, RtProduct.ID, RtUnitmeasure.ID AS ID1, RtGroupcode.ID AS ID2, RtEmployee.ID AS ID3 FROM RT_PRODUCT RtProduct, RT_EMPLOYEE RtEmployee, RT_UNITMEASURE RtUnitmeasure, RT_GROUPCODE RtGroupcode WHERE ((RtProduct.ID_OPERATOR = RtEmployee.ID)AND (RtProduct.ID_UM = RtUnitmeasure.ID))AND (RtProduct.ID_GROUPCODE = RtGroupcode.ID))
to estimate dataset cardinality.
Attention development team. Plase pay attention that the statement is badly formed as
Hints entered into "Query Hint" field of the VO is placed in outer query but intended to use in sub query and will not be taken into account by optimizer!
My question is how to avoid this query and/or how can I replace a functionality for estimating dataset cardinality by user defined function or so?
Best regards,
VyacheslavI tried the suggested solution but could not figure
out how to get the current query string to extract
the WHERE clause to use in my own query or to get the
parameters to build my own WHERE. How about a more
explicit code example?
Joe:
A few different ways to do this. First, note that getQueryHitCount()
method receives the following parameter:
ViewRowSetImpl viewRowSet
To get the entire query statement, you can call
String entireQuery = vo.getQuery();
For each row set (identified by the viewRowSet parameter), you have a
set of where-clause parameters. Some of these are user provided
(through setWhereClauseParam calls) and some of these are system
provided (system provided params are primarily for view links).
To get all where-clause params (both user and system params), you
call:
Object[] paramVals = viewRowSet.getParametersAsStorageTypes();
Again, paramVals include both user and system param vals.
If you do
int noUserParams = viewRowSet.getWhereClauseParams().length;
noUserParams will tell how many of these are user supplied:
paramVals[0] .. paramVals[noUserParams-1] are user supplied and the
rest are system supplied.
If you want to get the Long postings are being truncated to ~1 kB at this time. -
How To Block a User From Changing Total Field In AR Invoice
Hi all,
I would like to find out how to block a user from being able to change the total field at the bottom right hand side of the AR Invoice. Currently if a user creates an invoice and is still busy in that invoice they can adjust the total field which in turn will update the discount field as well.
Is this simply an authorization issue or am I going to have to do it in the transaction notification?
We are using SAP Business One PL 30 currently.Hi
Please review by note again -This is by system design .
I don't know why you are so worried abt this because by setting up discount max ,if user cannot post the document ,that means it is not in the system ,no matter they change multiple times in the fields .
But I think your scenario is different ,
You are copying with certain discount from Delivery to AR invoice and i think you don't want user to change the discount field , then you can solve your issue by using approval or sp_notification
If you really want it to be greyed out ,I think you might have to go through by SDK or Boyum addon.
Thank you
Bishal -
How to avoid Line Items(fields) in BAPI mapping.
Hi
Does any body help me for mapping between header and line items in BAPI..
my scenario is filerfcmail(wokflow)!
File is CSV based :
(ex: 001150,,1123,JERM,08122006,,,
,,,ANN,,01082006,
If you look at example csv file , there is some fields mixed with header and line items. But in RFC header can be 1 to 1 and line item should be 0 to Unbound.
Now my problem is if I sent above example csv file as source :
The payload coming like this(sxmb_moni) :
</HEADERDATA>
- <GLACCOUNTDATA>
- <item>
<COSTCENTER />
<PROFIT_CTR />
</item>
- <item>
<GL_ACCOUNT>738100</GL_ACCOUNT>
<ITEM_AMOUNT>60000</ITEM_AMOUNT>
<COMP_CODE>001150</COMP_CODE>
<ITEM_TEXT>*777-8030-861</ITEM_TEXT>
<COSTCENTER>7320</COSTCENTER>
<PROFIT_CTR>7320</PROFIT_CTR>
<ALLOC_NMBR />
</item>
- <item>
<GL_ACCOUNT>738100</GL_ACCOUNT>
<ITEM_AMOUNT>40000</ITEM_AMOUNT>
<COMP_CODE>001151</COMP_CODE>
<ITEM_TEXT>*777-8030-861</ITEM_TEXT>
<COSTCENTER>6010</COSTCENTER>
<PROFIT_CTR>6010</PROFIT_CTR>
<ALLOC_NMBR />
</item>
<item />
</GLACCOUNTDATA>
You can find there is one more item coming after headerdata with null values. It means map reading first line and one by one , if any field found in rows which belogs to GLAccount(Line item), then it writing one more item after headerdata with that fields only.
Remainig GLAccount data coming as per map after the item .
Can you tell me how to avoid extra line items.
Thanks,
SankarYes, It exist..
I cross checked ..with out givig fileds and giving some fields...its writing another items in after headerdata tag.
hope you understand , what my problem..
See: GLACCOUNTDATA under subnode
item is 0 to unbound in BAPI side, because of this its reading all rows , and if find any field which belongs to GLAccount , then it writing another item tag after headerr data.
Thnaks,
Sankar -
How can avoid mandatory fields in data transfer
hai
please respond me
how can avoid mandatory fields in data transfer like bdchi,
u have to pass values for mandatory fields in bdc method, u have to prepare u r bdc data such a way that all the mandatory fields are filled, other wise it will give error -
How can i avoid leading zeros for a field in smartform?
how can i avoid leading zeros for a field in smartform?
Hi,
Using the Symbols.
&symbol(Z)& Omit Leading Zeros &symbol(S)& Omit Leading Sign
&symbol(<)& Display Leading Sign to the Left
&symbol(>)& Display Leading Sign to the Right
&symbol(C)& Compress Spaces
&symbol(.N)& Display upto N decimal places
&symbol(T)& Omit thousands separator
&symbol(R)& Right justified
&symbol(I)& Suppress output of the initial value
Regards,
Shiva Kumar
Maybe you are looking for
-
How do I remove a reflection from my photo slideshow?
I have set up a slideshow on a photo page and published OK. However I have reflections under some images and not under others, regardless of whether I view via Safari or Firefox. Actually I would rather not have a reflection at all. I have read throu
-
Show only first 20 votes by each user
Hi, I have a table called Votes with three columns: UserID number, Vote number, TimeOfVote number, Vote could be any number between one and twenty-two. TimeofVote is in format yyyymmddhhmmss Now I want to create a view table that only shows the first
-
No Audio on iPod Video playback
hello, I've tried to resolve the problem myself by reading the boards and various "how-to's" but never really got a straight answer. My concern was (like many others) a problem with video on my iPod. I had no problems tossing a video into my library
-
I have just downloaded the trial version of PhotoShop Elements. I managed to 'play' with one photo before I had to go out. On return I found I could not access PS11 at all after clicking on screen icon. Any ideas? I am using Vista.
-
Mailbox Export - Filtered for Date Range and Body Content
I have been pulling my hair out with this one and hopefully someone can help. I need to search a mailbox and export all (sent & received) messages that fit in a date range and also have a specific word in the body. The query I am using doesn't seem t