Different measures use same source column but gives different values in SSAS project

I've inherited a SSAS project. I'm currentlig gaining knowledge, but do not understand this: There are 4 measures that get data from same source table and column. Example measures:
[Started]
[Processing]
[Processed]
[Finished]
All of them gets data from a table (view), and a column "Event_count" with just value 0 in each row. Usage of the measure is "Count of non-empty values".
Correctly all of these measures gives different values, but I don't understand how since they all go against the same source column. I thougt maybe they were defined in Calculated measures, but nothing there. Where or what else could be affecting this behavior?
Bonus information (problem): One of the measures is returning blank/empty, which is why started with this research at all.
Help anyone?
regards .r

Hi ,
I would ask if all the measures are under the same measure group ? It is important to know, since in the dimension usage we are creating relationships between dimensions and measure
groups .
Did you try the delete all the calculation's code and leave only the " CALCULATE ; " part ? Do the values change after deploying the slim script ?
Are all properties the same ? defaults & caching ?
Regards, David .

Similar Messages

  • Constructing Calculated Measures in MDX for different measures using same columns in a fact table

    Hello,
    i have a fact table with 2 columns corresponding to dimensions Dim1, Dim2. In the same table i have 4 other columns Value_Type(int), INT_VALUE(int), FLOAT_VALUE(float), TEXT_VALUE(string). There are a number of measures which are identified by Value_Type and
    depending on their nature could be written in one of the 3 columns (INT_VALUE(int), FLOAT_VALUE(float), TEXT_VALUE(string)) Let's say Measure1 with Measure_Type=1 is age, 2 is account balance and 3 is Name for clarity. There could be other measure types that
    use these 3 same columns for data. So the sample fact table looks like this
    Dim1 Dim2 Measure_Type INT_VALUE FLOAT_VALUE TEXT_VALUE
    10 10 1 25
    10 10 2 2000,34
    10 10 3 John
    10 20 1 28
    10 20 2 3490,23
    10 20 3 Frank
    My task is to write an MDX query for each Dim1, Dim2 combination which returns all 3 measures in the same row. The idea is to construct a calculated member for each Measure that returns value from the right field. For example for Measure1 we take INT_VALUE
    with measure_type=1. The problem is i don't know how to construct MDX query for these calculated members. Can you please help me?
    So my final goal is to write an MDX query that returns all measures in one row for each set of Dim1, Dim2
    SELECT [Measure1], [Measure2], [Measure3] ON COLUMNS,
    NON EMPTY [Dim1].[Dim1].[Dim1].Members*[Dim2].[Dim2].[Dim2].Members ON ROWS
    FROM [Cube]
    Dim1 Dim2 Measure1 Measure2 Measure3
    10 10 25 2000,34 John
    10 20 28 3490,23 Frank

    Hi Kosmipt,
    I would combine the "INT_VALUE", "FLOAT_VALUE" and "TEXT_VALUE" columns into one with STRING data type for the fact table. And there should be one dimension to store the Measure_Type informations. Then in cube, you can write MDX scope for every one of
    "Measure_Type" dimension members. For example,
    scope(
                [Measures].[M]
        [DimMType].[MType].&[1]= CINT([Measures].[M]);                                                                                                                             
    end scope;
    Once the cube is built by the above way, you can write MDX like something like the following to achieve your purpose.
    WITH member [Measures].[Measure1] AS ([DimMType].[MType].&[1],[Measures].[M])
             member [Measures].[Measure2] AS ([DimMType].[MType].&[2],[Measures].[M])
             member [Measures].[Measure3] AS ([DimMType].[MType].&[3],[Measures].[M])
    thanks,
    Jerry

  • HT1203 how do I share some music on same itunes account without changing music using same itunes account, but two different ipod touches

    I need to know how to stop losing / adding music I like/ dont like to my and my brothers ipod.  I gave him my older ipod(2nd Gen) with music on it already. I bought a ipod (3rd Gen) also. Both devices are registered to me; but I gave my brother the older one.  Now when either of us add / delete music it affects both ipods when either one on us sync.  We use the same computor(windiws7), he uses his own account on the computor, butit accesses the same itune/ library.  How can we split the itunes music between the two ipods?

    Hi gail,
    Thanks for the quick reply! The music part makes sense, good to know I don't have to duplicate the lot. The big question stillr emains as to whether iTunes can cope with two different iPhones, running different versions of the iOS, and therefore different app versions.
    Currently all the apps in iTunes are years old, and many haven't updated in months (years?) because the 3G is running iOS 4.2.1 (and can't be upgraded). Many of these have since been updated in the iTunes store (for the various incarnations of iPhone since) and the old versions that my 3G requires have been replaced.
    I'm worried that syncing the 4S running iOS 5, and running the most recent updates for same apps, will cause iTunes to overwrite the old 3G compatible ones when I sync. Unless iTunes is smart enough to know which version of the app is for which OS, without updating the legacy version when I update the apps on the 4S?
    You guys shouldn't face that problem, as iPad and iPhone apps don't replace each other (I believe? Not sure about this) as new updates are released for each app, you'd have a copy for each device (for example Evernote for iPad, and Evernote for iPhone). I can't figure out if iTunes can handle keeping separate iPhone versions for Evernote iOS 4.2.1 and Evernote for iOS 5. My gut feeling is no, but I want to amke sure before I lose the legacy versions of each app.
    Of course, maybe I'm just paranoid and iTunes is in fact perfectly capable of keeping old and new apps in the same library?
    Cheers

  • HT204407 My wife and I share the same email address but have different iphone numbers.  Is there anyway we can both be on "Find Friends."

    My wife and I share the same email address but have different iphone numbers.  Is there anyway we can both us "Find Friends" apps?  When I try to enter her contact name it won't allow me to do this.  Thanks.

    make seperate appleID's if you wish to be frinds or if you wish to facetime video chat and if you wish to not recieve the samme imessage msg's unless you turn it off
    you can still set both your iphones to use an email address even if both have different appleId's
    the appleID is a handle not a link to an email address

  • 3 iphones in household.All use same apple ID.But all contacts get mixed between phones and facetime calls come in from other contacts.Ho can we change this so our phone information isn't visible to each other?

    3 iphones in household.All use same apple ID.But all contacts get mixed between phones and facetime calls come in from other contacts.How can we change this so our phone information isn't visible to each other?

    Use separate Apple IDs for each family member and use Family Sharing features of those things (if any) that you do want to share. https://www.apple.com/ios/whats-new/family-sharing/

  • How to Use Same Navigation Panal for two different query

    Hello,
    My requirement is I have to display three different report in same web template in three different tab.
    I have created a custom web template with tab.
    in each tab i have assigned three different analyser table and assigned three different report in each data provider. once I run the report that works fine, each tab is displying each report seperately.
    The problem I am having here with navigation panal. Navigation panal is working ok for 1st report, but when I go to the 2nd  tab for  2nd report nev attribute itself is not displying. is there any special setting that i am missing?
    If any one know about the same pls help me
    Thanks
    Samit

    Hi
    When u select the Generic navigational block to ur template. select that and right click go to properties, in the lift side of u web item will come in that last but one option is Affected data providers is there double click on the list u will get the option
    Shashi

  • How to use same RESULT SET for two different events

    hello friends,
    I need to use same result set for two different events. How to do it.
    here My code,
    private void jComboBox1ItemStateChanged(java.awt.event.ItemEvent evt) {
    // TODO add your handling code here:
    try
    String selstate,selitem;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con=DriverManager.getConnection("jdbc:odbc:tourismdatasource","sa","");
    selstate="select * from tab_places where state=?";
    PreparedStatement ps=con.prepareStatement(selstate);
    ps.setString(1, jComboBox1.getSelectedItem().toString().trim());
    ResultSet rs=ps.executeQuery();
    if(rs.next())
    jTextField1.setText(rs.getString("place_ID"));
    jTextField2.setText(rs.getString("place_name"));
    jTextField3.setText(rs.getString("category"));
    byte[] ba;
    ba=rs.getBytes("image");
    ImageIcon ic = new ImageIcon(ba);
    jLabel6.setIcon(ic);
    in=true;
    catch(ClassNotFoundException cfe){JOptionPane.showMessageDialog(null, cfe.getMessage());}
    catch(SQLException sqe){JOptionPane.showMessageDialog(null,sqe.getMessage());}
    Now i need the same Result Set(rs), in another event(jButton6ActionPerformed),
    private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {
    // TODO add your handling code here:
    }  how do i get dat resultset,
    help me out

    One post wasn't enough?
    {color:0000ff}http://forum.java.sun.com/thread.jspa?threadID=5246634{color}
    db

  • HT5624 My husband, myself & our 2 daughters all use the same Apple ID but w different user names. Is this a potential problem?

    4 members of my family use the same Apple ID but different user names
    Is this a potential problem w privacy etc?

    Since the Apple ID does not have a username, I suppose you mean different e-mail-adresses?
    In theory, this is not a problem, but of course it can be difficult if you want to keep things separated. For example, logging in with you Apple ID will automatically set up iCloud and sync your calendar, reminder, notes, mails etc. You can disable this syncing on your daughter's devices, but then they won't be able to use functionalities unless they create their own accounts (for example set up another email account). I think (but I am not 100% on this) they will be able to create reminders/notes etc. locally on the iphone.
    If you mean app-wise or legal-wise: No, this is not an issue. You can use your Apple ID and the apps you bought on up to five different devices. Still, for simplicities sake and to give everyone their share of privacy I personally would suggest different IDs for everyone.

  • Same query, same dataset, same ddl setup, but wildly different explain plan

    Hello o fountains of oracle knowledge!
    We have a problem that caused us a full stop when rolling out a new version of our system to a customer and a whole Sunday to boot.
    The scenario is as follows:
    1. An previous version database schema
    2. The current version database schema
    3. A migration script to migrate the old schema to the new
    So we perform the following migration:
    1. Export the previous version database schema
    2. Import into a new schema called schema_old
    3. Create a new schema called schema_new
    4. Run migration script which creates objects, copies data, creates indexes etc etc in schema_new
    The migration runs fine in all environments (development, test and production)
    In our development and test environments performance is stellar, on the customer production server the performance is terrible.
    This using the exact same export file (from the production environment) and performing the exact same steps with the exact same migration script.
    Database version is 10.2.0.1.0 EE on all databases. OS is Microsoft Windows Server 2003 EE SP2 on all servers.
    The system is not in any sense under a heavy load (we have tested with no other load than ourselves).
    Looking at the explain plan for a query that is run frequently and does not use bind variables we see wildly different explain plans.
    The explain plan cost on our development and test servers is estimated to *7* for this query and there are no full table scans.
    On the production server the cost is *8433* and there are two full table scans of which one is on the largest table.
    We have tried to run analyse on all objects with very little effect. The plan changed very slightly, but still includes the two full table scans on the problem server and the cost is still the same.
    All tables and indexes are identical (including storage options), created from the same migration script.
    I am currently at loss for where to look? What can be causing this? I assume this could be caused by some parameter that is set on the server, but I don't know what to look for.
    I would be very grateful for any pointers.
    Thanks,
    Håkon

    Thank you for your answer.
    We collected statistics only after we determined that the production server where not behaving according to expectations.
    In this case we used TOAD and the tool within to collect statistics for all objects. We used 'Analyze' and 'Compute Statistics' options.
    I am not an expert, so sorry if this is too naive an approach.
    Here is the query:SELECT count(0)  
    FROM score_result sr, web_scorecard sc, product p
    WHERE sr.score_final_decision like 'VENT%'  
    AND sc.CREDIT_APPLICATION_ID = sr.CREDIT_APPLICATION_ID  
    AND sc.application_complete='Y'   
    AND p.product = sc.web_product   
    AND p.inactive_product = '2' ;I use this as an example, but the problem exists for virtually all queries.
    The output from the 'good' server:
    | Id  | Operation                      | Name                  | Rows  | Bytes | Cost (%CPU)|
    |   0 | SELECT STATEMENT               |                       |     1 |    39 |     7   (0)|
    |   1 |  SORT AGGREGATE                |                       |     1 |    39 |            |
    |   2 |   NESTED LOOPS                 |                       |     1 |    39 |     7   (0)|
    |   3 |    NESTED LOOPS                |                       |     1 |    30 |     6   (0)|
    |   4 |     TABLE ACCESS BY INDEX ROWID| SCORE_RESULT          |     1 |    17 |     4   (0)|
    |   5 |      INDEX RANGE SCAN          | SR_FINAL_DECISION_IDX |     1 |       |     3   (0)|
    |   6 |     TABLE ACCESS BY INDEX ROWID| WEB_SCORECARD         |     1 |    13 |     2   (0)|
    |   7 |      INDEX UNIQUE SCAN         | WEB_SCORECARD_PK      |     1 |       |     1   (0)|
    |   8 |    TABLE ACCESS BY INDEX ROWID | PRODUCT               |     1 |     9 |     1   (0)|
    |   9 |     INDEX UNIQUE SCAN          | PK_PRODUCT            |     1 |       |     0   (0)|
    ---------------------------------------------------------------------------------------------The output from the 'bad' server:
    | Id  | Operation                 | Name                  | Rows  | Bytes | Cost (%CPU)|
    |   0 | SELECT STATEMENT          |                       |     1 |    32 |  8344   (3)|
    |   1 |  SORT AGGREGATE           |                       |     1 |    32 |            |
    |   2 |   HASH JOIN               |                       | 10887 |   340K|  8344   (3)|
    |   3 |    TABLE ACCESS FULL      | PRODUCT               |     6 |    42 |     3   (0)|
    |   4 |    HASH JOIN              |                       | 34381 |   839K|  8340   (3)|
    |   5 |     VIEW                  | index$_join$_001      | 34381 |   503K|  2193   (3)|
    |   6 |      HASH JOIN            |                       |       |       |            |
    |   7 |       INDEX RANGE SCAN    | SR_FINAL_DECISION_IDX | 34381 |   503K|   280   (3)|
    |   8 |       INDEX FAST FULL SCAN| SCORE_RESULT_PK       | 34381 |   503K|  1371   (2)|
    |   9 |     TABLE ACCESS FULL     | WEB_SCORECARD         |   489K|  4782K|  6137   (4)|
    ----------------------------------------------------------------------------------------I hope the formatting makes this readable.
    Stats (from SQL Developer), good table:NUM_ROWS     489716
    BLOCKS     27198
    AVG_ROW_LEN     312
    SAMPLE_SIZE     489716
    LAST_ANALYZED     15.12.2009
    LAST_ANALYZED_SINCE     15.12.2009Stats (from SQL Developer), bad table:
    NUM_ROWS     489716
    BLOCKS     27199
    AVG_ROW_LEN     395
    SAMPLE_SIZE     489716
    LAST_ANALYZED     17.12.2009
    LAST_ANALYZED_SINCE     17.12.2009I'm unsure what would cause the difference in average row length.
    I could obviously try to tune our sql-statements to work on the server not behaving better, but I would rather understand why they are different and make sure that we can expect similar behaviour between environments.
    Thank you again for trying to help me.
    Håkon
    Edited by: ergates on 17.des.2009 05:57
    Edited by: ergates on 17.des.2009 06:02

  • Use same image column twice in a report

    Hello,
    I have a question  which is, can I use a same image column (example column A) twice in a report? first occurrence (column A) will show the image thumbnail and the second occurrence (column A) will show  image download link which opens image in a new window. Is it possible?
    Thanks
    Pravish

    LA-APEX-DEv wrote:
    Yes, it's possible. However, if you intent to have two different images, then I would suggest you use a javascript to link or download the blob.
    What on Earth for? Why is JavaScript necessary to download two different images? Even if this were in any way true, the OP is clear that the displayed thumbnail and download link involve the same image.
    To accomplish this task, you either use decode or create a union query.
    No, all that should be necessary is to reference the image column twice in the report query projection, and apply a download format mask to one column and an image mask to the other. That the OP has apparently failed to do this probably indicates that they are unnecessarily complicating things.
    For example:
    select '<a href="javascript:downloadImg(' || image_id || ');"><img src="/i/download.gif"></a>' link_col
    from table
    where allow_view = 'Y'
    union all
    select '<img src="/i/folder.gif">' link_col
    from table
    where allow_view = 'N'
    or
    select decode(allow_view,'Y',
              '<a href="javascript:downloadImg(' || image_id || ');"><img src="/i/download.gif"></a>',
              '<img src="/i/folder.gif">') link_col
    from table
    What is downloadImg? it is not a standard APEX JavaScript API. It is therefore highly unlikely that this is of any use to the OP.

  • Have original iPad and just got iPad2 in same household with same email ID but with different interests.  How can we share purchased items, email and yet keep our own separate interests?

    We have iPad and ipad2 with one email address but two owners.  How can we share purchases, receive same email messages but have individual accounts at the same time?  Can we have same Apple User ID with different passwords?  Hepl!

    Aside from the fact that we have hijacked this thread - which we really shouldn't do - you would probably be better off posting questions or seeking advice in the iCloud portion of the Apple Support Communities. I'm sure that there are a lot of more experienced iCloud users on that site than I am.
    I'm not a big believer in iCloud at this point, so my experience with it - other than downloading past purchases - is really pretty limited. I would not want to steer you down the wrong path.
    However, here is the Apple iCloud support website that is loaded with all sorts of information and links to even more information. This will get you started anyway ....
    http://www.apple.com/support/icloud/

  • Update Library of a person using same music files but different login

    I use iTunes with Windows. The songs are saved in "my files". I am using Windows XP Verion 5.1 My wife uses also iTunes on the same computer but with a different login. When I add files to iTunes my library is up to date but not hers. What can I do?
      Windows XP   Verion 5,1

    Have a look at this article on sharing iTunes and see if it does what you are looking for. It was written for iTunes 4 but the version doesn't matter:"iTunes: How to share music between different accounts on a single computer" http://docs.info.apple.com/article.html?artnum=93195

  • Use same report to print out different data sources on the fly.

    Post Author: Lady101
    CA Forum: Data Connectivity and SQL
    We have 10 reports use diferent datasource( use views with different joint tables), but their print out format are identical. Is there a way to just use single report to run those 10 reports dynamically(the report can point to the right data source on the fly)? So that we can just change single report format when report format needs to be changed. Right now we have to change 10 reports format one by one.

    Another option would be to make a single pass in the Source Monitor and save a bunch of subclips. Here's a thread discussing keyboard workflows: Re: Question on making many Subclips in a fast way
    If you name highlights with one base name and lowlights with another, it would be easy to drop each batch into its own sequence.

  • HT204053 I have iphone 4 and it is using my wife  . My new iphone 5 and old iphone 4 both were used same apple password, but different e-mail address . Now both apple id has beed blocked. What do I have to do.

    My both of iphone id blocked. What do I have to do?

    Sorry, but nobody here can help you nor can Apple.  The only way to disable Activation Lock on your devices is to use the password for the AppleID associated with that devices iCloud account.  There is no alternative - you need that password, or you need your friend to disable those devices in their online account.

  • IPhone won't facetime with daughters iPod, using same Apple ID but different email addresses.... Help

    how do you get two devices to facetime on one apple id

    Yes you can use the same apple id to facetime with two devices. I just tried it between my macbook air and my iphone 5S using the same apple id. You just need to make sure the ipod is trying to call the iphone number.

Maybe you are looking for

  • Siri duplicate entries in calendar reminders

    I had some trouble with duplicate calendar entries in Calendar with iCloud and Siri, showing duplicate entries in my iPhone, but not on my macbook pro. I've now set the iphone to show just iCloud entries, which seems to have fixed duplicate entries i

  • Out of Order TV Shows in iPod Classic

    Here's an interesting problem that's really more of an annoyance than a problem that I foolishly posted in the iTunes section and not in this one. For some reason on my 80gig iPod when I go into the tv shows I have such as Jericho it'll list it as no

  • Confirmation of file process

    Hi, There is a pdf file which we should pick up from a source FTP and drop into the target FTP. Requirement: After the PDF is completely written to the target FTP, we have to deliver data from SAP R/3 also to the target FTP server. We have chosen pro

  • Help with nullPointer exception

    Hi, I would like some help identifying and error in the code below. Im getting a nullPointer exception at the location specified in the code. Im adding elements to a tableModel. What puzzles me is that the strings I add to the model does contain valu

  • ORA-12505, TNS:listener

    Hello there, is it possible to connect Oracle Sql Developer to an Oracle Database via network? I have made attempts to connect via a network to a target database on a different computer and I get the error message "Status : Failure -Listener refused