Using Dimension Measures - COUNT, etc.. within Fact Results

All,
I am running into an issue that I imagine is relatively straight forward if you know what youre doing but I cant seem to get it right. I am trying to include some counts from my Dimensions alongside measures from my fact table.
To do this I have setup my Dimensions as Facts that I require counts from. In a simple example I have:
EVENT_FACT
Timestamp
User Id
Building Id
Event Type
existing measure = Event Count
USER_BUILDING_DIM
User Id
Building Id
Building Type
USER_BUILDER_DIM contains a record for each user and the building they are contained in along with a type. Users can exist in multiple buildings so this table's key is User Id and Building Id.
When I run a query from the FACT table I want to show the total number of Distinct Users in that build next to each result. To make this work I have done the following:
1. Setup the USER_BUILDING_DIM as a fact in my BMM, the only table that joins to this Fact table is the USER_BUILDING_DIM itself
2. In the USER_BUILDING_DIM (DIMENSION) hierarchy I have 3 levels, total, building and user ... I want my count of all users for each building
3. Created a measure called User Count - Distinct in the USER_BUILDING_DIM (FACT) table and set it to the Building level in the USER_BUILDING_DIM (DIMENSION) hierarchy. That is the only level I set for this measure
When I go into answers and I create a query like:
Building Id, Event Count, User Count - Distinct
The query comes back perfect and shows me for each building the total event count from the EVENT_FACT table and then alongside it the Distinct User count for users in that building counted from the USER_BUILDING_DIM table.
The Issue occurs when I add any other dimensions into the request that hang off of the EVENT_FACT table, such as Month from my Time Dimension which also hangs off of the EVENT_FACT table:
Month, Event Count, User Count - Distinct
Now, for the query above the User Count - Distinct value returns nothing and when I look in the logs Answers is not even performing a count anymore and instead is just joining the USER_BUILDING_DIM to the EVENT_FACT table and TIME Dimension
Any thoughts .. thanks in advance
K

Hi,
You are getting no results in "User Count Distinct" when you also drag "Month" because "USER_BUILDING_DIM_FACT" doesn't join to the Time Dimension.
This Fact doesn't have any Time information so it's not possible to obtain the "USER_BUILDING_DIM_FACT"."User Count Distinct" measure with Time Dimension columns.
You are trying to count users by Month but you don't have this information in your model. You can only count users by month which have events associated to it.
Regards

Similar Messages

  • Logical column - Fact measure using Dimension value

    Hello all, I have a Fact table that has a metric (Value) where I have set the Aggregation rule to Sum. Now I'd like to create a metric based on the value of a Product Dimension that joins to this Fact table. So I create logical column that has the syntax - Case When Product_Desc = 'A' then Value else 0 End.
    The issue is in Answers when I bring this new metric in it doesn't bring in the correct value, are there steps I am missing with creating this metric?
    My assumption is if I just bring that new metric in by itself it would return one record - A sum of the Value where the Product = 'A'.
    Thank you

    Hi BRizzle,
    In your scenario, you creatre a calculated measure using the employee dimension, and then this measure show "#VALUE" on the pivot table, right? It seems that it's a limitation of using calculated measures in SQL Server Analysis. Calculated measures cannot
    be secured using Dimension Security in a straight forward manner, in fact they won't be listed at all in the Dimension tab of the role where we define the Dimension security. When such measures are browsed in client tools like Excel, the value that would be
    displayed is an error value like #VALUE. For the detail information about it, please see:
    Limitations / Disadvantages of using Calculated Measures / Calculated Members in SSAS
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • Using a Dimension/ Measure in a Where clause of Another Dimension/ Measure in IDT

    Hi All
    I am building a Universe using Information Design Tool. In the Business Layer, I need to use a created Business Layer Dimension (not Tables) in a Where clause of another dimension as follow:
    Dimension: "Current Week No"
         SELECT
              budgets.dbo.Calenderweeks.WeekNo
         WHERE
              budgets.dbo.Calenderweeks.EndDate = convert(SMALLDATETIME, fn CURDATE()})  
    Dimension: "Last Week No"
         SELECT
              budgets.dbo.Calenderweeks.WeekNo
         WHERE
              budget.dbo.Calenderweeks  .WeekNo = @Select(Dimension\Current Week No) - 1
    The first dimension is working well. However, the "Last Week No" shows NOTHING (I do not get any value)
    Anyone can explain why I am not get any value from the second dimension, and how I can use a Dimension/ Measure in a Where clause of another Dimension/ Measure ?
    Thanks

    Short answer:
    Beware of object WHERE clauses. They are rarely (I'd almost say never) the solution to the problem you're trying to solve.
    Long answer:
    It doesn't work because you are inadvertently filtering the same value twice in two incompatible ways in the same SQL statement.  Both objects SELECT the same column in the database.  The first object uses a WHERE clause to set it to the current week.  The second object attempts to use a WHERE clause to set it to the previous week, but does so by selecting the first object, so you end up with both objects in your data provider.
    Remember that BO is going to place all the objects in your data provider in the same SQL (except of course where your context definition has ensured otherwise.), so you have two WHERE clauses in your generated SQL which attempt to find a line equal both the current week and the previous week... and returns, naturally, no results.
    Rewrite it with a derived table (as explained in the response above) and you'll get what you want.

  • Multiple fact tables using one measure

    Hi Experts,
    Multiple fact tables using single measure .For example Measure name is amount . This measure is using 5 fact tables. By using this info , i have to create bmm layer document . In bmm layer documents columns are like logical table name ,column name, logical sourc name . could you please help me out to draft the document ?

    Hi ,
    My question is five fact tables are there, day level two different fact tables , period and week fact tables are there .
    Above all tables are using single measure . how to design these fact tables with measure in bmm layer ?
    Please kindly give reply .
    Thanks in advance.

  • How to Identify larger Infocubes where the dimension entry count is large

    Hi SDN,
    I need some help on Indexes dropping and Recreation.
    Please can any body help me on How to Identify larger Infocubes where the dimension entry count is as large as the Fact Table count.
    Need to suggest on a solution to implement the Indexes creation for optimizing the load performance of Larger Infocubes... Its urgenTT!!!!!!!
    Please help!!
    Thanks,
    MH

    Hi,
    I have ran the Report in SE38, also I have downloaded it to local Excel file.
    It is showing density, rows etc.Please can you elaborate on how to easily Identify
    the Larger cubes. As I have seen that the rows of both E and F fact table are displayed. How can I use this reports information in order to suggest for the Indexes?
    Help in this regard is much appreciated!
    MH

  • How do I use Derived Table to dynamically choose fact table

    How do I use the Derived Table functionality to dynamically choose a fact table?
    I am using BO XI R2 querying against Genesys Datamart kept in Oracle 10g.  The datamart contains aggregated fact tables at different levels (no_agg, hour, day, week, etc...) I would like to build my universe so that if the end user chooses a parameter to view reports at daily granularity, then the daily fact table is used;  choose hourly granularity, then hourly fact table is used, etc....
    I tried using dynamic SQL in Oracle Syntax, but Business Obljects Universe didn't like that type of coding.
    The tables look something like this:
    O_LOB1_NO_AGG o
    inner join V_LOB1_NO_AGG v on o.object_id = v.object_id
    inner join T_LOB1_NO_AGG t on v.timekey = t.timekey
    Likewise, in the 'hour', 'day', 'week', etc... fact tables, the Primary Key to Foreign Key names and relationships are the same.  And the columns in each O_, V_, T_ fact table is the same, or very similar (just aggregated at different levels of time).
    I was thinking of going a different route and using aggregate aware; but there are many Lines of Business (20+) and multiple time dimensions (7) and I believe aggregate aware would require me to place all relevant tables in the Universe as separate objects, which would create a large Universe with multiple table objects,  and not be maintenance-friendly. I also was going to dynamically choose Line of Business (LOB) in the derived tables, based on the end user choosing a parameter for LOB, but that is out-of-scope for my current question.  But that information sort of points you down the train of thought I am travelling. Thanks for any help you can provide!

    You can create a derived table containing a union like the following:
    select a,b,c from DailyFacts where (@prompt('View'....) = 'Daily' and (<rest of your where conditions here if necessary>)
    union
    (select a,b,c from MonthlyFacts where (@prompt('View'....) = 'Monthly' and (<rest of your where conditions here if necessary>))
    union
    (select a,b,c from YearlyFacts where (@prompt('View'....) = 'Yearly' and (<rest of your where conditions here if necessary>))
    I assume that you are familiar with the @prompt syntax
    Regards,
    Stratos

  • Error in WEBI report and MDXTEST  when using Dimensions in Prompt

    Hi,
    I am using BOXIR3.1 SP2, SAPBI 7.0
    I m creating a webI report (Universe is on SAP BI Query.) which include following objcets in Query section of WebI pannel:
    Business partner, Account Class, Total Arreas count.
    The Condition pane of Webi Includes Prompt on object "Account Class".
    When I run a report, I get List of values for Dimension Account Class, when I select one of available value eg: Commercial Customer,I get Following Error.
    A database error occured. The database error text is: The MDX query SELECT  { [Measures].[4EITIDWAFWLLZD2ONIAVCKD56] }  ON COLUMNS , NON EMPTY CROSSJOIN( [Z_BPATNER].[LEVEL01].MEMBERS,  { [Z_FCACTBP__0UCACC_CLAS].[Commercial Customers] }  ) ON ROWS FROM [ZFC_M07/Z_FC_M07_Q002]  failed to execute with the error Value Commercial Customers for characteristic Z_FCACTBP__0UCACC_CLAS unknown. (WIS 10901)
    I tried running same query in MDXTEST editor of BI. I got same error!!!
    Then I tried changing the MDX Query as:
    SELECT  { [Measures].[4EITIDWAFWLLZD2ONIAVCKD56] } 
    ON COLUMNS , NON EMPTY CROSSJOIN( [Z_BPATNER].[LEVEL01].MEMBERS,  { [Z_FCACTBP__0UCACC_CLAS].[COM] }  ) ON ROWS 
    FROM [ZFC_M07/Z_FC_M07_Q002]
    Then it worked Fine!!!  If you observe the change is in the value of Prompt Account Class [Z_FCACTBP__0UCACC_CLAS].[COM]
    By default Dimension object in Universe shows text value, but when I changed the MDXQuery with Key value (This is one of the value of value is for [Z_FCACTBP__0UCACC_CLAS].[Level01] object in mDX test Editor.) It works fine.
    I wonder How do i solve this problem!! List of values available in dimension cannot be changed at universe level.
    Please let me know if any solution for this exists.
    regads,
    Nisha.

    Hi Ingo,
    I am creating the prompt on the dimension "Account Class" at WebI level.
    The Technical name of this object is: [Z_FCACTBP__0UCACC_CLAS].[LEVEL01]
    Also,
    I confirmed that Index Awareness is applied on this dimension as [Z_FCACTBP__0UCACC_CLAS].[LEVEL01].[TECH_NAME].
    This Dimension has detail object called "Account Class (Key) "and "Account Class (Medium name)".
    MDXtest editor in SAP, shows me text as well as [ Level01] values:
    Eg: Account Class InfoObject has values "Commercial Customer " (This is text value)and  "[Z_FCACTBP__0UCACC_CLAS].[COM]".
    COM Refers to Commercial Customer .
    So In WebI when I use Dimension "Account Class" as prompt, I get Text value of this InfoObject which is "Commercial Customer ".
    and MDXQuery Fails. But when I modify this query in mDXTEST Editor with value as "[Z_FCACTBP__0UCACC_CLAS].[COM]", It work fine.
    I donu2019t understand the reason, since this problem is with almost 90% of Dimension object.
    When I delete this object from universe, and refresh the universe then webI works fine.
    But, if for some reason I refresh the universe again, the Dimension object as a prompt doesnu2019t work!!!
    This error occurs every time I refresh the universe.
    We are in UAT phase and soon to go Live!!  We cannot afford to delete the object every time I refresh the universe.
    Please let me know your inputs.
    regards,
    Nisha.
    Edited by: Nisha Makhija on Oct 15, 2009 4:56 PM

  • Dimension Table Attributes giving No Fact Table Exists Error

    Hi Experts,
    My OBIEE version is 11.1.1.6.10. There is a presentation table which has columns coming from multiple logical tables. I'm dragging 2 columns into the report which are coming from 2 logical tables.
    The result is displaying. When I checked the query, a fact table is also coming and results are getting effected because of this.
    Could anybody let me know if any idea.

    Hi SriramKarthik,
    Aj (bi007) already gave you the answer on how you can change the implicit fact table, the one you are seeing in your physical query.
    I'm just not sure of what is your question: are you surprised to see a fact table is used in the physical SQL and look for a way to avoid it because, as you say, results are impacted by that implicit fact table? You can't get rid of that table, you can only choose it (the implicit one).
    OBIEE must join in a way or another your 2 dimensions, and in your BMM these dimensions are joined by a fact table, that's why you see it in your query.

  • How to use on board counter to change sample rate dynamically on pci-6134

    Hi,
    I am relatively new in LabView.
    I am making power quality measurement system and I need to vary the sampling rate of my pci-6134 dynamically (all channels simultaneously). What I need is to have a constant amount of samples in each period of measured signal (grid voltage), which changes slightly all the time. Therefore I will have to measure the voltage, find its exact frequency and then adjust the sampling rate of daq accordingly. I know that there will always be some delay, but I would rather like not to go into any predictive algorithms...
    I have found an information in the Forum that one of possible solutions is to use an onboard counter to change the sampling frequency but I have no idea how to make that. Can someone help me or possibly show an example? 
    Is there a simple way to solve that problem?
    Thanks in advance
    Andrzej

    At least at a glance, the code generally looks like it ought to work.  Two thoughts:
    1. Instead of getting into PFI3 vs PFI8 routing stuff, can't you just specify "Dev1/Ctr0InternalOutput" as the AI Sample Clock source?  (You may need to right-click the terminal to get at the menu that exposes the so-called "advanced terminals").
    2. Try writing both the freq AND duty cycle  properties when you want to update the freq.  Or try using the DAQmx Write vi instead of a property node.  My past experience suggests that writing only the freq property *should* still work, but writing both isn't hard to try and may turn out to help if the behavior of your version of DAQmx differs somehow.
    -Kevin P.
    P.S. Bonus 3rd thought.  I just went back to reread the thread more carefully, including your first screenshot.  I'm now thinking that maybe the hardware actually WAS behaving properly, and that you just weren't aware of it.   When you query the AI task for it's sampling rate, all the task can know is whatever rate you told it when you configured it outside the loop.  So even as you change the counter freq to change the actual hardware sampling rate on the fly, the AI task will continue to report its orig freq.  After all, how is *it* supposed to know?
           Try an experiment:   Set your original freq very low so that the AI task produces a timeout error without getting all the requested samples within the 10 sec timeout window.  Run and verify the timeout.  Then run again, but after 3-5 seconds set a new frequency that will produce all those samples in another 1 sec or less.  Verify that you get the samples rather than timing out.  That should demonstrate taht the counter freq change really *does* produce a change to the hardware sample rate, even though the task property node remains unaware.

  • Where can I find information about using the measurement tool and log?

    Am try to use the measurement tool to measure perspective plain; any ideas?

    No one can remotely have "any ideas" to help you when you don't even mention what your problem is nor what your system and workflow are like.
    Of course, when you post here,one assumes you have done your due diligence, read the documentation, the user guide, the Help files in the Photoshop Help menu, as well as done Google and forum searches, etc, and we would expect some sensible, detailed information from you.
    Teaching someone Photoshop from scratch, step by step, exceeds the scope of this forum—or any other forum.
    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    A screen shot of your settings or of the image could be very helpful too,
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • What's the unit label of y-axis of PSD when using Spectral Measurement Express VI?

    Hi:
     What's the unit label of y-axis of PSD when using Spectral Measurement Express VI?
    Selected Measurement : Power spectral density
    Result : dB
    No Averaging..
    Is dB/Hz the magnitude label of PSD output? Thx!

    There could be an issue the the Express VI converting your waveform data into the dreaded Dynamic Data Type, which is just causing more and more memory to be used.
    So what I would recommend is use the DAQmx Configure Logging  VI to configure DAQmx to stream the data as you read straight to a TDMS file.  There are various other properties you can set to make the logging go across files.  You just set up the logging before running your task.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • From scorecard Pass parameter to be used as Measure in query of analytic Grid report in PPS in SP2013

    From scorecard Pass parameter  to be used as Measure in query of analytic grid report in PPS
    Any idea of how we can pass this parameter while connecting scorecard and report
    any use of MDX in connection formula ?
    Parameter needs to be assigned on click of scorecard cell

    Hi,
    That API has restrictions on its usage. Please see http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_util.htm#CHDICGDA
    The lines to be referred to are Also, this method requires that the parameters that describe the BLOB to be listed as the format of a valid item within the application. That item is then referenced by the function.Regards,
    PS: Your report must be on Page 98 , so it is able to reference the item P98_NAV_IMAGE. List being a Shared Component it may not be able reference that Item.
    Edited by: Prabodh on May 28, 2012 3:16 PM

  • What sensor should be used to measure speed of motor

    Hi,
    I am using NI PCI-6624 to control the speed of dc motor. I have used "PWM-Counter Output.vi" example to generate PWM pulses to control the input power of motor. I am using "counter output" and "analog input" terminals of PCI-6624. Counter output terminal is used to generate PWM signal and "analog input" terminal will be used as an input from speed sensor.
    Can someone tell me what sensor I can use to measure the speed of motor. Please note that the output of the sensor will be the analog input to PCI6624, so it is essential that speed sensor's output is ANALOG.
    Please help me in this matter and tell me which sensor can be used and from where I can buy it ?
    Thanks

    Ayaz,
    the straight forward low-cost solution for velocity measurements is using a quadrature encoder. With your  DAQ device you could use the second counter of the board to measure the frequency of one phase, but that's jus one option amongst others.
    I haven't come across sensors that output a voltage that is proportional to velocity but expect such a device to be much more expensive and probably less accurate.
    Do you plan to do closed loop velocity control? Are you using Windows or a realtime system?
    Kind regards,
    Jochen Klier
    National Instruments

  • Execution of a planning function with the used dimension values in a crosstab

    Hello,
    would like to execute planning functions within Design Studio but I don't really know how I combine this execution with the used dimension values in a crosstab for the .
    Here the requirement:
    3 Planning functions which should use the same filter (all values of all dimensions in the crosstab) and which should run one after another:
    // open data slice
    PF_1.execute();
    // generate combinitions
    PF_2.execute();
    // close data slice
    PF_3.execute();
    Many thanks in advance.
    Kind regards,
    Tobias

    Hi Arun,
    in general it is not possible to nest planning functions. The inner function would update the data in the plan buffer without the outer function knowing about it. Also the inner function might be on a different aggregation level which would make things very tricky.
    Alternatively you can include ABAP logic into a FOX formula:
    http://help.sap.com/saphelp_nw70/helpdata/en/47/94eb78b6394befe10000000a42189d/frameset.htm
    Or just create the complete logic in one ABAP planning function type.
    Regards,
    Marc
    SAP NetWeaver RIG

  • SSAS 2008 - How to get processing times per dimension / measure group?

    Hi experts!
    SSAS 2008. I am doing analysis and I'm trying to get information (from dmv or log) about processing times per dimension / measure group. Any ideas how to do that?
    Thanks,

    also in DMV there's no column recording the processing time, so we suggest you using SSAS AMO to programmatically get the state and last processed date time. Please see:
    Analysis Management Objects (AMO)
    Hi John,
    Thanks for you info, As
    Simon Suggested there is no DMV columns available.
    You can use below link for more information.
    Programming Administrative Tasks with AMO
    Cube
    partition attributes for last processed (timestamp and status)
    Thanks
    Suhas
    Mark as Answer if this resolves your problem or "Vote as Helpful" if you find it helpful.
    My Blog
    Follow @SuhasKudekar

Maybe you are looking for

  • Home network stopped functioning after FIOS installation

    I have 2 desktops running XP and a wireless laptop running Vista.  With my old router, I was able to transfer files and print.  After the FIOS installation, the three computers don't "see" each other.  All 3 have internet connectivity and no problems

  • Read a text file

    I have a text file such that 0 jones 1 0 helen 2 1 cat 3 1 dog 4 1 cow 5 2 snake 6 2 ant 7 if I press 2 (this 2 belongs to helen) I should have snake and ant please help me it is so important

  • Photoshop Artistry by Barry Hanes and Wendy Crumpler

    I have one of their earlier versions... Photoshop 6 Artistry... which i found to be pretty good. Their latest seems to be: "Photoshop Artistry: For Photographers Using Photoshop CS2 and Beyond." Question is, how relevant is that vis-a-vis PS CS5? Or

  • Break the Password of ISE in a virtual Environment.

    Hi All, I have forgot my password of my ISE. Infact it is running in a Secure Network Server 3415.  This equipment was installed by my ex-colleague and he left the organization. Please help me and let me know how to break the password in ISE; which i

  • Raw compatibility for pentax 645d coming???

    does anybody know if apple is willing to include the pentax 645d? I am not really satisfied with the quality of lr 3 and unfortunately also CaptureOne doesn´t support my 645d. Ernst