Compare Two Characteristics in the report

Hi All,
I have a query, where I need to compare the 'Payment Terms'  opted by the customer (Master data) with Payment terms actually done in the transaction.
So, I have Payment terms present in the InfoCube and also attribute of Customer Master.
Now, I need a report to show only those records where Payment terms varies with the Payment terms in the Master data..
Is this possible...?
Things done:
1. Searched SDN but could not get the solution..
2. Checked with Formula Variables ..but in vein as we cannot pick charactieristics (of Data Type : Character string) with Formula Variables
3. Virtual Characteristics : Not a fessible option due to performance concerns
Regards, Vj

Hi Vijay kumar Nandipati 
Formula variable will work in u r case just create a new formula and there create a
new formula variable it will allow u via replacement path of formula variable and
then comapare that attribute value with the transactional keyfigure.
Via boolean operation.
Procedure:
Just go to Key figure columns in the query designer right clik on it . Select new
formula in the popup selct formula right click on it create new formula variable and
then in the next screen select the processing type as replace ment path and give
the char name and then in the next screen give the attribute value of char and then
populate that value .under formula.
Now select the new formula place original KF - this newly taken attribute value.
it will show you the results.
Regards
R M K
**Winners don't do different things, they do things differently**
> Hi All,
>
> I have a query, where I need to compare the 'Payment
> Terms'  opted by the customer (Master data) with
> Payment terms actually done in the transaction.
>
> So, I have Payment terms present in the InfoCube and
> also attribute of Customer Master.
>
> Now, I need a report to show only those records where
> Payment terms varies with the Payment terms in the
> Master data..
>
> Is this possible...?
>
> Things done:
>
> 1. Searched SDN but could not get the solution..
>
> 2. Checked with Formula Variables ..but in vein as we
> cannot pick charactieristics (of Data Type :
> Character string) with Formula Variables
>
> 3. Virtual Characteristics : Not a fessible option
> due to performance concerns
>
> Regards, Vj

Similar Messages

  • Compare two characteristics in report

    HI,
    In Bex, I need to display report where two characteristics X and Y are equal. How to compare two characteristics in a report?Thanks

    Can you please give a example for whta you need exactly in report?
    Also chars are master data attr or loaded as transactional data?
    --S@A

  • Failed to compare two elements in the array

    very often, I have the error "Failed to compare two elements in the array" in Exchange 2013 ECP. We are not running DAG. I google a bit but don't get a lot of result on this.
    I was trying to track mail from a user who send to DL group. Since I can't do in in ECP , how can I do it in EMS?

    I too have this issue.  I'm not sure how wide spread.  I know of one user who sends emails regularly to a DL named "All Users" which is a Security Group which we then add real users to and not just every mailbox.  When he sends the emails,
    from his perspective, everything is fine, meaning he gets to NDR or anything.  Also, when he adds the Dl in Outlook To field and expands it, all the correct users are there.  In fact, it tells him there are 203 addresses here.  However, only
    184 are actually getting the message.  When I try the EAC to view the tracking report, it will show the message, but if I click on the edit button, I get "Failed to compare two elements in the array".  If I try from EMC with search-messagetrackingreport
    -identity "recipient address" -sender "sender address" -bypassdelegatechecking and the recipient address is the group, it says it could not be found.  If I try with simply putting an email address of someone who is a member of that group, it says Warning:
    An unexpected error has occured and a Watson dump is being generated.  Failed to compare two elements in the array.  I don't know what else to try.  Anybody??

  • Compare two dates in a report

    Hi,
    I would like to compare two dates on a report.
    I would like to compare the opportunity created date and the opportunity modified date. I can't use this formula CASE WHEN Opportunity."Last Modified" = Opportunity."Created Date" then 1 else 0
    I think I have to use TIMESTAMPDIFF but I don't know which interval I have to put to analyze the entire date in this format 31/12/1999 16:49:08
    Thanks a lot for your help
    Regards,

    Hi !
    It depends on the interval you need to compare these dates. If you want to know the number of days between these dates, you'll have to use SQL_TSI_DAY as interval. If it's minutes, you'll need SQL_TSI_MINUTE...
    Here are the possible intervals :
    *SQL_TSI_SECOND, SQL_TSI_MINUTE, SQL_TSI_HOUR, SQL_TSI_DAY, SQL_TSI_WEEK, SQL_TSI_MONTH, SQL_TSI_QUARTER, or
    SQL_TSI_YEAR*
    Hope this will help, feel free to ask more !
    Max

  • Compare two characteristics in Query

    Hi Experts,
    I have to compare two characteristics in Query fields like (A)Approved Level of Job(contain values like 01,02,03,04) and (B)Required Level of Job(contain values like 01,02,03,04).
    Now I have to do these calculations
    If A>B =1
    If A<B =0
    And also in other case
    If A=b  then value 1
    Of A =/= B then value 0
    Please let me know how I can achieve this.
    These values could be in A,B,C,D instead of 01,02,03,04 then in that case how I will calculate these comparison.
    Thanks
    Take care
    Vishal sharma

    Hi,
    i need the solution in this format on the comparison two characteristics in Query:
    0=false
    1=true
    Approved Level of Job(A)     Required Level of Job(B)      A=B         A not equal  B     A>B               A<B
         1                                                         3                                       0                         1                      0                 1
         4                                                         2                                       0                         1                      1                 0
         3                                                         3                                        1                         0                      1                 1
         5                                                         4                                       0                         1                      1                 0
         1                                                         2                                       1                         1                      0                 1
    count(A):5                        Count(B)5                                 sum 2                 sum 4           sum 3         sum 3
    so my CKF will be
    A>B/5 means 3/5=60%
    I also need to know how i am going to count A and B too.
    thanks
    take care
    vishal sharma

  • Compare two members from the same dimension in HFR

    Hi,
    Is it possibe to compare two members from the same dimension in HFR? The requirement is to compare Year and Week members from the same dimension. The Week date will be selected from POV. The corresponding Year date should be displayed in the report. Week dates are in the format W2008-03-07 and Year dates are in YTD2008-03-07.
    The dates are same except the preceding character.I am unable to compare these two. In my understanding there's no substring or replace functions in HFR.
    Kindly help. Thanks in advance.
    Regards,
    Uma

    Hi,
    How is your database structured? it may be possible to use the 'RelativeMember' function if it will always be the same number of steps between the 'W' member and the 'YTD' member, e.g. if your hierarchy is something like:
    Time
    .Weeks
    ..W2008-03-07
    ..W2008-03-10 etc.. for 52 weeks
    .YTD
    ..YTD2008-03-07
    ..YTD2008-03-10 etc.. for 52 weeks
    In your report select 'Current Point of View for Time' in one row/column and in the other use:
    RelativeMember set up as follows:
    Member: Current Point of View for Time
    Offset: 52
    Hierarchy: Time
    RelativeMemberList: Lev0, Time
    UseFirstDescendant: leave unselected
    Hope this helps
    StuartGame
    www.analitica.co.uk

  • Comparing two dates in a report

    Hello,
    I am attempting to compare two dates in a report in order to format a column. My code for that portion of the report is as follows:
    CASE
       WHEN TO_DATE(DATE_DUE,'DD-MON-YYYY') -
            TO_DATE(sysdate,'DD-MON-YYYY') <= 5 THEN
              '<span class="due">'||DATE_DUE||'</span>'
       ELSE
          DATE_DUE
    END AS DATE_DUE,I'm getting the error message ORA-00932: inconsistent datatypes: expected CHAR got DATE.
    I've been trying to fix the condition to get rid of the error with no success.
    Thanks
    -Brian

    One thing I just noticed that may or may not be the problem is that your case statement is returning two different datatypes depending on the condition. In one part, it is returning a character string of the span tags concatenated with the due_date (which in and of itself are incompatible datatypes) and the second part is returning just a date.
    Again, not sure if the SQL engine will do automatic conversions for you, but this seems to jive with your "char vs. date" error.

  • How to get relationship between two  views in the  reports

    How to get relationship between two  views in the  reports, I am doing a deletion program , it is fully relates to views , how to get relationship between them in the reports

    Hi,
    Please explain your question in detail...what do you want to read ?
    If you want to know about the navigation links between the views then you can use APIs  like
    wdComponentAPI.getComponentInfo().findInWindows("windowName").getViewUsageByID("Name").getNavigationLinks();
    Iterate through the navigationLinkInfo from above collection and can read the other properties .
    I haven't tried the above , but it should work !!!
    Regards,Anilkumar

  • Compare two characteristics!

    Hi Experts -
    I have read about this topic in this forum but I'm not making any progress. I need to compare the values of two characteristics (External Material Group and Bill-to-Party). If the values are the same, then I need to produce a report with that information and some key figures.
    In some other threads, it was suggested to use a formula variable.
    I have created two char value variables using replacement path to get the values of the two characteristics. Now how do I compare this in the formula variable? When I create a formula variable, all I see are the key figures and other formula variables.
    Can someone please help me through with this? Thanks a lot!

    Hi,after creating formula variables on two characteristics,are u getting values for both? create two new formulas to display formula variable values..and dont forget to place both chars in rows (in drill down) and hide them...
    formula 1 = formulavariable1
    formula 2 = formulavariable2
    compariosn  formula = (formula1 = formula2) * KF
    KF can be your KF or RKF...whatever it may be.
    if formula variables dont return any value,you have to find some other way..

  • How can I compare two periods in a report based on parameters

    Hi all,
    I'm wondering how can I create a matrix report which compares the sales of two periods. These periods are variable and coming from the parameter section that the user is using. For example, I have got the following table "Sales". Columns are:
    ID (not visible in report, can be used to lookup)
    Country
    Customer
    Year
    Quarter
    Month
    Gross sales
    The output that I would like to get is the following
    Parameter period 1: 2013 Q1
    Parameter period 2: 2013 Q3
    The report should look something like this:
                                          2013 Q1         
    2013 Q3
    USA                Microsoft         50000          75000
    So in the third column you'll see the sales based on parameter period 1, and the fourth column shows the sales based on parameter period 2.
    Thanks for the help!

    Just to be sure I understand...
    You have 1 primary dataset that returns records that will be displayed in a tablix in your report. The data will include sales information records from various years, quarters, etc. You want your report user to be able to select 2 sets of data for comparison
    based on quarter. Is this correct?
    To do this, start by adding a Matrix to the report. Set the Column Group to group on the expression:
    =CStr(Fields!Year.Value)+" "+Fields!Quarter.Value
    Set this same formula as the group header. Now Set the existing Row Group to group on Customer. Add a parent group above this Row Group and group on Country. In the detail cell set the value to:
    =Sum(Fields!GrossSales.Value)
    You will also need to access the tablix properties and set a filter as follows:
    Expression: =CStr(Fields!Year.Value)+" "+Fields!Quarter.Value
    Operator: In
    Value: @Quarters
    For this filter to work, you will need to create the @Quarters parameter as follows:
    On General tab:
    Name - Quarters
    Prompt - Select Quarters to Compare
    Data type - Text
    Allow multiple values - Checked
    Visible - Selected
    Available Values:
    Get values from query - Selected
    Dataset - dsQuarters
    Value field - YearQuarter
    Label field - YearQuarter
    Default Values:
    No default value - Selected
    Advanced: Leave at default settings
    For the parameter to work you need to create the dsQuarters dataset. This dataset needs to return a single column of distinct values for Year + " " + Quarter based on the same query that you use for your primary dataset. Add the distinct keyword (if using
    TSql) or equivelent and eliminate all of the unnecessary columns. Set it to return Year + " " + Quarter AS YearQuarter.
    Let me know if you have questions or if I missed something.
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • Display two characteristics in the same column

    Hi everyone,
    I have two cubes that store key figures in two different ways.
    In the first cube I have several key figures like "Amount in Local Currency", "Amount in Document Currency" etc. these have the currency characteristics  "Local currency"(0LOC_CURRCY) and "Document Currency"(0DOC_CURRCY) associated with them.
    In the second cube I have one key figure "Amount" and a characteristic "Currency Type" that has the values "Local Currency" and "Document Currency". The key figure is associated with the characteristic "Currency"(0CURRENCY).
    I have a report demand that requires me to collect values (Document Currency) from both reports and the report should also be drilled down on the characteristic "Currency". Now the demand is for one characteristic for Currencies and I would like to know what my options are.
    The only two ideas that I have is
    1. Add a new custom characteristic "Document Currency" in both cubes and populate it with the Document Currency.
    2. Create a virtual characteristic that combines both characteristics into one.
    None of these options are very appealing to me and I was wondering if there is a third option which I have missed?
    I could also mention that I am doing this query in Bex Analyzer.
    Thank you in advance for your help!
    /Marcus

    The main frame should be a JFrame, the small frame should be a JDialog.

  • Comparing two characteristics in query.

    Hi,
    In my CKF, I want to compare two different characteristics. Field 1 contains the value 'Y' and 'N' while Field 2 contains the value 'SP' and 'MP'. I tried to create a formula variable using key but the dimension ID supports does not give option of char.
    In the query i am trying to compare both the fields:
    ((Field 1 == 'Y')AND(Field 2 =='SP'))* (20 - X)+ ((Field 1 == 'Y')AND(Field 2 =='MP'))* (30 - X)
    Can anyone kindly suggest what can be done in this case. Any suggestion would be of gr8 help to me.
    Thanks
    Palak Vyasa

    i think its alomost not possible what you are trying to achieve (no idea if there is a way)..
    but i have an idea..why don't you try out with restricted KeyFigures?
    Create two dummy RKFs and hide them.
    RKF1: combination of Field1=Y,Field2=SP,and any Base KF.
    RKF2: combination of Field1=Y,Field2=MP,and same Base KF.
    Then try this formula:
    (RKF1<>0)(20 - X)+(RKF2<>0)(30 - X)
    One of these RKFs must be zero always then only you get desired result..isnt it?
    as both RKFs are restricted by same KF and Same Field1 but different Field2,one them should be zero always.

  • I am comparing two documents. The "Not Responding" event happens for over 30 minutes.

    I am comparing two documents using FM 11 on Windows 7. The "Not Responding" event happens for over 30 minutes. When should I force the application to quit?

    It sounds like your installation is corrupted. I don't know what two checkmarks you mean, but when the Setup Assistant starts it collects some personal information after which it will return you to your normal Desktop. If it isn't doing that, then something is not right.
    I think you will need to shut down the computer, then reboot. If you are able to reboot, then check About This Mac under the pple menu to see what version of OS X it shows is installed. If it shows 10.9.x then do the following:
    Repair the Hard Drive and Permissions - Mavericks, Lion/Mountain Lion
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported then click on the Repair Permissions button. When the process is completed, then quit DU and return to the main menu. Select Restart from the Apple menu.

  • Two commands in the report using the same parameter - fail under Java

    I have a report that contains 2 SQL commands.
    Both of these commands use one parameter X of type Number in their 'WHERE' clause.
    When i'm viewing the report in CR 2008, i'm asked for a value of this parameter and all data is filled in the report - OK
    The problem occurs when the same report is printed through Crystal Java Runtime:
    Report is printed without data! - it's empty.
    What we noticed in the debug information thrown by the Crystal libraries is that parameter value is set only in one of these commands:
    Original statement 1:
    select a.something
    from ANM_T a
    where a.anmid = {?PARAMETER01Id}
    Original statement 2:
    SELECT * from ANM_T a
    WHERE  a.anmid={?PARAMETER01Id}
    OUTCOME of Statement 1:
    select a.something
    from ANM_T a
    where a.anmid = 0
    OUTCOME of Statement 2:
    SELECT * from ANM_T a
    WHERE  a.anmid=9825
    In above example we may see that crystal set the value only in the second statement - first one got 0 - i suspect its some default value.
    Parameter in the Java code is set in the right way. In case of using only one statement it works. If we use two separate parameters (whose values are equal ) it also works.
    // we have also the loop over the parameters
    ParameterFieldController paramFieldController =
                    report.getDataDefController().getParameterFieldController();
    paramFieldController.setCurrentValue( "", paramName, paramValue );
    What is strange for me is that Crystal Reports enables to use the same parameter in two commands but if you edit one of them you may change the type of this parameter for a command ( for example from Number to String) but the parameter type in the second command remains unchanged ( it's strange because in my opinion it is the same parameter). In the Field Explorer under the Parameter Fields i still see one parameter of type used in the second command.

    Hello all,
    We have prepared some sample code to illustrate the issue.
    We have modified the sample application (Link: [http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/c07fec3e-3e11-2c10-1991-8c0fb0b82b75]) to that it also changes the parameter value. Parameter is used in two commands saved in report.
    The code changing the parameters value looks like this:
    private static void changeParameters(ReportClientDocument reportClientDoc) throws ReportSDKException {
              DataDefController dataDefController = reportClientDoc.getDataDefController();
            Fields fields = dataDefController.getDataDefinition().getParameterFields();
            for( int i = 0; i < fields.size(); i++ ){
                Field field = (Field)fields.getField( i );
                if( field.getKind() == FieldKind.parameterField ){
                            setParameter( ((ParameterField)field).getName(), "9825" , reportClientDoc);          
    private static void setParameter( String paramName, String paramValue, ReportClientDocument document ) throws ReportSDKException {
         ParameterFieldController paramFieldController =
                    document.getDataDefController().getParameterFieldController();
         paramFieldController.setCurrentValue( "", paramName, paramValue );
    We have tried the following codes to change the connection info used in commands:
    Attempt 1
              Tables tables = databaseController.getDatabase().getTables();
              //Set the datasource for all main report tables.
              for (int i = 0; i < tables.size(); i++) {
                   ITable table = tables.getTable(i);
                   //Keep existing name and alias.
                   table.setName(table.getName());
                   table.setAlias(table.getAlias());
                   //Change connection information properties.
                   IConnectionInfo connectionInfo = table.getConnectionInfo();
                   //Set new table connection property attributes.
                   connectionInfo.setAttributes(propertyBag);
                   //Set database username and password.
                   //NOTE: Even if these the username and password properties don't change when switching databases, the
                   //database password is *not* saved in the report and must be set at runtime if the database is secured. 
                   connectionInfo.setUserName(DBUSERNAME);
                   connectionInfo.setPassword(DBPASSWORD);
                   connectionInfo.setKind(ConnectionInfoKind.SQL);
                   table.setConnectionInfo(connectionInfo);
                   //Update old table in the report with the new table.
                   databaseController.setTableLocation(table, tables.getTable(i));
                   //databaseController.setTableLocation(tables.getTable(i), table);
    Attempt 2
             newConnectionInfo.setAttributes(propertyBag);
             connectionInfo.setUserName(DBUSERNAME);
             connectionInfo.setPassword(DBPASSWORD);
             //preserve subreport links
             SubreportController src = doc.getSubreportController();
             Map<String, SubreportLinks> linkMapper = new HashMap<String,SubreportLinks>();
             for(String subreportName : src.getSubreportNames()){
                 linkMapper.put(subreportName,
                     (SubreportLinks) src.getSubreportLinks(subreportName).clone(true));
             //If this connection needed parameters, we would use this field. 
             Fields<IParameterField> pFields = doc.getDataDefController().getDataDefinition().getParameterFields();
             replaceConnectionInfos(doc.getDatabaseController(), newConnectionInfo, pFields);
             IStrings strs = src.getSubreportNames();
             Iterator<String> it = strs.iterator();
             while (it.hasNext()) {
               String name = it.next();
               ISubreportClientDocument subreport = src.getSubreport(name);
               pFields = subreport.getDataDefController().getDataDefinition().getParameterFields();
               replaceConnectionInfos(subreport.getDatabaseController(), newConnectionInfo, pFields);
             //reconnect subreport links since when using replaceConnection links are erased
             for(String subreportName : src.getSubreportNames())
               src.setSubreportLinks(subreportName, linkMapper.get(subreportName));
    private static void replaceConnectionInfos(DatabaseController aDc, IConnectionInfo aNewConnInfo, Fields<IParameterField> aParameterField) throws ReportSDKException {
             ConnectionInfos cis = aDc.getConnectionInfos(null);
             for (IConnectionInfo oldConnInfo : cis)
               aDc.replaceConnection(oldConnInfo, aNewConnInfo, aParameterField, DBOptions._useDefault
                   + DBOptions._doNotVerifyDB);
    In both cases, the observed problem occurred. In one query the parameter was set properly, while on the other it was set to 0 (or empty string in case of string parameters). What is more, no data appeared on the print.
    Do you happen to know the reason of this issue?How can we fix the problem?
    Best regards
    Mateusz Błaż

  • How can I compare two collections at the same time? (View two grid views)

    I have two collections containing some of the same images. (My Nikon D70 did not put an end-of-file on some images. I recovered them into a different collection.) Now I want to display both collections side-by-side in grid view. I will select those images in the "recovered" collection that correspond to the bad images in the "main" collection, add the ratings etc, and move just these to another collection.
    It is extremely frustrating to have to bounce back and forth between collections, remembering each image one by one and selecting it in the "recovered" collection. (The image names are not preserved in the "recovered" collection -- I have to go by what the image looks like.)
    LightRoom allows me to compare photos in the compare view. I want to compare collections in two grid views.

    CaptureTheLight,
    you have ran into a situation when you have to compare two sets of images and now you're wondering how come Lightroom doesn't have such "obviously necessary" functionality? But you have to admit it, this is not such a common situation in a photographer's workflow recovers broken files and tries to compare them against themselves. I think it's a pretty specific feature you need. Still, Lightroom has enough powerful tools for editing and sorting images.
    For example...
    You could just put them all - "main" and "recovered" - into a single collection or into the Quick Collection. Label the entire "recovered" collection with, say, red and sort by capture time. Now you'll have everything side by side, ordered chronologically. The "recovered" images will stay next to the "main" images since their capture time will be the same, and they will also stand out since they have the red label.
    Make the thumbnails bigger and set up the grid view so it tints the thumbnail cell are tinted with the label color. Now, you can go quickly through them visually checking labeled vs unlabeled.

Maybe you are looking for