Issue with Formula on Brand Family Level

Hi Friends,
we are facing issue with the formula while showing the report output.
Following is the scenario.
BrandFamily(Char),Material(Char),Comp(Char), Kf1(Keyfig) ,Kf2(Keyfig)
Data Records:
1st Record  -
>    B1, M1,  200, 100
2nd Record -
>    B1, M2,  500, 400
3rd Record -
>   B2, M3,  100,  300
4th Record -
>   B2, M4,  600, 200
Formual --> If Kf1>Kf2 then Kf1 Elseif Kf1<Kf2 then Kf2
1) Report displayed based on the BrandFamily and Material , then the report shows correctly as below
Report Structure :- Brandfamily , Material are in Rows and the Colum has the Formula (that was mentioned above)
Report Output :-
B1 M1 200
B1 M2 500
B2 M3 300
B2 M4 600
On Summing , For B1 , Value is 700. For B2, Value is 900.
2) 1) Report displayed based on the BrandFamily , then the report  shows wrongly for the formula value  as shown below
Report Structure :- Brand Family is in Rows and the Colum has the Formula (that was mentioned above)
Report Output:-
B1 700
B2 700
      Here For B1, Value is 700 which is matching with the earlier output
Whereas For B2, Value is 700 which is not matching with the earlier output.
The Value for B2 is wrong because the formula has not processed correctly the 3rd record .
The report summed up the 3rd and 4th records and then applied the formula , because of which the issue.
This is because the Values kf1 and Kf2 are based on the material and as the material is not part of the Rows .
Thankyou in advance.
LNV

a more simpler solution.
open the kf in edit mode which has the condition
create two formula variables  as follows.
BRANDFAMILY
replacement path ,  reference characteristic brand famility
got replacement path tab-> replacevaue with as ' infobject'  replace with as 'attribute value'  , attribute constant 1.
MATERIAL
replacement path ,  reference characteristic material.
got replacement path tab-> replacevaue with as ' infobject'  replace with as 'attribute value'  , attribute constant 1.
MODIFY the KF as
BRANDFAMILY * MATERIAL *  condition.
had exactly same  requirement

Similar Messages

  • BW 3.5 - Issue with formula variable with replacement path

    Dear experts,
    I'm facing an issue with formula variable with replacement path.
    Just to clarify, I know replacement paths is raising a lot of questions but I've been using this functionnality extensively in the past, both in 7.0 and 3.5, so I'm not looking for basic information about how to use it.
    I'm trying to setup a simple report that would show total values per plant of Purchase Order < 100 €
    To do so I've setup a calculated key figure as follow:
    VAR1 * ("PO value" < 100 ) * "PO value"
    VAR1 is a formula variable with replacement path on 'purchase order' and value attribute 'constant =1'.
    (The report has to show values summarized by plant but should not show the detail PO by PO, so I'm not looking at a solution based on condition)
    The report as characteristic "plant" in rows and my CKF in columns.
    Now let's take an example. I have 3 POs in Plant 1:
    PO1 -> 150€
    PO2 -> 90€
    PO3 -> 80€
    Because of the variable with replacement path, the result in my query should be:
    plant1 = 170 (even though characteristic "purchase order" is not in my rows, system should evaluate PO one by one and return values only for those two that are below 100).
    But the result coming is 320, which is wrong.
    I've done the same report on many other 3.5 systems and it worked perfectly, and I am not able to get proper support from SAP OSS who keep saying that this functionnality is not ready in 3.5 (although I've provided screenshot of this working on another 3.5 system!!! how frustrating...)
    They have also pointed to problems of Before and After aggregation but that has absolutely no impact. Once again, the scenario is working perfectly on other 3.5 systems with the same query design, so i'm sure it has nothing to do with Query Designer options.
    Would anyone have ever come to an equivalenet problem? I'm wondering whether the DB itself could not play a role in the variable with ref  characteristic 'constant =1' ...
    Any though is welcome!
    thanks

    Hi,
    The text variable is replaced when the exact date is clear for this key figure column according to the restriction.
    To achive this, please make sure that either the variable is directly restricted in the key figure selection, or that the date characteristic is in drilldown.
    Regards,
    Patricia

  • Issue with formula collision

    Hello Experts,
    I am facing an issue with Formula collision, below is an expample
    My requirement is to use Column formula for the value (????) in the below table.
                                  Restriction (C1)     Restriction (C2)     Formula(C1-C2)
    Restriction (R1)     4              2                                 2
    Restriction (R2)     8              3                                 5
    Formula(R1+R2)     12              5                              ????
    I have tried using the below settings
    1) Formula(R1+R2)  "Standard"
    2) Formula(C1-C2)  " Use result of this formula"
    But still getting row formula being used, please advice.
    Thanks,

    Select the Formula which you created Formula(C1-C2)
    In the properties tab Go to Calculations--> Select the Check Box Cumulated
    In the Drop Down for Calculation Direction Select --> Calculate Along Columns
    If you require you can also select the Check Box Also Apply to Results
    Hope it Helps.
    rgds, Ghuru

  • Issue with reinstalling a brand new mac pro

    I was recomended to reinstall the leopard since I had some issues with my new 27"
    cinema display.( there is an update for the cinema display and my mac did not allow me to updat it so apple care person told me to reinstall the leopard.
    After 15 minutes in gto the reinstalling the mac pro has stopped responding and i have a white background with apple logo in the center of the screen fro the last 2 hours.
    Any recomindations until the apple care is back on the line.

    Make sure you have the display usb cable connected as some of the functionalities
    are addressed through the usb cable.

  • Issues with Dunning: what happens after level 3 of 3 ?

    Hi,
    We have set up 3 dunning levels. That works fine as I could test this because we had some invoices that have moved from 1 to 2 and to 3. The letters for level 3 has been printed and the GP data has been updated. The level 3 is shown and the history shows it as well. Looks like perfect.
    However, now the problem starts. These invoices are still unpaid. What happened to them regarding dunning? If I run the dunning wizard again, all formerly level 3 invoices are not in there anymore.
    How do I handle this to not forget these open invoices?
    Best regards,
    Franz

    Dunning will only help you on the AR aging process.  Nothing can replace other processes to collect the payments.  As the scenario you are given, you have to keep your original process. Any open invoice during the dunning period should be handled by manual process or wait until another.
    Thanks,
    Gordon

  • Issue with Member Formula written for Balance Type

    Folks,
    I am facing an issue with a member formula written for a balance type dimension,
    The code says
    IIF( IsUda([Accounts].CurrentMember, "BalanceSheet"),
    CASE
    *WHEN IS([Time].currentmember,[YearTotal]) THEN MISSING*
    WHEN IsLevel([Time].CurrentMember, 0) THEN (BALTYPE.[EndOfPeriod])
    WHEN IS([Time].currentmember,[Q1]) THEN (BALTYPE.[EndOfPeriod],Time.[MAR])
    WHEN IS([Time].currentmember,[Q2]) THEN (BALTYPE.[EndOfPeriod],Time.[JUN])
    WHEN IS([Time].currentmember,[Q3]) THEN (BALTYPE.[EndOfPeriod],Time.[SEP])
    WHEN IS([Time].currentmember,[Q4]) THEN (BALTYPE.[EndOfPeriod],Time.[DEC])
    END
    ,MISSING)
    Outline Structure for Time dimension looks like below
    +Time
    --|+YearTotal
    ------|+Q1
    ----------|+Jan
    ----------|+Feb
    ----------|+Mar
    The highlighted Part of the code works good for all the Measures which is With the UDA tag BalanceSheet, Except if the Measure with BalanceSheet UDA is a Parent Member.
    Parent Level Measures are populated with Data(populating Dec Data) instead of showing #MISSING.
    Any help on this issue will be appreciated.
    Thanks
    Sathish

    Hello Gurus,
    I raised an SR with Oracle support and they have replied by saying that, In EPM 11.1.2.4, the IE11 is only supported for interactive reporting and we will have to use IE 10 & 9 for workspace.
    Yes. It works fine in IE 10 & 9.
    Thanks,
    Siva

  • TS1398 Got the dreaded no wifi on my wife's iPhone 4S. Wifi greyed out and no luck with the reset network instructions. Why isn't Apple addressing this issue? We are a family of Apple product users, 2 ipads, an ipad mini, 4 iPhones but one isn't working!

    Got the dreaded no wifi on my wife's iPhone 4S. Wifi greyed out and no luck with the reset network instructions. Why isn't Apple addressing this issue? We are a family of Apple product users, 2 ipads, an ipad mini, 4 iPhones but one isn't working! Issue began whenwe upgraded the operating system.....
    Come on Apple.....get this issue sorted out!

    Just out of warranty. This is a software issue. everything was ok until the software update. Apple just need to sort it out.

  • List of issues with patch level

    Is there a list of application errors reported for each patch level?
    When working with SAP R/3, there is a SAP note released for each patch level which states the changes delivered in that patch as well as what fixes are delivered. Therefore, it is easy to see what application errors exist in each patch level. Is there something similar for SAP Business One?

    There are also notes for those Lists of issues with each patch level for B1.  What is your B1 version and PL?
    Thanks,
    Gordon

  • Issue with Level-based measure at Year level

    Hello everyone,
    I am facing weird issue while using OBIEE 11g level-based measure at the Year level. I am creating a trend analysis report that are displaying Expense Accounts dimension with 6 levels and 2 measures: Expense YTD, and Expense Full Year measures
    The report has multiple rows with value "Others" in the 3rd level of the account dimension (Account Level 3) yet, they all have different IDs and associated with different parents (different Account Level 2 values)...
    When i displaying the Expense YTD measure only results are fine and everything is perfect, when selecting Expense Full Year measure, only the first occurrence of the value "Others" in 3rd level column is displayed and non of the remaining records appears...
    What makes my life worse is that i can't even see the log file of this query because an error occurs when trying to view the session log i.e. "No log file found"
    Please help, i am about to start the UAT phase of the current project and i am running out of time..
    Thanks
    Mohamed Adel

    Hi,
    Are you using presentation hierarchy?
    Refer below if same is followed-
    http://gerardnico.com/wiki/dat/obiee/hierarchy_level_based
    Hope this helped/ answered.
    Regards
    MuRam

  • URGENT: Issue with hierarchy level keys and report drill down

    Hi,
    BASIC STRUCTURE:
    I have created a subject area with 3 facts (FACT_A, FACT_B, FACT_C) and 4 dimesnions (TIME_DIM,DIM_2,DIM_3,DIM_4). Each fact table also has additional aggregate tables aggregated along levels of the time dimension. Also our timw dimension has aggregated dimension tables like TIME_DIM_WEEK, TIME_DIM_MONTH, TIME_DIM_QUARTER and TIME_DIm_YEAR.
    GOAL:
    All 3 facts have the same measures M_1 and M_2 in them but may not have data for the same dimension values selected.
    For example
    For month JAN 2000 FACT_A.M1=100$ and no data exists for JAN 2000 in FACT_B and FACT_C. Then in the report
    for JAN2000 it should show FACT_A.M1= $100, FACT_B.M1 = 0 and FACT_C.M1 =0. In this case I should be able to drill down to the lowest level.
    ISSUE:
    The time dimension TIME_DIM has the following levels - Total -> Year -> Quarter -> Month -> Week -> Day
    However I am having an issue with drill down in the reports whenever I pull metrics from more than 1 fact at a time. I have defined the level keys but not sure if I need to do anything in addition since I am using aggregates.
    I have to fix this issue quickly. Please help me.

    Alastair,
    All the fact tables have aggregated facts as sources.
    I have checked the levels set for each of the sources to the time dimesnion table in BMM and they look okay. So the Time dim table in BMM has 4 source tables
    Time_Day (level set to day, table key is "day"),
    Time_month (level set to month, table key is "Fiscal_Month_Code"),
    Time_Quarter(level set to quarter, table key is "Fiscal_Quarter_Code") and
    Time_Year(level set to year, table key is :Fiscal_Year_Code").
    Note: No time week aggregate added as logical source.
    Again the time dim hierarchy based off of this table has levels: Total -> Year ->quarter -> Month -> week -> day
    The levels keys set for each level are
    Year -> Primary key is Year_Name (YYYY)(Checked as chronological key) and another key is Year_Num (YYYY)(Checked as chronological key)
    Quarter->Primary Key is Quarter_Name (YYYY Qn), another key is Quarter_Number (Format n where n can assum values 1,2,3,4). Both keys are set as chronological keys
    Month -> Primary key is Month_Name (MON YYYY), another key is Month_Num (Format n where n can assume values from 1 to 12) Both keys are set as chronological keys
    Week -> Primary Key is week name (YYYY Wk nn, where nn can have values from 1 to 53), another key is week num (nn, where nn can have values from 1 to 53)
    Day -> primary key set to day (date format)
    Issue1: When I try to drill to lower levels it throws out an error saying report cannot find any data because filters may be too restrictive even though I see data at higher level
    For ex: If I drill down to Year: 2010 and Qtr: 2010 Q2 and M1:$100 when I click on Qtr to drll to month level it throws me the error
    Issue2: when I add year and qtr colums to the report I see data as below which is incorrect
    Year_Name Qtr_Name data:FACTA_M1 Data: FactB_M1
    2009 2009 Q1 $10 $5
    2009 2009 Q2 $20 $80
    2009 2009 Q3 $20
    2009 2009 Q4 $30
    2010 2010 Q1 $100
    2010 Q2 $101
    2010 Q3 $102 $230
    2010 Q4 $103
    2011 Q1 $10
    In the above example year_name is not showing up for 2010 Q2 and after. However if I change the primary key for level 'Quarter' by having key consist of year name and quarter name instead of just quarter name the issue doesnt occur and drill down works great. The only issue is when I drill from qtr it first shows year name and quarter name instead of showing the next level which would be month name.
    Sorry about the long message but I thought you might notice something in how I have set up the keys.
    Thanks

  • Issue with .ttf font family in CR10.2

    Hello Community,
    I'm writing this because one of our client run into an issue using .ttf (Opentype TT) fonts in Crystal Report 10.2, running on Windows Server 2008 R2.
    As I learned CR10.2 is discontinued and unsupported now. The live chat advised me to ask the community and so I'm doing here.
    The fonts work alright in all app on all platform. In this case, however the client cannot access the Bold nor any Italic versions from the software. Seems to me that CR10.2 can not use style-linked fonts and so making a family of fonts with no style-linking could be a solution.
    There is also an issue with the ligatures: the f+i ligature renders as a single f. This could be solved by turning off the ligature but my client is unsure whether that can be done.
    I'm looking for any information on these. Any help is highly appreciated!
    Best
    Béla

    Hi Bela,
    Back to the original issue... You are correct. When using the Style option in the CR Designer it works fine when previewing on the DEV PC because the Font Glyphs are mapped accordingly. When run in an application on someone elses PC though those mappings are not there...
    So if you want to use BOLD then you MUST select the "font name" with  "BOLD"  in the name.
    For example:
    BentonSans Bold is what you need to use.
    You should not use the Styles to select it when used in a .NET application:
    Leave it as Regular....
    The reason is in CR Designer ( both standalone and Embedded in Visual Studio ) use legacy runtime and the GDI.dll and usp10.dll to do the page rendering. In a VS .NET application it uses GDIPlus.dll to do the rendering and it has limitations when it comes to how font Glyphs are handled and the font Mapping feature of windows.
    Also, how are they able to select the font? Are you using the craxddrt.dll ( embeddable Design Control ) in your application? This is not allowed, you are not licensed to be using it or distributing it in any application, only allowed to design reports in the VS IDE only.
    Or did you build your own Report Designer using the RCAPI's?
    Don

  • URGENT HELP PLS :  Issue with Multi Level Master Detail block

    This is an issue someone else had posted in this forum few years back but there was no solution mentioned, I have run into this same issue , The problem is as explained below.
    Any help on this is appreciated.
    Scenario:
    There are 3 Blocks in the form : A (Master Block)
    : B (Detail of A )
    : C (Detail of B )
    There is master detail relation created between A and B and B and C. So initially when we query for a record in Master A, it shows all records properly in B and C.
    Now if i navigate to the first record of B , and then second record of B , records corresponding to that record shows up properly in C block.
    Till now everything works fine.
    Issue 1:
    But in case after querying initially on Master Block A,If I go directly to the second record of B block, it clears the whole B block and C block.
    Issue 2:
    Same thing happens if I am on C block ( corresponding to second record of B block) and then navigate to first record in B block , it again clears the whole B block and C block.
    Please Help !!
    Thanks !

    Thanks Xem for Your reply , I tried those settings but it did not help..here is the original link that to the thread that talks about the same problem ,
    Issue with Multi Level Master Detail block
    The last update to this was the following :
    "I figured out that this is happening because Block Status is set to 'Changed' and this is causing it to clear out the blocks.
    But cant figure out why the status is setting to 'Changed' "
    Any Help from the form Gurus on this form in this matter is truely appreicated !!
    Thanks,
    Zid.

  • Issue with Measure formula

    Hello friends,
    I am having an issue with the following MDX script. I have separated out all the IIF Conditions to make it easy to read. This is a periodic measusre.Liability, income and expense accounts appear just fine. However Asset accounts' 2011.Q3 and 2010.total values are just blank. please advise.
    IIF ([%ACCOUNTDIM%].CURRENTMEMBER.PROPERTIES("ACCTYPE")="INC",
    -MEASURES.[SIGNEDDATA],
    IIF([%ACCOUNTDIM%].CURRENTMEMBER.PROPERTIES("ACCTYPE")="EXP",
    MEASURES.[SIGNEDDATA],
    IIF([%ACCOUNTDIM%].CURRENTMEMBER.PROPERTIES("ACCTYPE")="AST" AND [DATASRC].CURRENTMEMBER.PROPERTIES("ID")="CTA",
    MEASURES.[SIGNEDDATA],
    IIF([%ACCOUNTDIM%].CURRENTMEMBER.PROPERTIES("ACCTYPE")="AST",
    (MEASURES.[SIGNEDDATA],CLOSINGPERIOD([%TIMEDIM%].[%TIMEBASELEVEL%])),IIF([%ACCOUNTDIM%].CURRENTMEMBER.PROPERTIES("ACCTYPE")="LEQ",
    -(MEASURES.[SIGNEDDATA],CLOSINGPERIOD([%TIMEDIM%].[%TIMEBASELEVEL%])),
    -MEASURES.[SIGNEDDATA])))))

    Yes ZalakT . You are correct . I tried same and its retrieving blank when specified DATASRC or any dimension  with ID comparison in measure formula  .ie   DATASRC.CURRENTMEMBER.PROPERTIES("ID")="CTA" or  %ACCOUNTDIM%.CURRENTMEMBER.PROPERTIES("ID")="xxxx" .
    I tried following way and it retrieved periodic totals  for asset accounts  . ie for 2011.TOTAL & 2011.Q1 its retrieving total of base months  instead  of closing period's value for asset accounts  . 
    1) don't not change PERIODIC measure formula .
    2) Add FORMULA property to DATASRC .Add new member CTA_CALC to DATASRC . In formula property of CTA_CALC specify
    IIF([ACCOUNT].CURRENTMEMBER.PROPERTIES("ACCTYPE")="AST",[MEASURES].[SIGNEDDATA],[DATASRC].[CTA])
    3) save some data in  (CTA,PERIODIC)  for  both Asset & non Asset accounts . Retrieve same data from  CTA_CALC .
    let me know if it works .

  • Query Issue with select level from dual

    Hi,
    I have a question regarding this query. The problem seems that when selecting level from dual while including another table the rows returned seem to increase exponentially.
    I can add distinct and get the correct number of rows but am worried that this will cause a possible performance issue. Am I using the level option wrong?
    I have included details below.
    There are 4 rows in tbl_incidents
    When I run the following queries I get rows returned based on the total number of rows
    select start_date + level - 1, tbl_incidents.incident_id, level
    from dual, tbl_incidents
    where incident_id = 6
    connect by level <= 1;
    returns 1 row
    select start_date + level - 1, tbl_incidents.incident_id, level
    from dual, tbl_incidents
    where incident_id = 6
    connect by level <= 2;
    returns 5 rows
    select start_date + level - 1, tbl_incidents.incident_id, level
    from dual, tbl_incidents
    connect by level <= 3 and incident_id = 6;
    returns 21 rows
    select start_date + level - 1, tbl_incidents.incident_id, level
    from dual, tbl_incidents
    connect by level <= 4 and incident_id = 6;
    returns 85 rows
    select start_date + level - 1, tbl_incidents.incident_id, level
    from dual, tbl_incidents
    connect by level <= 5 and incident_id = 6;
    returns 341 rows
    So with
         r being the number of rows in tbl_incidents and
         l being the number used in the connect by for level and
         q being the number of rows returned by the query
         it appears that
    q(l) = r * q(l-1) + 1
    level 2:     4 * 1 + 1 = 5
    level 3:     4 * 5 + 1 = 21
    level 4:     4 * 21 + 1 = 85
    level 5:     4 * 85 + 1 = 341
    Thanks much,
    Nora

    Hi,
    The dual table is used when you want to do something in SQL when you are not otherwise using a table.
    Generating a "counter table" of the integers 1, 2, 3,..., X is an example
    SELECT  LEVEL   AS n
    FROM    dual
    WHERE   LEVEL   <= x;There is never any point in joining dual to another table, as in
    select  start_date + level - 1
    ,       tbl_incidents.incident_id
    ,       level
    from    dual
    ,       tbl_incidents
    where    incident_id = 6
    connect by  level <= x;You will always get the same more easily by just eliminating dual:
    select  start_date + level - 1
    ,       incident_id
    ,       level
    from    tbl_incidents
    where    incident_id = 6
    connect by  level <= x;It is quite useful and common to join a counter-table to a real table, like this cross-join:
    WITH    counter_table  AS
        SELECT  LEVEL   AS n
        FROM    dual
        WHERE   LEVEL   <= x
    select  start_date + n - 1
    ,       incident_id
    ,       n
    from    tbl_incidents
    ,       counter_table
    where    incident_id = 6

  • I'm often having issues with clients not seeing or being able to open attachments, font formatting changes (on the pc end) and the inability to use HTML signatures to promote our company brand.

    I'm often having issues with clients not seeing or being able to open attachments, font formatting changes (on the pc end) and the inability to use HTML signatures to promote our company brand.

    I imagine your clients must be using Outlook, which is seriously broken when it comes to e-mail standards, especially HTML e-mail. You can work around the issues with Outlook by only sending plain-text e-mails and making sure that, in the Edit -> Attachments menu, the last two options are checked. Unfortunately, that means that HTML signatures are out.
    If you need something with a fancy layout, either attach a PDF file to the e-mail or include a link to a website in the e-mail.

Maybe you are looking for

  • Regarding comment statement in JSP Page

    Hai to All, I have written one small jsp page which checks the given name and display the entered name. This is the code which i have written. Its working fine. <html> <% String name = request.getParameter("txtName"); out.println("THe Name is"+name);

  • What is a good way for a heavy iMovie HD user to learn iMovie'09 ?

    Hi Guys, I have been using iMovie HD to edit my videos since mid 2005. I understand that Apple will, sooner or later, stop supporting iMovie HD with updates etc (it may have done so already). I'm doing event and safety videos for the company I'm work

  • WebDav Very Slow on Windows 7 Pro

    Environment: Hosted SharePoint 2010 Two laptops on a Windows Domain: 1) Windows 7 Pro 32-bit & IE11 and 2) Windows 7 Pro 64-bit & IE11. Problem: WebDAV is VERY slow on Windows 7 only. When using WebDAV on Windows 8 or using the web portal (browser), 

  • Photoshop CS5.1 trial keeps crashing

    I've been having banding problems with my latest landscape photographs in my old Elements 6.0, so I thought I would give full Photoshop a trial and see if that helps. Right now I am close to giving up. The software was downloaded and installed. It do

  • Glitch while renaming files

    Hi, I found a glitch in Snow Leopard when I renaming files. The text area where to type the new name is not placed in the right position. This error happens in a folder, but if I open other folders it doesn't come out.