Level Based Measure and a column based on that

Hello All,
I need suggestions to implement the following requirement.
1. No of orders stored in a fact table at day level
2. No. of orders at month level should be calculated
3. Depending on the count, each month would be assigned to a bucket.
0-10 orders -> B1
11-100 orders -> B2
> 100 orders -> B3
What I did in RPD
1. fact joined to time dimension
2. created a logical column: ORDER_COUNT: count(distinct order_number) iand set the level = month
3. created a logical column: BUCKET: using the output of above logical column and CASE statement to implement the bucket rule.
Now, when I run a report like this:
Year; ORDER_COUNT; BUCKET
Returns me 12 rows. Understood because ORDER_COUNT is a month level measure
E.g.
2011 5 B1
2011 5 B1
2011 15 B2
2011 15 B2
2011 5 B1
2011 5 B1
2011 15 B2
2011 15 B2
2011 5 B1
2011 5 B1
2011 15 B2
2011 15 B2
But as soon as I pull the BUCKET column as column heading in pivot table, it returns me only the 1st month row and changes the "BUCKET" value to B3.
Looks like, it recalculates the bucket and sums up all 12 months orders and then applies the bucket rule.
Like this -
B3
2011 5
My expectation was something like this
B1 B2 B3
2011 30 90 0
where 30 is the sum of the order_counts of all B1 months, <m>
Ques:
1. Is there a way I can avoid the recalculation of bucket information when the granularity/dimensionality changes in the report
2. I read in the below link that if the grain of the report > grain of the level-based-measure then the output of the report is "not-deterministic"
Am I hitting that scenario?
[http://gerardnico.com/wiki/dat/obiee/measure_level_based]
Any suggestion would be highly appreciated.
I am using 11.1.1.6.2 version.
Thanks & Regards
Monika

Hi ,
If I understand your requirement  correctly , then you need currency Conversion.
you can refer this links.
http://consultingblogs.emc.com/christianwade/archive/2006/08/24/Currency-Conversion-in-Analysis-Services-2005.aspx
http://www.ssas-info.com/analysis-services-faq/27-mdx/244-how-change-currency-symbol-based-on-selected-currency-dimension-member
http://social.technet.microsoft.com/wiki/contents/articles/18672.currency-conversion-in-ssas-2012-multidimensional-tabular.aspx
May I know , You Require all this using MDX and SSRS Parameter ?
Thanks

Similar Messages

  • Level based measure and AGO function

    Hi,
    I've a TIME fact table with a single dimension (TIME_DIM) and a single measure (WORK_DAY).
    WORK_DAY is 1 if the day is a working day, otherwise it is 0.
    This way I can get the number of working days by month, quarter and year.
    (TIME is a logical fact table. WORK_DAY is phsical stored inside the physical TIME_DIM).
    To have WORK_DAY work correctly when used with others fact tables, I've defined it as a level based measure, where all the dimensions are set to the "total" level, apart TIME_DIM.
    So far so good.
    Then I created a new calculated measure WORK_DAY_PREVIOUS_YEAR.
    I used the AGO function this way: AGO (TIME.WORK_DAY, TIME_HIERARCHY.YEAR, 1)
    No complains by OBIEE, but this column always returns 1...
    I've no trouble using level based measures.
    I've no trouble using AGO.
    But if I mix them together they no longer work.
    Do you experience this issue? Any workaround?
    I'm using OBIEE 11.1.1.5
    Regards,
    Corraod

    What is the month level key column functionality in your time dimension?
    it should be in format of yyyymm but not in just mm ..

  • Count and range columns based on amount of time

    I'm doing SSRS and I have a table that has two different datetime columns called TranTime and AppTime.
    What I want to do is take the difference in time between those tables and do some counting based on that difference calculated.  For example, if the difference between the two dates is less than 5 minutes, then I want to have a column that counts
    the number of rows that have less than 5 minutes.  I want to do the same thing to count the number of rows that are greater than or equal to 5 minutes, but less than 10 minutes.  And have another column that is greater than or equal to10 minutes,
    but less than 15.  And then have a final row that counts all of the rest of the rows that are 15 minutes or greater.  I think I have to use some sort of case statement but I keep getting error messages. Any thoughts...? Thanks in advance

    Hi jrcowles94,
    According to your description, you have two datetime type columns in your report. Now you want to count the number of records based on the difference of these two data fields. Right?
    In this scenario, we can use DateDiff function to get the difference between two datetime. Then we use IIF function to make judgement inside of aggregation fucntion, also specify the scope for the aggregation function. We have tested your case in our local
    environment. Please try the expressions below:
    <5: =sum(IIF(DateDiff(DateInterval.Minute,Fields!TranDate.Value,Fields!AppDate.Value)<5,1,0),"DataSet1")
    5-10: =sum(IIF(DateDiff(DateInterval.Minute,Fields!TranDate.Value,Fields!AppDate.Value)>5 and DateDiff(DateInterval.Minute,Fields!TranDate.Value,Fields!AppDate.Value)<10,1,0),"DataSet1")
    >10: =sum(IIF(DateDiff(DateInterval.Minute,Fields!TranDate.Value,Fields!AppDate.Value)>10,1,0),"DataSet1")
    The result looks like below:
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Performance on  Schema based Xml and No Schema based XML

    Hai,
    We can insert two kind of xml like schema based xml document and non schema based xml document into XMLTYPE fields.I like to know which xml document will have good performance ( fast access ) compare to another.
    Even if we have any other approach than schema.It will be great.
    We do XPath query to get the values from xml document.Is there any way to get the fields faster than the XPath.I am using Oracle 10g R2.
    I need to access much fast the xml element from the table.Please help me!.
    Thanks,
    Saravanan.P

    HHave you read the FAQ or any of the XML DB whitepapers... If not I suggest that you do so before proceeding any further or asking any more questions. If you take the time to a do a little basic research you should be able to see that you have made the worst possible decision if performance is importantto you.
    If you invested a little bit of effort before posting you would soon understand that in 10gR2 you will need to use schema based storage to get high performance, and that it doesn't matter whether you use XPath or XQuery, what matters is whether or not the XPath or XQuery operations get re-written correctly so the database can optimize them.

  • Client based settings and non-client based settings

    Can I knwo what is the client based settings and what are the non-client based settings.

    Hi,
    Slight error in you question:
    There are 2 settings:
    1. Client specific: These are customising settings which impact only in the client you are making the changes in.  Let us say that in an instance you have 2 clients, 800 and 900.  When you change a client specific setting in 900, it is not reflected in client 800.  This is beacuse the table where this setting is stored contains the client as one of the fields.
    2.  Cross Client settings:  Here, a change in one client is also replected in all the clients in that installation.  Needless to say, the tables for these settings will not have client as one of the fields.
    Cheers

  • PerfView : Does source code lookup always shows time-based-indicators and not size-based?

    Hi,
        I've two questions on "source code look-up feature" - this is one of the highlighting features from PerfView (thank you for that).
    1) I've created ETL aiming only at managed memory pressure analysis (that is by deselecting all other options except => ".NET", "GC Only", ".NET SampAlloc")
          >> Now if I go to source code look-up from "GC Heap Alloc Stacks" it navigates to the code and shows an indicator (for example "105.7K|") does this mean => CPU time spent here -or- Total memory
    consumed from here?
    2) Currently "source code look-up feature" works only for .etl file and not for .gcDump, is there a way to make it working for .gcDump also with properly configured symbol paths? (I mean without creating .etl files).
          [this would really help me avoiding time & space for ETL in cases where I'm interested only in "gcDump"].
    --gopalan

    Sorry but I forgot to say, that I selected ITSMobile as the template generator. Everything works like a charm when I use the WebGui template generator.
    So I can narrow down the problem: Does anyone know how to display itsmobile templates correct in an standalone ITS 6.20 28.
    Best regards.
    Markus

  • Issue with Level-Based Measure Calculations

    Hi all
    Edited by: aharrab_be on Jan 19, 2009 7:23 AM
    I've just understood the meaning of those level based measure and It's not very useful for this purpose
    Sorry
    Edited by: aharrab_be on Jan 19, 2009 7:24 AM

    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

  • Update Excise base value in MRP based and Non-MRP based billing

    Hi Gurus,
    We need to update Excise Base Value for Statistical Condition type. How to configure the same ?
    Sl.No  Pricing Condition Type      Active   Statistical           Passed to Accounting        
    1        MRP Price (Statistical)                                                                               
    2        Abatement (Statistical)                                                                               
    3       Surcharge  (Active&Passed to Accounting)
    4      Assessabel value (Statistical)
    (No:4 This is the base for calculating Excise duties i.e Excise Base Value)
    5       List Price (Statistical)                                              
    6       Customer Discount(Statistical)                             
    7      Surcharge(Active&Passed to Accounting)                                                                 
    8      Net Price (Active&Passed to Accounting)                                                                     
    9      BED   (Active&Passed to Accounting)                                                                          
    10    ECess  (Active&Passed to Accounting)                                                                       
    11   SECess  (Active&Passed to Accounting)
    12   Total collected from Customer(Statistical)              
    Issue: When there is MRP Price higher than the List Price, then the Cutomer will be charged on the basis of Net Price only, but the duties amount to be paid to the government on MRP Price. so in this case I can not calculate Excise Duties on the Actual Net Price condition which is active and passed on to accounting. And always the Excise duties to be calculated on Assessable value(no:4). But that condition type if I make activate then it will pass to accounting and also getting added to the Net Value(KOMP-NETWR). How to come out of this situation.(as per the customer requirement both MRP based materials and non-MRP based materials are also considered in the same sale order i.e with the same pricing procedure).
    Becasue of this EXBAS is not getting updated in the J_1IEXCDTL.
    Gurus, Share your valuable experiences and suggestions.
    Thanks &Regards
    Sreekanth
    09611147585

    Dear Lakshmipathi,
    As per your suggestion, I have maintained Material Assessable Value and then also the duty values are calculating on the basis of Assessable value maintained in the Pricing Procedure. It is not taking the Material Assessable Value into consideration. And it is not getting updated the Excise Base Value.
    In which case Material Assessable value will be taken into consideration?
    How to update the Excise Base Value in J_1IEXCDTL tables?
    Thanks&Regards
    Sreekanth

  • RSUM and level based measure

    Hi all,
    Is it possible to use the RSUM display function with level based measure. RSUM(LBM) in Answers.
    I tried to do so but the RSUM is never correct,so i'm wondering if I'm doing something wrong or the RSUM is not working correctly with level based measures.
    Regards

    What is the month level key column functionality in your time dimension?
    it should be in format of yyyymm but not in just mm ..

  • Level Based Measures

    Hi Experts,
    please clarify my doubts .
    1. I created 3 level based measures. Year level Revenue, Quarter level Revenue and Month level revenue. And I do have Revenue column which is not at any level.
    Report:
    I put "Date" , "Year based Revenue" , "Quarter based Revenue" and "Month based Revenue" in a report.
    Everything works fine.
    But when i add ' Revenue' Column (not specific to any level) to this report, all values of level based measures changes. Why does this happen. And how to overcome this?
    2. Also when i add columns from other dimensions(Like ProductName) , values of all these level based measures in previous report changes.
    My questioin is why do these fields change their values when someone else comes into picture.(Though they are called level based measures !)
    Is there any way to hold a particular value in a field no matter which ever field comes in a report?
    Thanks in Advance
    Jaan

    Hi Pramod,
    It's customary to award points to Nico for helping you with your question. Could you also set the thread to Answered so other users can take advantage of your work in case they have the same problem?
    Thanks!
    -Joe

  • 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

  • OBIEE Multiple Facts With Level Based Measures

    Gurus,
    We have a requirement which we think complex to achieve at OBIEE level. Please help if anyone knows a solid solution for this problem.
    Orders, Shipments and Revenue are the fact tables and we have common dimensions like customer, product, time and others. For each fact table there is a corresponding dimension to store the non metric columns like Order Number and Shipment Number.
    Now the requirement from the customer is
    1. Need to see the Order Information completely even though he is looking at Shipment or Revenue data. Ideally, it is not mandatory for each order to have Shipment or Revenue. This is applicable for Shipment too, if the customer is looking at revenue and shipment data he needs see all the shipments including those that doesn't have any revenue.
    2. Non Confirming dimensions should not throw errors. This could be possible by using Level based measures.
    Please help with your thoughts here. Thanks in advance.
    Siva

    Hi,
    Create left outer join from Order Number to Revenue Fact and from Shipment Number to Revenue Fact.
    Now when you create a report you will get all Orders and Shipments.
    It will impact the performance of the reports though.
    or you can try creating a union report as
    Customer Order Number Shipment Number Revenue Quantity >>>>>>>> This will give you orders which have Revenue
    Union
    Customer Order Number Shipment Number 0 >>>>>>>> This will give all orders and shipments
    Hope this helps.
    Thanks

  • Query regarding Level Based Measure on Reports

    Hi All,
    I am facing an issue in OBIEE while using aggregate measures.
    Scenario
    My Report has the following columns. There is security applied on the report ie an Employee who logs in gets to see only his/her data.
    1) Employee
    2) Month
    3) Monthly Sales
    4) Org Sales(Aggregate Sales at Organization Level)
    My Issue is that even when an Employee does not have any Monthly Sales for a Month (no entry for the employee in the dimension table)  it displays results for Org Sales. So I have a report that looks like given below.
    Please note - There is no entry for this employee in the Dimension table for this month.
    Employee
    Month 
    Monthly Sales 
    Org Sales
    12000
    I do not want the report to display any value when there is no monthly Sales for the Employee. From the back end, I can see that there are 2 separate queries generated for this report. 1 for the fetching the Monthly Sales for the Employee and 1 for fetching the Org Sales. If I apply a condition saying Employee IS NOT NULL, it gets applied on the first query.
    Is there some workaround to make sure that the report does not come up or show some message when Employee data is not returned by the first query
    Thanks
    X

    hi Devarasu,
    Thanks mate.
    I know how level based measure works.
    But in my case The Hierarchy is bit different The UDA is part of Product hierarchy but its not the Child of Subdivision,
    I think problem is occurring because of that only but i am not sure
    anyone have any idea about this kind of hierarchy and level based measures?
    Thanks

  • Question in Calclating Level based measure

    Hi all:
    I have a requirement, where I need to calculate a level based measure. Here is a thing though.
    Let me give you sample data.This is what the data in the table in database looks like
    company ||||account||||| product|||||subproduct||||||quantity||||||| amount
    http://i.imgur.com/1CfXd.png
    Amount column is at company-account-product combination level.. (It is loaded in the database table as same for each company-account-product combination. If you see the First image, amount is 100 for that company-accont- product combination level..
    Quantity is at sub product level...
    I need to display a report with these columns:
    Company||||| account|||||| product||||||||| subproduct||||||||| quantity||||||| amount|||||total quantity
    http://i.imgur.com/KLgBg.png
    The last column Total quantity should be at company-account-product combination level. Not at sub product level.
    see the above picture for detailed idea. Total quantity for first company-account-product combination is 5 and for the below one, its 10
    One thing is that I donot have Dimension tables for Account, product, company. They come from the fact itself.
    I guess level based measure will solve the problem. If so, how do I create a level based measure for Total Quantity column when there are no dimension tables?

    We got two types of grouping Logical level and column level
    We go for Logical level in most cases since we are going with default or defined dimension hierarchy for each logical table, we go with column level when you dont have hierarchy.
    See that can you go with column level using properties of measure
    General->Content-> choose column for 'Aggregate content, gorup by'
    Edited by: Srini VEERAVALLI on Dec 16, 2012 1:47 PM

  • Howto create special level based measure

    Hi all
    I have a geography dimension :
    All
    -Region
    --coutry
    ---store
    I'm reporting the sales per year:
    I need to create a measure that able the user to display 'shareof sales' for every level in the hierarchy.
    In other words In need a logical column that allows the user to see :
    store sales /total of 'country sales '
    country sales /total of 'Region sales'
    Region sales/total of 'All sales'
    I created 3 level based measure with different levels for every one and calculate the 3 'shareof sales'.I had a correct result But the user wants to have only one logical column representing all the combinations and using different levels of the hierarchy as lowest level .
    Is it possible to create this kind of calculation?

    Thanks stijn
    Yes he wants "sales by store"/"total country sales" when a store is in the report and "sales by country"/"total region sales" when country is in the report, but he also wants to "sales by lowest level of detail" / "sales by lowest + 2 level of detail" when store is in the report and this using the same logical column.
    But how do you create a measure which is aggregated by the lowest +1 level of detail?
    No i didn't create this aggregation and I don't know if it's possible.so I don't realy have "sales by country"/"total region sales" when country is in the report.
    Do you know what I mean? So actually you want the BI Server to find out what the higher level in the hierarchy is. I'm not aware of a function which could do this.
    Actually as you said is their any way to make the server aware of this or every thing need to be decided in the repository before??
    Regards
    Edited by: aharrab_be on Jan 28, 2009 6:55 AM

Maybe you are looking for

  • Some data in ... could not be read or written. (Error code -36).

    Hello. I just got a Lacie 512mb disk, and thought it would be ideal for running my iTunes library off of. Got the disk, ran it through its paces, hooked it up to my Mac mini, and I can't seem to copy hardly any files over. Here's one error (but you c

  • How to change status of Campaign

    Hi I have writtend following code to change the status of the campaign Data : lit_status_comt TYPE crmt_status_comt, wa_status_comt LIKE LINE OF lit_status_comt, lit_field_names TYPE crmt_input_field_names_tab, wa_input_field_names LIKE LINE OF lit_f

  • IDOC change pointer key filtering

    Hi Experts, I have created a message type ( ymatmas_xxxx ) and activated change pointers for this message type. So now may requriement is : If I have activated 10 fields in chanage pointer , so IDOC should trigger only if any of the 10 fields are cha

  • My password became wrong every month, why ?

    Hello ! I've got an issue since few months. Without any reason the password on my Apple ID account (icloud, itunes stores....) become invalid every month. I've to change it... It happens the first time 6 months ago, at this time I thought that it was

  • When detaching attachments from incoming messages, they no longer alwasy show at the bottom of the email.

    Detach All now removes the list of attachments from the bottom of the message - sometimes.... Any clues as to how to prevent this, or retrieve the list of files?