Conditional Calculation/Filter in Crosstab

Hi All,
Is there a possibility to make conditional calculation in a crosstab ?
I want to filter some records, if their key figures are under a certain value.
There is a possibility to write formula for that key figure and suppress related records (e.g if key figure is < 100 etc..). But I want those records not to come to cross tab at all. In BW queries, we can create "condition" for that purpose. I wonder if there is such a functionality in CR also.
Thanks in advance
Ozan

Hi,
1. create a formula field in the field explorer.
Example: Formulafield name is "Sales" and the formula is
IF >20000 then
2. Create Cross-tab, go to Cross tab Expert , select the previously created formula field into summarized fields.
Regards, Anil

Similar Messages

  • OR Condition in Filter area of a query.

    Hi All,
    I have a scenario, where i need to implement a condition where I need to put combination or AND and OR condition.
    Its something like:
    Employment status shd be 'Active' OR
    Term date Shd be in cureent year AND
    line of Business = '99' or '97'.
    I was planning to put these conditions in Filter area of a query, but since there is no option for OR condition. Hw shd I go about implementing this.
    Any suggestions are welcome.
    Thanx.
    Pooja.

    Hi Pooja,
    Multiple characteristics with value restriction corresponds to AND conditions and not OR Conditions.
    Alternatively can create Formula on keyfigures which specifies all the conditions. Formula supports all logical ,mathematical,boolean operations.
    Hope that helps.
    Regards
    Mr Kapadia
    Assigning points is the way to say thanks in SDN.

  • Is it possible to sort the list of Conditions/Calculations?

    Is it possible to sort the list of Conditions/Calculations so that they display alphabetically in the list?
    My list of conditions is getting quite long and haphazard now!
    Cheers
    Sapphie

    I was afraid of that!. It is very disappointing because , as I am developing a set of reports for the first time, I will create conditions/calculations in quite a non-ordered way and then end up wanting to group similar ones together.
    Hopefully a future version will allow this?
    Lee

  • Error while processing conditional formatting formula in crosstab

    This conditional formatting formula must return one of the following Color Constants: ' A number, currency amount, boolean, date, time, date-time, or string is expected here. Details: errorKind
    The above error is displayed on the the Business Objects Report Server when running my report.
    The XI server version information is as follows:
    BusinessObjects Enterprise XI Release 2
    Business Objects
    11.5.0.3135
    20060628
    Crystal Reports XI Release 2
    Business Objects
    11.5.0.31327
    20060628
    My IDE is Crystal Reports 2008.
    The error is being generated for the following conditional formatting formula which is in my crosstab:
    evaluateafter ({@concatAppTypeAppMethod});
    if CurrentRowIndex = 1 then
        color(0,153,153)   
    else if CurrentRowIndex = 2 then
        color(168,146,101)
    else if CurrentRowIndex = 3  then
        color(0,51,153)
    else if CurrentRowIndex = 4  then
        color(204,51,51)
    else
        color(153,153,153)
    This formula is applied via the Crosstab "Format Field>Font" tab.  In the report developer (Crystal 2008) the report runs without error.  When deployed to the server it fails with the above error.
    Heres the details of {@concatAppTypeAppMethod}:
    whileprintingrecords;
    "Designs filed " + {Command.APPLICATION_METHOD}
    The crosstab is structured as:
    Row = {@concatAppTypeAppMethod}
    Column = {@getMonth}
    Summary = Count of {@concatAppTypeAppMethod}
    Details for  {@getMonth}:
    right(totext(year({Command.ACN_COMPLETED_DATE}),"#"),2) + totext(month({Command.ACN_COMPLETED_DATE}),"0#")
    The above functions Row i.e. {@concatAppTypeAppMethod} and {@getMonth} use fields from the SQL command. 
    {@getMonth} parses the ACN_COMPLETED_DATE field, obtains the record month and year and concatenates these as a string which can be displayed as follows in the crosstab:
    May-08, Jun-08 etc.
    {@concatAppTypeAppMethod} parses the APPLICATION_METHOD field and obtains the application filing method i.e. Online or Internally and concatenates the pretext "Designs filed " to the filing method (also a string).
    I have tried various combinations of whilereadingrecords, whileprintingrecords and evaluateafter() with no success.  The problem occurs because the conditional formatting formula is being executed before the records being formatted are ready. 
    I believe this is a problem with the crystal reports software and/or XI server. 
    Please prove me wrong.

    Hi Raghavendra,
    Thanks for your prompt answer!  Can you confirm?  Is it because I'm using calculated members in the report and these are not support by the XI server specified in my error report above?
    If so, do you have any suggestions with regard to how I might be able to create a graph with the following attributes:
    Show summary (count) of records per month per application method (i.e. online or internal. this is a database field retruned by the SQL command).  In addition I need to add a series to the graph that shows the totals number of records per month irrespective of the relative application method (i.e. sum of online and internal) and finally I need to show the total number of online applications (i.e. application method = online) as a percentage of the total number of applications for the month.

  • Report Condition - calculation using "in"

    Hi,
    In the conditions of a report, I would like to define a condition
    A in ('abc','def',...).
    Any time that I have tried it in the past it has been a problem (depending on how I wrote the condition, I would either get an error message or it would only use the first item in the list). Up until now I just used a separate condition for each item with the connection OR.
    However, now I have a list of 11 items in the condition and it would be much easier if the IN statement was possible.
    We have Discoverer 10.1.2.1 but in three weeks will be upgrading to 10.1.2.3.
    Thank you.
    Leah

    Hi Tamir,
    I cannot believe that after all the times that I tried different ways to work out using "IN", just now I realized what the problem is.
    The only way that the IN can be defined is if I write the value list in the space itself in the condition statement. I CANNOT use the "Create Calculation" choice. If I do, and use parenthesis, then I get an error that it is an invalid statement. If I leave the parenthesis out, then it just accepts the first value in the list and leaves the rest out of the condition.
    Just curious - is this just a problem in this version of Discoverer, or is using the "Create Calculation" an incorrect assumption on my part?
    Thank you.
    Leah

  • Using Session Variable with Conditional Formatting Filter

    Hi,
    I'm trying to add a condition to my report in order to flag all opportunities that have a close date that is in the past. The way I'm trying to do this is by adding a condition to say when close date is less than current_date, flag the column with an image.
    Issue I'm having is that the filter window within conditional format tab appears to not have the session variable option as you do when you create a filter on a column the normal way. A colleague told me to use an SQL expression, but again this option seems to be unavailable too within the conditional format tab.
    Can anybody assist please?
    Thanks

    Create a new column and write a CASE WHEN condition like case when close date < current_date then 'Y' ELSE 'N' END.
    Then on your actual date column, you can do conditional analysis based on the newly created column for values having Y then the image.
    finally, you can hide the newly created column.

  • Freight condition calculated on header level , not at item level

    Hi,
    I am creating PO with 2 line items..
    mat X qty 1 price 100 INR
    mat Y qty 1 price 100 INR
    Now i have given freight as 500 INR in header level...
    My prob is freight is getting calculated based on number of  item level...
    It means if i have 2 item levels my freight is coming 1000 INR....
    it is adding based on line item.....
    but it shud come 500 INR....
    I want my freight to be added at header level......
    Utsav

    HI
    What will u do if in case freight shud be 500 + 500 = 1000
    So leave this condition as it is
    Goto Tcode M/06 ... and create a new condition for freight ... by copying the present condition type and then add it in pricing procedure
    But in "details "of this new condition type  put a tick mark against group condition and header condition.
    "To go into details of a condition type ... select the condition type and then click on lens button"

  • How can I do calculation positioning in crosstab?

    I have a calculation that should be displayed in only one column, at the right of a crosstab. Discoverer insists to copy my calculation under all columns, repeating the same result under each.
    Is their a way to fix it at one place?

    this is an example of how you can accomplish this with Region along the x-axis.
    You need to do the same thing with the ages to get age along the x-axis.
    I'm not sure it is an ideal solution given the large range of ages.
    For each region, create a calculation as follows:
    Calculation named 'Region A'
    SUM(DECODE(Region,'Region A',[person count])
    Calculation named 'Region B'
    SUM(DECODE(Region,'Region B',[person count])
    Calculation named 'Region Z'
    SUM(DECODE(Region,'Region Z',[person count])
    Then a final calculation, to get the percentage:
    Calculation named 'All regions'
    something like
    (SUM([person count]) OVER (Parition by AGE])) / SUM[person_count]
    which will divide the [person count] for that row (age) by the total [person count].
    To get Age along the x-axis you need to create a calculation for each age, and the final calculation will be
    (SUM([person count]) OVER (Parition by Region])) / SUM[person_count]

  • FI: Payment condition calculating 2 due-dates depending on document-date

    Hello community!
    I'm searching for a definiton of a FI-payment-condition which is calculating two different due-dates depending on document-date.
    E.g.:
    Invoices dated from 01.03.08 till 09.03.08 should be paid on 10.04.08.
    Invoices dated from 10.03.08 till 31.03.08 should be paid on 10.05.08.
    Or must this be realized by a FI-substitution???
    Thanks for an answer.
    Kind regards,
    Bernd

    Hello,
    You didnot mention if u need posting date as base or document date. However your scenario, below is
    the answer for your query is
    1. Create one customised payment term only eg. XXX
        for first scenario,
       Day limit is 9 ;
       under payment terms tab , fixed date 10, Addl month 1
       for second scenario
       in the same payment term XXX
       Day limit is 31,
       under payment terms tab , fixed date 10, addl month 2.
    Explanation.
      as day limit is 9, what ever the dates of transaction between 1-9 it picks first setting
    and after 9th until 31st it picks second setting.
    I hope this clarifies you.
    Thanks
    G.Bharathi

  • How to set a Conditional Format in a Crosstab

    Hello,
    I think I have a straight forward problem, but after reading the instructions I can't seem to make this work.
    I am using BI 10.1.3.4.1
    I have a crosstab that I have build as an RTF template that looks like the following
    name
    rolename, priv name, priv desc muser
    The report puts a 1, 2 or 3 value in muser. If it is a 1 or 2 I want the cell to be green if it is a 3 I want it to be Yellow
    Here is my conditional format that I am trying to make work for just the 1's
    <?if:MUSER=1?>
    <xsl:attribute
    xdofo:ctx="block" name="background-color">green</xsl:attribute>
    <?end if?>
    It doesnt seem to work. To make matters worse is NULLs out the value in Excel
    What am I doing wrong?

    Hi,
    I too use a cross tab with for-each@column/cell. For me the below code works. It colors the background.
    For NULL values do ensure that you print the MUSER value within the IF block.
    Thanks.

  • Use average of crosstab columns in a calculation in the crosstab.

    Using XI R2  I have a crosstab where I need to have the average weeks sales i.e. the sum of one row divided by the number of columns. I've done this in two ways -
    =Average([Forecast Weeky Qty]; IncludeEmpty)
    =[Forecast Weeky Qty]/Count([Forecast Weeky Qty])
    both of which return the correct value provided it is displayed in a cell outside the crosstab. The problem is if that variable is used in the crosstab it just displays the [Forecast Weekly Qty] for that column i.e. it's not doing the calculation at summary level as I need.
    How can I create an average that will display in the crosstab as the same figure in each column (the overall average) and can therefore be used to calculate another row in the crosstab?
    eg
    Sales - 50, 50, 75, 25, 50    should give average of 50. What I get when I put it in crosstab is
    Avge - 50, 50, 75, 25, 50    WRONG.  What I want is
    Avge - 50, 50, 50, 50, 50
    Thanks
    John

    No, your query doesn't work as illustrated below. Your SQL returns views. Your SQL returns rows that have data that isn't null in them because it relies on the table analyze data which will be out of date when the query is being run.
    select * from user_tab_columns u
    where u.HIGH_VALUE is null;
    no rows selected
    SQL> CREATE TABLE test1
    a    NUMBER
    Table created.
    SQL> select table_name from user_tab_columns u
    where u.HIGH_VALUE is null;
    TABLE_NAME
    TEST1
    SQL> CREATE VIEW test_view AS
    SELECT * FROM test1;
    View created.
    SQL>
    SQL> select * from user_tab_columns u
    where u.HIGH_VALUE is null;
    TABLE_NAME
    TEST1
    TEST_VIEW
    SQL> INSERT INTO test1 (a) VALUES (1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from user_tab_columns u
    where u.HIGH_VALUE is null;
    TABLE_NAME
    TEST1
    TEST_VIEW
    SQL> select * from test1;
             A
             1
    SQL>

  • Using conditions to filter the data of UDO in a user form

    Hi every body,
    I've created a user form with an UDO, I want to filter the data coming of the user table where the field U_CardCode = CardCode. To acheive this goal, I used the collection Conditions.
    I've write this code. It dosn't work. Has someone an idea???
    SAPbouiCOM.FormCreationParams _CreationParams = null;
                    CreationParams = ((SAPbouiCOM.FormCreationParams)(SboApplication.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)));
                    CreationParams.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbsFixed;
                    _CreationParams.UniqueID = "Act";
                    CreationParams.ObjectType = "UDOAct";
    _Form = SboApplication.Forms.AddEx(CreationParams);
                    //User Data Source
                    _DBDataSource1 = Form.DataSources.DBDataSources.Add("@OXIATTN_CSTACT");
                    conditions = (Conditions)SboApplication.CreateObject(BoCreatableObjectType.cot_Conditions);
                    _condition = _conditions.Add();              
                    condition.Alias = "UCardCode";
                    condition.Operation = BoConditionOperation.coEQUAL;
                    _condition.CondVal = "C20000";
    DBDataSource1.Query(conditions);
    _Form.Title = "Compte du site";
                    _Form.Left = 350;
                    _Form.Top = 50;
    .....etc
    Thank you for your help
    Haifa

    I use the recordset command and a doquery.
    I find it easier to use than the condition object.
    if you need to pass the bp code to the new form, read the value from the bp master data record and then pass it to the new form.
    If you use xml you can pass it right after you call the form.

  • Pricing Condition - Calculation

    I need to configure a scenario in Pricing with the formulae:
         Pricing = Quantity x k Factor x Price maintain in VK11
    k Factor is a variable that comes from a file (usually it is 0.4, 0.6 or 1). The program will read the file and interpret that into a Sales Order and Invoice.
    Pricing has to be calculated in the line item as above. Any idea how I can solve this.
    Kind Regards

    Dear Anand,
    you can do this by writing a logic in condition formula calculation rule and that routine has to assign to you base price condition.
    1.Any how system will calculate price = Qty * price in VK11 now you apply logic to multiply with K factor through routine.
    2.second way is that you can add  one more line item 20 as per the below screen shot and there you can apply logic for K Factor , because for your understanding you can maintain like this .
    Regards,
    C.B Reddy.

  • Is conditional calculation in the report possible?

    Hi,
    While using currency translation in a query, amounts are being multiplied by 100 for currencies JPY, KRW & TWD.
    Is there a way to divide these currencies by 100 if currency key is one of above mentioned type?
    I've already checked notes 153707 & 760195 which are relevant to my issue.
    other options are fixing this bug which could be a nightmare for us as "Currency decimal bug" originated from R3 settings.
    we have many functions & programs (both in R3 & BW) where we hardcoded to get the correct value.
    So, we might not be able to handle this bug so easily by removing above mentioned 3 entries from table TCURX.
    Appreciate any kinda help.
    Thanks,
    hari immadi
    http://immadi.com
    SEM BW analyst

    Eugene,
    you are right. I could able to manage with a total of just 10 columns (same as before) & still get the correct results.
    only change I've made to your solution is, "not equal to < >" rather than "greater than >" in the formula you have proposed.
    So, final formula is as follows.
    ( ‘CUR100’ < > 0 ) * ' CUR100' * 100 + NOT ( ' CUR100' < > 0 ) * 'YourKF'
    It took 2 hours for me to figure out why 9 columns are working with your formula but not 1 column.
    1 column is having a debit (negative amount) for currencies JPY, KRW & TWD and is not dividing by 100 as it is not meeting formula condition.
    Overall, your solution is great & it helped me a lot.
    Sudhakar,
    I agree with you on writing a transfer rule to divide by 100. But, we are dealing with a Transactional/Basic combo cube so, I just can't depend on transfer rules. But, am sure that will work.
    Srini,
    thanks for your reply. Appreciate if you can share what exactly you are doing with your code & where the code is written.
    Thanks,
    hari immadi
    http://immadi.com
    SEM BW analyst

  • Header conditions calculated on item level.

    Hello,
    We are on SRM 4.0 (server 500). I have created a header pricing condition as a copy of 01RH for a surcharge. I created a contract with the condidition that a surcharge of ZAR 65 to be added for all orders below ZAR 1000. When I create a shopping cart the surcharge is added to all the items, and not to the total of the shopping cart. The requirement is to calculate the charge as per the total value of the shopping cart.
    Any ideas on how we can acheive this?  Is there a badi we can implement?
    Regards
    R

    Hi,
    I'm not sure of the Shopping Cart functionality of SAP CRM. Might be CRM E-commerce have a shopping cart or a shopping basket feature. You can have a look at SAP CRM Help Portal.
    [CRM WebChannel|http://help.sap.com/saphelp_crm70/helpdata/en/a9/0fff29fa4c46bca6e01d70e9201e92/frameset.htm]
    If you are using the CRM One Order API's to persist data in the Database, then probably you can have a look at the BADI - ORDER_SAVE. This is badi which will be triggered and you can code you own application logic. But, have a look at the BadI documentation and sample implementation. The sample implementation class is - CL_EXM_IM_ORDER_SAVE.
    I hope this will help you somehow.
    Thanks,
    Samantak.

Maybe you are looking for

  • Network inspector no longer working.

    Applies To: Microsoft Edge F12 Developer Tools Release: Windows 10 Insider Preview SDK and tools, April 2015 release Issue: Network inspector no longer working.

  • Oracle em console 11.1.1.4 not showing the deployed composites

    Hi We have deployed composites in our soa 11.1.1.4 environment. On em console we see the deployed composites on left side by expanding soa-infra -> default. but when I click on the default partition the composites are not displayed on the right side.

  • IPhoto 6.0.6 Upgrade Regret

    Hello, I recently did a system update update, (10.5.7) which updated my iPhoto to 6.0.6. Ok, for the record, I like some of the new features, but I HATE what it has done to my image managing, etc. Previously, I was able to view all my images in the c

  • Port with clearing - SM35 - Profit Center

    Hello FI/CO Gurus, Scenario, Have 2 customer line items to be cleared through payment. There is some intrest calculated due to overdue. 2 Line items of 124 each. Payment received of re 250. So 4 rs is intrest. When I select the open line items and th

  • Interesting little bug...

    Ok. I've been able to repeat this and a friend of mine is able to repeat it as well: 1. Select any channel fader (mixer or arrange) 2. Double-click the volume amount (0.0db); either midi or audio 3. Enter -10 as the amount 4. What do you get when you