OBIEE Error in Logical column

Hi,
I want to use dynamic variable and filter the dates. I am creating new logical column in BMM using the below case statement. I am getting the error.Please suggest me for this issue.
CASE statement:
CASE WHEN VALUEOF(CURRENT_MONTH_FNC_STG) = '08 2010' THEN
"FNC_STG"."A_FNC_INVOICES_T"."INVOICE_CREATION_DATE" BETWEEN ('08/01/2010 12:00:00 AM') AND ('08/05/2010 12:00:00 AM')
END
--Here CURRENT_MONTH_FNC_STG is dynamic variable....
Error:
[nQSError: 27002] Near <BETWEEN>: Syntax error [nQSError: 26012] .
Thank U

Hi...
if avg sales should be calculated to current month always.. then why don't you apply external filter ..
i hope you are having time dimension columns like: year and month which is holding values like 2010, 2009.. etc, and 1,2,3,4.. etc..
If then,
apply this filter..
Year = Current_Date
and
MonthNumber = Month(Current_Date)
you can't include those 2 r.h.s values directly..
click on filter option of year column then > Advance > convert this filter to SQL.

Similar Messages

  • Derived Logical Column throws an error

    Hello
    I get the 46036 error from Answers when I add a field that I created in the BMM of the RPD. We are on OBIEE 10.3.4.2. I added a logical column to a table and applied a filter for a particular age band. I can check the change in without any errors but when I use that field with that expression I get the nQSError.
    *[nQSError: 46036] Internal Assertion Condition pExpr->IsValueExpr(), file*
    Ahsan/Naveen, any ideas on this? You guys have been always helpful with my questions.
    Thanks,
    Dan

    Not sure if this helps but found a few things online on this..may just require a resave or re-import of the specific report (http://tipsonobiee.blogspot.com/2009/06/error-nqserror-46036-internal-assertion.html). If you are on Solaris 64 there is also a bug associated with this. "[nQSError 46036] Internal Assertion Error" After Upgrading to OBIEE 10.1.3.3.2 [ID 566463.1] suggesting to change the following parameter:
    A workaround is to make only off line changes.
    The bug states the following:
    "The solution was to set the following in NQSConfig.INI
    SERVER_THREAD_STACK_SIZE = 1024 KB"
    This is not the same exact OBIEE version. Try these 2 suggestions and let us know how it goes.

  • Logical column error!!

    In my obiee admin tool, i have an rpd media i am trying to create a logical column with following expressions..
    "MEDIA"."Media Facts"."Margin" * 1000
    and it is throwing an error as Invalid Expression.
    What could be the reason behind this??
    cud somebody explain???
    Edited by: Mahis on Nov 25, 2010 1:43 PM

    the datatype is decimal.
    i tried doing it but its not working!!!
    "MEDIA"."Media Facts"."Margin" * 1000
    i tried doing it in the expression builder window. i am able to do it there but when i close it and logical column window appears it says invalid expression

  • Error in edit formula of a logical column in report

    Hi All,
    I'm getting the below error when I click ok in 'Edit Formula for a logical column in Criteria of Report.
    Formula syntax is invalid.
    Assertion failure: !sFormula.empty() at line 998 of C:\ADE\aime_bi\bifndn\analytics_web\main/project/webreport/reportquery.cpp
    Could anybody help me out in this?
    Thanks in adv.

    Hi,
    did u included any case condition over there..kinly check the syntax and correct it.
    Thanks
    Deva

  • OBIEE 11.1.1..6.9 Logical Column Derived from existing columns

    Hello,
    I've just installed the last version 11.1.1.6.9 in my test environment and I already have a problem with the RPD.
    I've some logical column derived from existing columns using an expression. (so far, so good)
    With Adminsitration Tool (Last Version 11.1.1.6.9), when I launch the Consistency Check Manager I have the following error (I use the SampleAppLite RPD in order to reproduce the problem)
    ERRORS:
    SampleApp Lite :
    [nQSError: 46008] Internal error: File server\objectmodel\Src\SOSecureRpGateway.cpp, line 479.
    [nQSError: 23013] An error occurred when extracting the metadata definition for the Attribute '"SampleApp Lite"."D3 Orders (Facts Attributes)"."test"'.
    The logical column test on "D3 Orders (Facts Attributes)" :
    CASE WHEN "SampleApp Lite"."D3 Orders (Facts Attributes)"."Order Date" > "SampleApp Lite"."D0 Time"."Calendar Date" THEN 1 ELSE 0 END
    The problem appears only when I use multiple source table in column expression.
    Does anyone has the same problem ? I think it's easy to reproduce (I searched on OracleSupport but I didn't find anything yet)
    Benjamin

    I know that there is no relation between "SampleApp Lite"."D3 Orders (Facts Attributes)"."Order Date", "SampleApp Lite"."D0 Time"."Calendar Date", it's also the same thing in my own RPD.
    But as it's working with the 11.1.1.6.2 BP1 version I don't understand why it's not working with 11.1.1.6.9.
    Implicit fact column is not set on my repository, but I don't have any request with only dimensional column, so if my understanding is correct I don't need to use it. Also, the problem appears during the check of the repository not in answers.
    thanks anyway

  • Get Last value in logical column or answer OBIEE

    Hi Gurus,
    I have detail report like this
    YEAR  GRADE_ID    Group    Value      Desired Value
    2013    D                     1         9000      100000
                                      1         9000       100000
                                      1         9000       100000
                                      2         1000        100000
                                      2         1000          100000
                                      2         1000          100000
    I want to sum the lastest value from group 1 and group 2, how to do this in Logical column in repository or in dashboard or perhaps in PL SQL?
    Please help
    Regards
    JOE

    Let me explain further:
    >>Desired report:
                          Level
    Item                 D
    Jan-Mar            9.000
    Apr-Dec            1.000
    -----------------------------------------+
    Annual Year       10.000
    >>Detail:
    Year     Grade      Month        Group        AVG Value    Desired Value
    2013    D          Jan                    1               9.000          10.0000
                            Feb                  1                9.000          10.0000
                            Mar                  1                9.000          10.0000
                            Apr                  2                1.000          10.0000
                            May                 2                1.000          10.0000
                            Dec                 2                1.000           10.0000
    Note:
    The datas per year divided in two section group 1 (Jan-Mar), group 2(Apr-Dec).
    But If the current month is FEB then the latest avg value is 9000 then desired value also 9000,
    If the current month is JUN then Desired value =  the latest avg value of MAR + the latest avg value of JUN
    I really appreciate your help
    Thanks
    JOE

  • OBIEE 10g - Logical column with static value

    I created a logical column with static numeric value in it and added it to presentation layer. The column is not showing up in Answers. All other columns I added are showing up. The issue is with this one only.
    I have verified permissions on this column in presentation layer. I tried reloading server metadata in answers, restarting all services but it didn't help.
    One thing I noticed this column is showing fx icon instead of Σ icon.

    Kid,
    The fx means it is a calculated column/formula and the sigma means that you've added some aggregation type to the column.
    Either way it shouldn't matter and your column should be showing up.
    I would attempt to create a new column and in the fx field try entering static text and see if that allows the column to be visible after dragging it to the presentation layer subject area.
    Also what is the value that you are adding?

  • OBIEE - error after upgrade .

    Hi Guru's ...
    I upgraded OBIEE from 10.1.3.3.2 to 10.1.3.4.1. After this i see all process coming up but i m not able to access the bi page . I see this error in sawserver.out.log
    after restart .
    /u001/app/oracle/product/10.1.3/OracleBI/web/bin/sawserver: symbol lookup error: /u001/app/oracle/product/10.1.3/OracleBI/web/bin/libsawbedrock3r.so: undefined symbol: samem_800_thread_alloc_get_quota_remaining
    /u001/app/oracle/product/10.1.3/OracleBI/web/bin/sawserver: symbol lookup error: /u001/app/oracle/product/10.1.3/OracleBI/web/bin/libsawbedrock3r.so: undefined symbol: samem_800_thread_alloc_get_quota_remaining
    /u001/app/oracle/product/10.1.3/OracleBI/web/bin/sawserver: symbol lookup error: /u001/app/oracle/product/10.1.3/OracleBI/web/bin/libsawbedrock3r.so: undefined symbol: samem_800_thread_alloc_get_quota_remaining
    Other INFO :
    server version : Linux 2.6.18-128.el5 #1 SMP Wed Dec 17 11:42:39 EST 2008 i686 athlon i386 GNU/Linux
    Please help .

    HI,
    As I said, Age has valid datatype in physical layer but datatype is showing as "Unknown" in logical layer after upgrade to 11g. many other columns got same issue just for this logical table. I rebuild the logical column mapped to physical sources but it didn't fix the issue.
    I hope you understand the issue.
    Thanks
    Jay.
    Edited by: Jay on Jul 23, 2012 11:02 AM

  • OBIEE Error[14041] Nested Aggregation measure are currently not supported

    Hi,
    Please provide workaround for the OBIEE Error[14041] Error in measure definiion. Nested aggregation measures are currently not supported.
    I have two logical columns - Current YTD Invoice Quantity and Prior YTD Invoice Price. I want to create a column which is -
    (Current YTD Invoice Quantity * Prior YTD Invoice Price)/ sum(Current YTD Invoice Quantity * Prior YTD Invoice Price)
    sum in the denominator should be the sum of all rows returned by the report. So level based measures cannot be used as there are multiple report and dimension used may vary.
    Columns Current YTD Invoice Quantity and Prior YTD Invoice Price are already aggregated to Sum.
    If I try to do the sum on the physical column while creating logical column, the query is running for 6-7 hours and not giving any result. Both the columns belong to different alias table in physical layer.
    Please let me know if you guys know any work around for this issue. Also let me know whether this type of nested aggregation are supported in 11g or not?
    Thanks.

    Hi Adil,
    Yes, I did create a hierarchy for the time dimesion.
    No, I was not able to specify the aggregate rule since the source of the logical column is another logical column
    But the time hierarchy works for rows that is not based upon the SUM aggregate at the answers level.
    Say I have 3 columns: Income,Expense, Bottom Line (formula : Income- Expense)
    Income is created based upon a case statement in the Logical Column and
    Expense is also created based upon a case statement in the Logical Column.
    Income 1000 Rupees
    Expense -300 Rupees
    Bottom Line 700 Rupees (where the Bottom line is a row based upon the Answers aggregate formula
    which is SUM(Income+Expense))
    When I add a column year, I get the following output
    Income 2009 500 Rs
    Income 2008 500 Rs
    Expense 2009 -150 Rs
    Expense 2008 -150 Rs
    Bottom Line 2009 700 Rs
    Bottom Line 2008 700 Rs
    The Bottom Line doesn't spread across the Year
    Hope this helps you to understand what my problems is.
    Thank you!

  • Display function Reset in RPD logical column expression

    Hello All,
    I want to reset display function like below in RPD's logical column expression (Its OBIEE 111171) . I am able to use reset RMIN value using "BY" syntax within obiee report but not able to apply same in RPD expression builder)
    RMIN (COLX BY COLB)
    Any idea ???
    Thanks in advance.
    -Devendra

    Exactly. As I wrote, B contains some functions (mainly SUBSTR and CAST) that depend on other columns from the same dimension (all other colums are physical).
    Funny thing is, when I drag D01.B into the analysis alone, it works all fine... Adding a measure also leads to the said error.

  • How to create logical columns for current period and prior period

    Hello all.
    Is there any way in obiee to create a new logica column in BMM layer that says "CURRENT PERIOD" AND "PRIOR PERIOD" OR ONE SINGLE COLUMN THAT SAYS "PERIOD".
    In those columns what I need is if it a current period column it shoould have 03/01/2012-03/31/2012 (this month date range)
    and in prior period column I shouldhave 02/01/2012 -02/29/2012(which is previous month date range).These columns I will be using in my reports.
    Please help me if we can create any such columns with these conditions/requirements

    Hi,I have already created he dynamic variables.But I am not getting how to use those variables and create the new logical columns in bmm layer.
    this is what I am trying
    case when VALUEOF("Current Month begin date"."Current Month begin date") ='..' and VALUEOF("Current Month end date"."Current Month end date")
    ='..' then 'current period' end
    I don't really understand what I should write case when VALUEOF("Current Month begin date"."Current Month begin date") ='..'??

  • How To Create Logical column For Lastyear To Till Date

    Hi All,
    I Have to calculate Lastyear to Till Date for Logical Column.
    Ex:I have Time Dime and Fact column and Dimension columns.
    jan 2011 to oct 2012.
    Please Let me know.
    Thanks,
    Abhi

    Looks like you are not reading my messages
    Since you are doing on logical columns getting this error.
    Try this using physical columns then count from aggregate tab
    CASE WHEN "Oracle Data Warehouse"."Catalog"."dbo"."Fact_W_SRVREQ_F_Open_Date"."OPEN_DT_WID" > 20110101 THEN "Oracle Data Warehouse"."Catalog"."dbo"."Fact_W_SRVREQ_F_Open_Date"."SR_WID" END
    The same you can go with your variable
    Or else the same can do by duplicating the existing Fact - CRM - Service Request"."# of SRs" and just add above code.
    or just use the below you dont use sum since already aggregation is happend for # of SRs
    CASE WHEN "Core"."Dim - Date"."Year" = VALUEOf("Warehouse Refresh Date Last Year"."CURRENT_CALENDAR_YEAR_LAST_YEAR") AND "Core"."Dim - Date"."Date" < VALUEOF("Warehouse Refresh Date Last Year"."LAST_REFRESH_DATE_LAST_YEAR") THEN "Core"."Fact - CRM - Service Request"."# of SRs" END
    Hope this works, mark as correct

  • Logical column levels and aggregation

    Hi all,
    In order to have reliable results, I had to specify a dimension level in a logical column properties.
    As a consequence, the generated query includes this level in the query (that's great), but no aggregation is performed afterwards. Therefore, when I display this measure alone in a flat table or a ticker, I have a set of detailed value instead of an aggregated value. The only place where I can see my aggregated value is in a pivot table.
    In answers, I tried to :
    - replace the default aggregation by an explicit SUM, or
    - add a SUM() in the measure formula
    but neither solved the issue.
    Does anyone know how to solve it?
    Thanks in advance.
    Ced.

    Hi,
    What is the source for AGO measures PriorDollars and PriorUnits?
    AGO(CurrentUnits, '?',?)
    AGO(CurrentDollars, '?',?)
    Have you set up hierarchy correctly (because you said that the granularity in your fact table is at week grain) and it should be like this:
    Fiscal Year > Fiscal Quarter > Fiscal Month > Fiscal Week
    It depends on how did you define your TIME dimension.
    Try maybe like this:
    PriorYEARDollars = AGO(CurrentUnits, 'YEAR',1)
    and the same for
    PriorYEARUnits =AGO(CurrentDollars, 'YEAR',1)
    Now, if you put in the report
    YEAR
    CurrentUnits
    CurrentDollars
    PriorYEARUnits
    PriorYEARDollars
    you'll get only three rows (for 3 years) with PRIOR YEAR measures.
    Try it.
    A good reference for understanding AGO:
    http://obiee101.blogspot.com/2008/11/obiee-ago-and-todate-series.html
    Also you need to set chronological key correctly for TIME dimension.
    Regards
    Goran
    http://108obiee.blogspot.com

  • Logical Column based on expression leads to nQSError: 14020

    Hallo everbody,
    I've got two dimensions D01, D02 and a fact table F.
    In Answers I have created analysises before containing D01.A and D02.A without problems.
    Now, in the rpd-file, I added another logical column to dimension D01, say D01.B, which is based on an expression of type "SOME_FUNCTIONS(D01.A))".
    If I drag D01.B and D02.A into an analysis I get the error message: nQSError: 14020 "None of the fact tables are compatible with the query request..."
    What is the problem here? I don't quite understand what is going wrong here, as I only used some functions on a colum that is working...
    Thanks for any help.
    Best regards
    Matt

    Exactly. As I wrote, B contains some functions (mainly SUBSTR and CAST) that depend on other columns from the same dimension (all other colums are physical).
    Funny thing is, when I drag D01.B into the analysis alone, it works all fine... Adding a measure also leads to the said error.

  • Two physical logical source formulas for on logical column

    I have two fact tables :
    1. W_SERVICE_REQ_F(opened_dt_wid, assigned_dt_wid, closed_dt_wid, QUEUE_WID, SERVICE_REQ_WID): grain is one row per service request
    2. W_SERVICE_REQ_DAY_A(DATE_WID, QUEUE_WID, NUM_OPENED, NUM_CLOSED, num_assigned)
    The goal is to answer NUM_OPENED, NUM_CLOSED per queue in a day and be able to drill-down to those service requests.
    Physical model:
    Common_Date.row_wid = W_SERVICE_REQ_F (Opened_Dt).opened_dt_wid
    Common_Date.row_wid = W_SERVICE_REQ_F (Closed_Dt).closed_dt_wid
    Common_Date.row_wid = W_SERVICE_REQ_DAY_A.DATE_WID
    Queue_d.row_wid = W_SERVICE_REQ_F.QUEUE_WID
    Queue._drow_wid = W_SERVICE_REQ_DAY_A.QUEUE_WID
    Service_req_d.row_wid = W_SERVICE_REQ_F.SERVICE_REQ_WID. (there is no join between Queue_d and Service_req_d)
    BMM Fact and LTSs:
    I have W_SERVICE_REQ_DAY_A, W_SERVICE_REQ_F (Opened_Dt), W_SERVICE_REQ_F (Closed_Dt) as LTSs of "Fact - Service Request" in that order.
    BMM Fact logical columns (measures):
    # Closed
    # Opened
    Question:
    I want to configure each of the above logical column with two physical columns of different aggregate forumlas. (to ensure queries that dont need service req number hit a table) (similar to http://www.gerardnico.com/wiki/dat/obiee/fragmentationlevel_based).
    SUM(W_SERVICE_REQ_DAY_A.NUM_CLOSED)
    COUNT("W_SERVICE_REQ_F (Closed_Dt)".SERVICE_REQ_WID)
    Can someone help in configuring one logical column with two physical column sources with different aggregate formulas?
    This is what I tried:
    In # Opened Properites->Data Type, mapped it to both W_SERVICE_REQ_F (Closed_Dt).ROW_WID and W_SERVICE_REQ_DAY_A.NUM_CLOSED
    In # Opened Properties->Aggregation tab, selected 'Default aggregation rule' as Count Distinct. In the bottom, Logical table sources override as follows:
    W_SERVICE_REQ_DAY_A : SUM("Fact - Service Request"."# Closed")
    W_SERVICE_REQ_F : COUNT("Fact - Service Request"."# Closed")
    Should it be done in a different way?
    PS: OBIEE 10.1.3.4.
    added OBIEE version: Feb 3, 2012 4:40 PM

    I have two fact tables :
    1. W_SERVICE_REQ_F(opened_dt_wid, assigned_dt_wid, closed_dt_wid, QUEUE_WID, SERVICE_REQ_WID): grain is one row per service request
    2. W_SERVICE_REQ_DAY_A(DATE_WID, QUEUE_WID, NUM_OPENED, NUM_CLOSED, num_assigned)
    The goal is to answer NUM_OPENED, NUM_CLOSED per queue in a day and be able to drill-down to those service requests.
    Physical model:
    Common_Date.row_wid = W_SERVICE_REQ_F (Opened_Dt).opened_dt_wid
    Common_Date.row_wid = W_SERVICE_REQ_F (Closed_Dt).closed_dt_wid
    Common_Date.row_wid = W_SERVICE_REQ_DAY_A.DATE_WID
    Queue_d.row_wid = W_SERVICE_REQ_F.QUEUE_WID
    Queue._drow_wid = W_SERVICE_REQ_DAY_A.QUEUE_WID
    Service_req_d.row_wid = W_SERVICE_REQ_F.SERVICE_REQ_WID. (there is no join between Queue_d and Service_req_d)
    BMM Fact and LTSs:
    I have W_SERVICE_REQ_DAY_A, W_SERVICE_REQ_F (Opened_Dt), W_SERVICE_REQ_F (Closed_Dt) as LTSs of "Fact - Service Request" in that order.
    BMM Fact logical columns (measures):
    # Closed
    # Opened
    Question:
    I want to configure each of the above logical column with two physical columns of different aggregate forumlas. (to ensure queries that dont need service req number hit a table) (similar to http://www.gerardnico.com/wiki/dat/obiee/fragmentationlevel_based).
    SUM(W_SERVICE_REQ_DAY_A.NUM_CLOSED)
    COUNT("W_SERVICE_REQ_F (Closed_Dt)".SERVICE_REQ_WID)
    Can someone help in configuring one logical column with two physical column sources with different aggregate formulas?
    This is what I tried:
    In # Opened Properites->Data Type, mapped it to both W_SERVICE_REQ_F (Closed_Dt).ROW_WID and W_SERVICE_REQ_DAY_A.NUM_CLOSED
    In # Opened Properties->Aggregation tab, selected 'Default aggregation rule' as Count Distinct. In the bottom, Logical table sources override as follows:
    W_SERVICE_REQ_DAY_A : SUM("Fact - Service Request"."# Closed")
    W_SERVICE_REQ_F : COUNT("Fact - Service Request"."# Closed")
    Should it be done in a different way?
    PS: OBIEE 10.1.3.4.
    added OBIEE version: Feb 3, 2012 4:40 PM

Maybe you are looking for

  • Itunes music stored on external hard drive -- and itunes library empty

    Hi, I recently upgraded to a new external HD (Seagate Go for Mac) and I moved my 111 GB of music media (which was stored on my old ext. HD) onto the Seagate. Only problem then was that when I tried to play a song in the iTunes library, it couldn't lo

  • Song titles no longer showing

    Until recently, I was able to see the artist and title of streaming music on my TV screen--as well as the album cover, which would flip around occasionally to serve as a screen saver.  This feature has suddenly disappeared, and I can't seem to get it

  • List of Changed orders  perticular period

    HI Friends 1.Do we have any standard reports to generate list of Changed orders for perticular period. 2.List of Credit / Debit Memos 3.Sales Return Report 4.Dispatch Details (Stocks in Transit) 5.Stocks received at Plant 6.Daily Sales & Stocks Locat

  • Keyboard layout on startup

    Hi there! There are two Polish keyboard layouts: Polish and Polish Pro. The first one has weird layout - z exchanged with y on some other. I've got only one set in my MBP - Polish pro - the suitable for me. Somehow when I turn my MBP on and the login

  • Controlling sk_Oracle10 Folder in OBIEE

    Hello Guys I have an requirement were i need to change the font of only one dashboard , as we all know that we can create individual s & SK folders for each dashboard . i created separate s & SK folder and assigned the s_folder in the dashboard prope