Formula logic
Hi All,
Can any one explain me the below Formuls.......not sure whether is it IF Condition.
( ( 'PR Qty' - 'Ordered Qty' ) < 0 ) * 0 + ( ( 'PR Qty' - 'Ordered Qty' ) >= 0 )
( 'PR Qty' - 'Ordered Qty' )
Above logic is to get OPEN PO QTY........once i ran the report valus is not shown in the report but i can see Value in reslt rows.
Thanks in advance
Sujan
Hi,
As per my understanding in formula:
( ( 'PR Qty' - 'Ordered Qty' ) < 0 ) * 0 + ( ( 'PR Qty' - 'Ordered Qty' ) >= 0 )
( 'PR Qty' - 'Ordered Qty' )
their is no use of "( ( 'PR Qty' - 'Ordered Qty' ) < 0 ) * 0 " in formula, becoz whatever may be output of "( 'PR Qty' - 'Ordered Qty' ) < 0 ) " which is '1' or '0', it will be multiplied with '0' so result will be '0'.
next cums"( ( 'PR Qty' - 'Ordered Qty' ) >= 0 )" , here output will be '1' if result of "'PR Qty' - 'Ordered Qty' " is greater than equal to '0'.... otherwise result will be '0'.
And output of "('PR Qty' - 'Ordered Qty' )" will be value.
Overall output: if 'PR Qty' - 'Ordered Qty' is >= '0' the value will be shown otherwise the result will be '0'.
Similar Messages
-
Formula Logic for Dates in the Cell Editor in Query Designer
Hi All
We are on BI7. (This is in the Cell Editor in Query Designer)
I am trying to create a formula in one cell that enters a date based on the following logic (Lets call this formula A):
I also have a placeholder "Cell reference" for a Date in another cell in the Cell Editor (Lets call it B).
I also have two other dates in seperate cells in the Editor (Lets call them C and D)
What i need to do is check that either C or D are not blank i.e one at least has a date and if so enter the date that is in B in A.
My formula logic in (Cell A) at the moment is as follows:
( Cell C <> 0 ) OR ( Cell D <> 0) * Cell B
When I run the query It is coming back with either a 1 or 0 depending if there is a date in C or D.
What I want it to do is to display the actual date of 'Cell B' in 'Cell A' if ( Cell C <> 0 ) OR ( Cell D <> 0)
If the value of B is blank ie no date I also want A to be blank i.e not equal zero or a blank date ie 00/00/0000
Example 1
Cell A 08/09/2009
Cell B 08/09/2009
Cell C 15/03/2010
Cell D
Cell A should = 08/09/2009 as there is a Date in Cell C or D and if so enter the date of Cell B in cell A
Example 2
Cell A
Cell B 08/09/2009
Cell C
Cell D
Cell A should = BLANK as there is a NO Date in Cell C or D
Example 3
Cell A
Cell B
Cell C 15/03/2010
Cell D
Cell A should = BLANK as there is a No Date in Cell B although a Date in cell C or D.
Thank you for assistance in advance
Kind regards
StevoHi there,
It seems you have done almost everything...
What it seems that is missing is probably the cell reference for Cell C and for Cell D, or did you forget to mention it here?
So here it is the big idea:
- In the Cell Editor of the query designer, create a new cell reference for Cell C, let's name it ref_cell_c;
- In the Cell Editor of the query designer, create a new cell reference for Cell D, let's name it ref_cell_d;
- In the Cell Editor of the query designer, create a new cell reference for Cell B, let's name it ref_cell_b;
- In the Cell Editor of the query designer, create a new formula for Cell A, let's name it form_cell_a;
The form_cell_a should be created by the following:
( COUNT(ref_cell_c) + COUNT(ref_cell_d) ) * ref_cell_b
So COUNT(operand) returns 1 if operand is different of 0 else it returns 0; So if ref_cell_c has any valu or ref_cell_d has any value it should return the value of ref_cell_b.
Please note that with this formula, if you have values in both ref_cell_c and ref_cell_d this formula returns 2 * ref_cell_b, which is not what you pretend, I'm assuming you'll have value only for the following combinations:
ref_cell_c has value but ref_cell_d don't have any
ref_cell_c don't have any value but ref_cell_d has a value
ref_cell_c don't have any value neighther has ref_cell_d any
Diogo. -
Fuzzy Lookup Formula/Logic
Could someone from the dev team please share as much details as you're comfortable with regarding the
formula or logic used to calculate the similarity for a fuzzy lookup match?Hi Andres,
Fuzzy Lookup matches input records that are "dirty" (because of misspellings, truncations, missing or inserted tokens, null fields, unexpected abbreviations, and other irregularities) with clean records in a reference table. Fuzzy Lookup can help
find data in large tables when your data has a corrupt or incomplete string key.
Fuzzy Lookup uses the Error-Tolerant Index (ETI) to find matching rows in the reference table. Each record in the reference table is broken up into words (also known as tokens), and the ETI keeps track of all the places in the reference table where a particular
token occurs.
For moe details about Fuzzy Lookup, please refer to the following documents:
Fuzzy Lookup and Fuzzy Grouping in SQL Server Integration Services 2005
Using Fuzzy Lookup Transformations in SQL Server Integration Services
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
All
I'm stuck on what I think should be a really simple thing to do! We have a simple dimension formula that divides one account member by another, however the number to divide by doesn't exist at all levels therefore I want to fix it to a specific member of another dimension. The logic we have is :
'iif([CR202]=0,null,[CR206]/([Account_Circ].[CR202],[DistChannel].[NoDist_Channel])), solveorder=10
Is there anything obvious wrong with this logic?
Thanks in advanceGayle,
Please try the following formula (the format goes a little bit wrong when posing a line with square brackets, please add them around the dimension names and members).
iif(CR202=0,null,(CR206/(Account_Circ.CR202,DistChannel.NoDist_Channel))),solveorder=10
Alwin -
Hi
I have the following data and the status of the formula should be 1 or 0.
Cancel Date : 05/31/2011
Formula : cancel date >=today's date
Cancelled(Yes =1/No= 0) : 1
Cancel Date : # (no date assigned)
Formula : cancel date >=today's date
Cancelled(Yes =1/No= 0) : 0
Cancel Date : 06/30/2011
Formula : cancel date >=today's date
Cancelled(Yes =1/No= 0) : 0
i tried the following formula in the query designer 7.0 but second condition gives 1 instead of 0.
DELTA ( COUNT (cancel date >= today's date)).
I am not able to find a better solution, please suggest.
Thanks!
Edited by: bwcrm01 on Jun 1, 2011 6:28 AMHi,
Here todays date is 06/01/2011 right? Shouldnt then be 1, 0 other way round for 1 &3.
Cancel Date : 05/31/2011
Formula : cancel date >=today's date
Cancelled(Yes =1/No= 0) : 0
Cancel Date : 06/30/2011
Formula : cancel date >=today's date
Cancelled(Yes =1/No= 0) : 1
Anyways, Cancel Date is present as a Characteristic or KF? If Char, you can create the RKF, add above CKF in a RKF with Cancel Date NE #. This will give 'Blank' not zero when Cancel date = #. -
Problem with combination of two working query formulas
Hey guys,
I have a problem in building a formula correctly with the BEx formula logic. I am sure, you can help me with this.
Right now I have four columns in my query. The first column (Actual) displays actual amounts either in local (10) or reporting (25) currency type depending on the optional selection either in the variable screen or in the free characteristics filter. The second column (Actual with Budget exch. rate) always shows the actual amounts with the budget exchange rate of the reporting currency. The third column (Budget) is build in the same way as the first column, but shows budget amount data. In the fourth column (Variance) the variance between budget and actual data should be calculated, but here lies the problem:
The formula should differentiate the chosen columns for the calculation depending on what currency type is selected either from the optional variable selection before the query is executed or from the free characteristics filter. So if I select currency type 10 it should calculate the variance by subtracting the budget column from the first column, but if I select currency type 25 it should subtract the budget columng from the second column.
I have implemented a formula which works already, but not for both selection possibilities (variable screen or free characteristics filter). Either the formula works when I input a currency type in the variable selection screen or when I select a filter value in the free characteristics filter. However, I need to combine both formulas in one working formula so that the user can choose if he wants to filter the currency already in the variable screen in the beginning or in the filter after query execution. Here are the two formulas which I need to get combined into one formula:
Used Variables:
VScreen_Selection --> value from the key of the optional Currency Type Variable from the Variable Selection Screen
Filter_Selection: --> value from the key of the InfoObject Currency Type
Formula for Variable Screen Selection:
(VScreen_Selection == 10) * (Budget - Actual) + (VScreen_Selection == 25) * (Budget - Actual with Budget exch. rate)
Formula for Free Characteristics Filter Selection:
(Filter_Selection == 10) * (Budget - Actual) + (Filter_Selection == 25) * (Budget - Actual with Budget exch. rate)
Can you help me to combine both Formulas? I can't believe that this is too difficult. Many Thanks in advance.
Best Greets,
NorbertHello.
Did you try this:
Formula 1: Hidden
(VScreen_Selection == 10) * (Budget - Actual) + (VScreen_Selection == 25) * (Budget - Actual with Budget exch. rate)
Formula 2: Hidden
(Filter_Selection == 10) * (Budget - Actual) + (Filter_Selection == 25) * (Budget - Actual with Budget exch. rate)
Formula 3:
(Filter_Selection <> 10) * (Filter_Selection <> 25) *Formula 1 +
(VScreen_Selection <> 10) * (VScreen_Selection <> 25)*Formula 2 -
Formula Columns in Data Template
Hi,
Is it posiible to have formula columns in data template apart from summary columns.please suggest.
RegardsYou can put those formula-logic in sql query.
summation/avg functions can be used directly in element. -
Error while running business rules
HI,
Few users get "Error detected while running job:BR name". The information from the log is
[Tue Apr 05 10:32:25 2011]Local/Plan_UAT/Rev_FLA/admin/Error(1023040)
msg from remote site [[Tue Apr 05 10:32:25 2011]Local////Error(1051201) Identity Mismatch from the Single Sign On Server]
[Tue Apr 05 10:32:25 2011]Local/Plan_UAT/Rev_FLA/admin/Error(1200467)
Error executing formula for [Seats shared]: status code [1051201] in function [@_XREF]
[Tue Apr 05 10:32:25 2011]Local/Plan_UAT/Rev_FLA/admin/Error(1200467)
Error executing formula for [Unbillable_hours_per_month]: status code [1051201] in function [@_VAL]
[Tue Apr 05 10:32:25 2011]Local/Plan_UAT/Rev_FLA/admin/Warning(1080014)
Transaction [ 0x23013f( 0x4d9aa261.0x5c0a8 ) ] aborted due to status [1051201].
what could be the issue? Is it a sign on error or data cache issue?
Regards,
Ragav.Have you validated the formulas/logic for "Seats shred" and "Unbillable_hours_per_month"?
There are clear hints in the log you provided
[Tue Apr 05 10:32:25 2011]Local/Plan_UAT/Rev_FLA/admin/Error(1200467)
Error executing formula for [Seats shared]: status code [1051201] in function [@_XREF]
[Tue Apr 05 10:32:25 2011]Local/Plan_UAT/Rev_FLA/admin/Error(1200467)
Error executing formula for [Unbillable_hours_per_month]: status code [1051201] in function [@_VAL]
Cheers
RS -
Groups Based On SubGroup Totals
I'm wondering, without doing a subreport, if you can have Groups that are based on values within subgroups.
For example:
g: Warehouse A
d: Item #
subtotal: Count of Item # for Warehouse A
g: Warehouse B
d: Item #
subtotal: Count of Item # for Warehouse B
I want to be able to Group the Warehouses by the SubTotal values.
For Example:
g: 001-050 Items
g: 051-100 Items
Easy to do the formula logic for the If/Then/Else, but I can't see a way to implement in the report.
Thanks.You can do this by using a correlated sub query in a SQL Command.
Something like this...
SELECT
outerq.WarehouseName,
(SELECT COUNT(ItemID)
FROM tblInventory AS subq
WHERE subq.ItemID = outerq.ItemID
AND subq.WarehouseName = outerq.WarehouseName) AS ItemCount
FROM tblInventory AS outerq
ORDER BY outerq.WarehouseName, ItemCount
This will allow the total item count to be included with the data set as it's returned from the database, before any grouping is done in CR. From there you can include the "ItemCount" field in your groups or group sorts.
HTH,
Jason -
Using the new EPMDriverBasedRefresh function for What-if Analysis
Hi,
A new function is available that supposedly enables easy what-if modelling in BPC. This sounds great because currently for what-if analysis, you need to duplicate data in the database (using differnet categories or data sources) which can be time consuming and impact overall performance.
Has anyone got any experience with this EPMDriverBasedRefresh function? There is some documentation on SAP's userguide but there are no specifics on the type of logic that is supported for scenario outputs i.e. is it only Member Formula Logic (Account 1 x Account 2 = Account 3), or can it support more complex scenarios such as running through Default Logic (and any BAdIs you may have) to retrieve the modelled output? (This would be awesome!)
32.20 has the detail in the userguide: https://help.sap.com/businessobject/product_guides/boeo10/en/EPMofc_10_user_en.pdf
and it says:
"This function enables you to refresh specific rows or columns of one or more reports, based on a specified range of data drivers whose values you can modify.
Additionally, you can specify to refresh a whole report that is outside of the specified range of data drivers.
This function can be used for example for what-if analysis."
My testing has found that it does not run default logic (where our driver-based calculation BAdI is called).
Any experience from fellow SDNers would be much apprecited! Otherwise I'll put a call into SAP to get the documentation expanded a little.
Cheers,
NickHi Nick,
It looks like this function only deal with the report refresh with multiple reports in one workbook...
Not extremely useful. If I am wrong, please correct me.
Vadim -
Help needed on webdesign, logo's, dynamic charts, etc.
This is my first post here on this forum, so forgive me for maybe not giving you all the relevant data.
Background
Bill Gehrke and myself have developed a benchmark test for Premiere Pro CS5. Look here: PPBM5 Benchmark
Since last week I have made this site, the very first in my life with Dreamweaver CS4. It was the first time I used DW and let me tell you, for a PR user, it is really a whole lot different.
Workflow
People go to the site, follow the Benchmark Instructions, download the ZIP file, run the test and mail the results to us.
We enter the data in a Excel spreadsheet and export that to .HTML format and upload it to the site. This can be seen in the Benchmark Results.
Questions
Here is a screenshot of the spreadsheet:
There are three cells of interest: A2 which is a link to the Home Page, and M1 and M2, which link to two separate JPG charts.
What I want on the published HTML results page is overlaying the cell A2 with a logo, like on all other pages, but keep the current link underneath the logo intact to return to the Home page. Of course without impacting the layout of the spreadsheet. When trying to insert the logo, it looks like this in Live View, and that is not what I want. Look at the problem:
Second I want a Spry tooltip on the links to the charts, or another solution, that when one hovers the mouse on either field, it will display the linked to chart over the spreadsheet, untill the user moves the mouse away. One could also consider an overlayed thumb file of the chart, that automatically will be enlarged to full size with the Tooltip.
The complicating factor is of course that when new results are submitted and a new HTML file is created, it does not require new coding.
I have tried to do the overlays in Excel, but the export to HTML from Excel is pretty weak, and the overlayed pictures that show up fine in Excel, do not show up in DW or the site after uploading. One other complicating factor in Excel is that overlays disable the underlying link.
I hope this explains what I want to do. Maybe some of you, far more knowledgeable and experienced, have some suggestion on how to tackle this.Ben & PZ,
Thanks in large part to your help and suggestions, I have solved the major issues I had.
First, I don't want to give the spreadsheet out to people, so downloading is out of the question. There is just too much error checking code, formulas, logic and formatting and numerous macros in the spreadsheet, that I consider that as proprietary and even though there are ways to protect the contenct of a workbook, it is just too easy to circumvent.
People will have to do will the large table of results, but the essential information is shown in such a way that horizontal scolling is hardly necessary. Vertical scolling will become necessary when there are more entries, like the around 150 entries in the PPBM4 benchmark for CS4, but that can't be helped.
I tried your suggestions, one step at a time, and had a couple of problems, in the sense that several footnotes, that were automatically added to several columns based on the content of other columns, were lost. For instance, when someone says he has a SATA disk, but it runs at 10,000 RPM and the size is either 150, 300 or 600 G, it is a Velociraptor and the interface is changed to SATA1 with the 1 as a supercript. In combinations with the difficulty I envisioned with the complete reformatting of the table in HTML, I searched for alternative approaches, and I found it.
With the help of Lightbox, I now have the two charts I want to show available, it looks pretty good, although I had to adjust the position of the charts in the lightbox.js file.
You can see the result here: http://ppbm5.com/Benchmark5.html
Now the only thing to figure out is the logo, but that is secondary.
Thank you both for your help and suggestions. As a consequence, I have learned a lot and made another step forward. -
Related Data Source for Customer Trial Balance Report
Hi Guys,
Can any one please let me know the related Datasource, DSO and Cube available to develop Customer Trial Balance report on BEx.
<b>My required Row/Colum objects are</b>
<b>KPIs Calculated/restricted Formula/Logic Unit Authorisation</b>
Total Calculated Sum of all the Quantity
invoiced invoices for a
Quantity FME
Proposed
Base Price Calculated Average price Amount
for all invoices
per FME
Average Eqv.
Base Price Calculated Average price Amount
for all invoices
per FME
Price
Difference Calculated Proposed Base Amount
Price - Average
Eqv. Base Price
<b>The aggregation behavior of the individual KPI</b>
Key Figure Aggregation Characteristic Time
(Sum, Max, Last)
Net Debit Amount Sum All All
Net Credit Amount Sum All All
Total Debit Amount Sum All All
Total Credit Amount Sum All All
<b>Characteristics</b>
Hierarchy Display Authorisation Selection Status/Mapping
Customer Number Yes KNA1-KUNNR
Customer Name
Business Area Yes PRCTR
Special GL Indicator Yes Company Code Yes BKPF-BUKRS
Industry Code KNA1-BRAN1
This is how my Functional Spec is..
Please let me know ASAP.
Thanks
Muralihi,
You can use this report.
RFSLD00 Trial balance
For Further Reference use the link.
http://www.abapcode.info/2007/06/standard-sap-reports.html
Regards
Sumit AGarwal -
Programmatically Change Page Size
I have a main crystal report that has two sub reports in it. Which subreport is displayed is determined by formula logic in the suppress option of the section expert.
My issue revolves around the page size requirements for the two sub reports. One sub report MUST be printed on letter size paper (8.5 x 11) and the second sub report MUST be printed on legal size paper (8.5x14). Crystal is applying the page size set in the "main" report to both sub reports. Does anyone know of a way to change a reports page size at run time, without manual intervention?
I'm working with Crystal XI.
Thanx in advance.Hello,
I moved your post to the BOE forums. In CR 2008 you can set paper orientation for each section but you cannot change paper size. Your options may be setting up a double print job, Print first page and then second page etc. on a separate schedule.
Unless you use the SDK the BOE forum may be able to help you configure this suggestion. OnDemand report viewing should give you a manual option to print but again but not sure if it's configuable through the viewers themselves.
You may want to create a support case in Service Market Place and work directly with a support engineer.
Thank you
Don -
Variable input for the time shift NEXT()
Hi Sap support,
Is there any way to make the parameter on the time shift 'TIME=NEXT(%var%)'
the idea is the user would input/send the value that will be place on the NEXT parameter..
I've tried using the get statement but it doesn't retrieve the values.,..
*REC(ACCOUNT="ACCT1",TIME=NEXT(GET(ACCOUNT="ACCT2")))
Thanks,
ReyHi Rey,
First you have to create a DM dtsx file then go to modify -> view package file -> advance
disable a standard prompt by using " ' " then replace it using script like this
PROMPT(TEXT,%Dimension%,"Select Dimension",,"") << this prompt could only work on one selection only
under the execute formula logic file place this
TASK(Execute formulas,FORMULASCRIPT,"*FUNCTION LOGICPARAM=%Dimension%|")
Done from here and then save the Dtsx
open your script, and make this additional script
*SELECT (%DimensionID%,"ID","Dimension","[CALC]='N' and [ID]=substring('LOGICPARAM',1,charindex('|' , 'LOGICPARAM')-1)")
and then place that %DimensionID% anywhere on the script. But remember while script run on input schedule can take CV as xdim will not work with this one, you have to make xdim to all dimension in application in your script each time after commit.
hope helps. -
Hi team
got the requirement as days between document posted and system date on those i want range like 0-30days,31-60days like.
inputs needed..
thnx
sakit1. Create a formula "No.of Days" with formula "System Date - Document Posted Date".
2. Create a formula "Logic 0 - 30" with formula " (No.of Days >= 0) * (No. of Days <=30).
3. Similarly create for other buckets.
4. Make the display mode if all the formulas created till now as " Always Hide".
5. Now Create a formula "0-30" and in the formula include the formula created previously "Logic 0-30".
Set the Exception Aggregation as "Count all values which are not zera, null or error" and Ref.Char as "Doc No".
6. Similarly create formulas for other buckets.
Cheers,
Neel.
Maybe you are looking for
-
VALUE NOT UPDATED IN LC (FD)
Dear All, I did all needed configuration for Export sale against Letter of Credit I maintained Financial Document in VX11N with all necessary inputs & assigned it in sales order at item level in Billing tab. But after doing invoicing of partial quant
-
Standard cost error..
Hi Friends We have a material with diffrent valuation type per say MFG and procurment etc. During standard costing I found that standard cost is updated only at header level not at child material level, which cause of a loss of the difference cost. S
-
Needs User-Exit/BADI name for Purchase Order in ECC 5.0
MM Experts, We are using ECC 5.0. We have a requirement to change the value of standard SAP fields on the line item and header of the PO tables after PO is saved in the system. I will appreciate if someone can guide me about which BADI or User-Exit I
-
"After Effects warning: Unable to load font "^0" "Helvetica Neue"
Today in attempting to run After Effects CC, I get the above error. -- Helvetica Neue IS installed on my system. After I click OK to the first error dialog, a seconf dialog comes up: "Cannot load font required for the After Effects Interface. Please
-
Could someone please help me with contact form php.
Hi, could someone please help me wright the php for this contact form? <form class="contact_form" action="kontakt.php" method="post"> <p><input type="text" required="required" id="contact_name" name="contact_name" class="text_input" value