Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all 2472 articles
Browse latest View live

MDX Calc issue: Running Total

$
0
0

I have this MDX calculation in my SSRS report.  I'm trying to do a running total for Actuals (for prior months) + Monthly EAC (for current period ->forward).  The calculation works great unless you do not have any actual costs for prior months.  In that case, it is pulling in monthly EAC, which is wrong.  I would like it to show zero/null if there are no actuals for prior periods.  Here's the calc and an example of the output:

   MEMBER [Measures].[Actuals + EAC] AS IIF(ISEMPTY(([Actuals])) AND ISEMPTY(([Monthly EAC])),NULL, 
                   SUM([Time].CurrentMember.Parent.FirstChild:[Time].CurrentMember, IIF(ISEMPTY(([Actuals], [Time].LastChild, [Project_Task - All Task Levels].[All])),
                   [Monthly EAC],[Actuals]))) 


                             OCTNOVDECJANFEBMARAPRMAYJUNJULAUGSEP
Actuals            
Monthly EAC0.2140.2140.0030.257   0.1490.1490.1490.1490.149
Actuals + EAC0.2140.4280.4320.6890.6890.6890.6890.8370.9861.1351.2831.432



SSMS 2008R2 can't browse Cube (retrieving COM class factory failed... 80040154)

$
0
0

Folks,

I just realise I can't browse a cube through SSMS 2008R2.

I had not done it in a while so I am not sure what produced that... I have installed Denali CTP3 and have removed it since.

My 2008R2 is 64bits while my Office 2010 is 32 bits.

I have re-installed Office Web Components 11 but no change.

Any idea where to look?

Thanks


Eric Mamet _ MCDBA, SQL Server 2005 MCTS, MCAD .Net

Error when Browsing a Cube and attempting to drop any object on the browser

BIDS Data Source Error

$
0
0

Hello,

I am getting the following error when I try to change the connection string of a data source from a BIDS project.

"Retrieving the COM class factory for component with CLSID {C8B522D0-5CF3-11CE-ADE5-00AA0044773D} failed due to the following
error: 8007007e"

Steps

    Troubleshooting

    1. Unregistered and re-registered oledb32.dll --> reboot
    2. I've confirmed the CLSID entry exists in the registry and matches another machine
    3. Applied SP1 to the existing instance of VS 2008
    4. Have found many references to repairing MDAC on WinXP, but nothing for Win7

        Environment

        Windows 7 RTM 32-bit
        Visual Studio 2008 SP1
        SQL Server 2008 R2 SP2

        Thanks for any help.
        Jason


        How to filter an MDX expression by the measure for a calculated member

        $
        0
        0
        HI All,



        Have been so frustrated trying to do a simple calculated measure for balances so that it calculates only positive & zero balances. Below are the two we've been trying, surely this should be quite simple ??

        THANKS IN ADVANCE



        Filter([measures].[balance amount], [measures].[balance amount] > 0)  --- result is #VALUE!

        Also tried

        iif([Measures].[Balance Amount] > 0,[Measures].[Balance Amount], 0) -- returns the exact same results as if i had not applied the iif


        Ask a question about SSAS tabular

        $
        0
        0

        Hi guys:

        Ask for your help. I developed one small Tabular Model, but I fetch the data from same SQL server with different methods( directly select the tables, and write the query to fetch the data). Now in my Model, there are multiple connections which point to same data source. Can I merge them to one connection, or do you have some method to modify the table property to point to one connection?

        thanks in advance for your kind help!


        Best regards,
        Riquel

        Please remember to mark the replies as answers if they help and unmark them if they provide no help.

        Error Creating Power View sheets from SSAS Tabular in an Azure VM

        $
        0
        0

        I am getting a strange error when creating Excel 2013 Power View sheets off an Analysis Services (SSAS) Tabular instance running on an Azure VM in the cloud. Here is the error:

        Sorry, something went wrong while loading the model for the item or data source 'xxxxxx.cloudapp.net Tabular Model'. Verify that the connection information is correct and that you have permissions to access the data source.

        The weird thing is that I can successfully create normal connected PivotTables from it; I only get the error when I try to make Power View sheets. Which would lead me to believe I am connecting to a multidimensional SSAS database, but I am not. Here are some things I have tried already:

        • Forwarded the default SSAS port 2383 in Azure and opened it in windows firewall (this allowed me to browse the cube with connected PivotTables)
        • Ensured my login has permissions on the SSAS database (I am not using windows authentication)
        • Checked the SSAS Tabular compatability version, it is 1103
        • Checked the SSAS Tabular SSDT project compatability level, it is also 1103
        • Made sure SQL Server Browser was running (I read somewhere that might be an issue)
        • Tried opening port 80 and 443 in case those were needed for something, didn't help...
        • Tried monitoring Excel's port usage to see if it was trying other ports, couldn't see anything besides 2383
        • Sucessfully connected to an intranet SSAS Tabular database and created a Power View sheet from it (which means there shouldn't be anything wrong with my Excel client)

        Here are some details of my setup:

        Server

        • Windows Server 2012
        • SQL Server 2012 SP1
        • SSAS Tabular default instance (compatability level 1103)

        Client

        • Windows 8
        • Excel 2013 (15.0.4426.1017) MSO (15.0.4454.1002) 32-bit

        Externalizing SSAS locale translation string to a file

        $
        0
        0

        Hi,

        We want to use SSAS2008 translation feature to support multi-locales.

        We have same set of cube schema design for multiple customers but each require different locale . The problem we are facing is that SSAS translation is design time job which requires cube/update process to add/update any localized text. So we are looking for solution to externalize such text strings to external file. This will enable locale-expert-team to add/update  locale specific information independently (similar approach that Java i18n  feature does by externalizing string to resource file)

        Is this possible from SSAS2008?

        Thanks,

        Dipendra


        IgnoreUnrelatedDimensions SSAS 2012 bug?

        $
        0
        0

        I have a problem with the IgnoreUnrelatedDimensions setting with SSAS 2012. When I change the setting from the default True to False each measure from that measuregroup allways returns null even when I select dimensions that are related to the measure group.

        The behavior that I want is that on a cross section between unrelated dimensions and a fact the result will be null and on cross sections from related dimensions the result will be correct.

        How to search through all dimensions at once looking for appropriate member

        $
        0
        0

        Hi, I try to mimick a qlikview functionality which is about searching a member without the need to choose a dimension, so I should be able to search through all dimensions.

        I googled around a bit but could not find a resolution yet -  I would like to use it in reporting services

        DistinctCount measure for non-zero values - but in Excel pivot table

        $
        0
        0

        Hi,

        I have an SSAS 2008R2 cube that contains a DistinctCount measure (a distinct count of Product Id's).

        I am trying to build an Excel 2010 pivot table that connects to my cube and simply displays the Product categories on rows and my DistinctCount measure on columns. This sounds easy, but the only thing I am not able to work out is how exclude individual Products with a zero value.

        Value is another Measure in my cube.

        The question I would like my end users to be able to answer, is:

        "For a given date, display the distinct count of Products that have a non-zero value".

        Am pretty sure that this has been done before, (I could probably do this in MDX) but am not sure how to do it in Excel.

        Any suggestions are appreciated.

        Regards,

        MrPeds

         


        Database and Application Developer

        Measure Creation and Formatting in SSAS 2012

        $
        0
        0

        Hi All,

        I'm new to ssas and not familiar with mdx.

        Our client has below format for time duration (data type is time).

        e.g. 4:30 -> means 4 hours and 30 mins

               0:45 -> means 45 mins

        I need to create a measure for the sum of time durations following the same  format.

        e.g. 4:30 + 0:45 = 5:15

        Please advise on how to implement above.

        Thanks,

        Charllemagne

        Checking certain keys exists in a cube using ADOMD

        $
        0
        0

        HI all,

        I have saved certain MDX query and I run them using ADOMD.NET. I get CellSet back which I convert into dataset. All this is working fine. Now the DB team has changed the cube structure. They have updated the DimesnionName, Attribute Name etc. Some dimensions got renamed and some got deleted. Becuase of this I am unable to run my saved queries. I want to create a console application, which will take list of keys ([DimensionName].[AttributeName] or [DimensionName].[AttributeName].[MemeberName] format) and it will tell me following keys does not exists. Please let me know if this is possible programatically. I dont want to check it manually. Kindly share a link or code which will help me acheive this.

        Thank you.

        What are other purpose of defining an attribute relationship beside sorting?

        $
        0
        0

        What are other purpose of defining an attribute relationship beside sorting?

        I was following the tutorial from the SSMS help:

        5. Click the AttributeRelationships tab.
        6. In the attributes list, right-click the CommuteDistance attribute and then selectNewAttributeRelationship
        7. In the Create Attribute Relationship dialog box, the Source Attribute isCommute Distance. Set the Related Attribute to Commute Distance Sort.
        8. In the Relationship type list, set the relationship type to Rigid.

        The above steps provide sorting for the Commute Distance (which is a "string" data type) the Commute Distance Sort named calculation created earlier.  

        I notice that I can achieve the same result by changing the values for the following properties on Commute Distance:  NameColumn = CommuteDistance and KeyColumns = CommuteDistanceSort.

        So what are other purposes to create the attribute relationship beside for sorting?


        BI Analyst

        No Synchronize in SSAS 2008R2 Standard Edition?

        $
        0
        0

        Hey People,

        I've just spent quite a bit of time setting up and testing cross-domain, cross firewall, HTTPS based synchronization of my SSAS DB in my dev environment, only to find that when I tried it in production I get the following error:

        Microsoft.AnalysisServices.Xmla.XmlaException: Errors related to feature availability and configuration: The 'Synchronize' feature is not included in the '64 Bit Standard Edition' SKU.   at Microsoft.AnalysisServices.Xmla.XmlaClient.CheckForSoapFault(XmlReader reader, XmlaResult xmlaResult, Boolean throwIfError)

        Which will teach me for using SQL Developer Edition for all my testing only to have Standard in production...

        But I can't for the life of me find any SSAS documenation that points out what's in Standard vs Enterprise when it comes to Sync.

        I know "peer-to-peer" for the DB Engine required the Enterprise Edition, but closest mention for SSAS is "Scalable shared databases" is only supported in Ent. Does that cover Sync?

        What's dumb, is that the SSMS UI lets me attempt to set up a sync (I don't have enough of an environment to see how far it will really let me go), even though it knows it's connected to Standard edition.

        A) can someone confirm that I'm going to have to upgrade my production SSAS (and all the other SQL bits, as they're on the same server) to Enterprise Edition and

        B) point me at some solid documenation (all the MSDN and TechNet SQL 2008 R2 edition comparisson documenation seems to be unavailable today) that I can take to my boss to justify the edition jump and

        C) anyone got any pointers on doing an in-place edition upgrade? Anything I should watch out for?

        Thanks
        Craig


        Should we have constraints in staging & data warehouse

        $
        0
        0

        Hi All,

        I have a doubt regarding the constraints e.g. primary key constraints & foreign key constraints in Staging and Data warehouse? I suppose in staging we should not have any constraints while as in data warehouse, it is worth to have constraints. Could anyone please give insight here?

        Regards Amit

         

        MDX Except PeriodtoDate

        $
        0
        0

        So I have two sets of data that I get from PeriodtoDate functions.

        Lets say first PeriodtoDate gives me set from 1/1/2012 till 1/31/2012 --- Monthly

        and second periodtodate gives me set from 1/1/2012 till 1/15/2012  -- Daily

        Now what I want is

        1) the result set from 1/15/2012 ti 1/31/2012.

        2)  And then take an average out of them.

        Can the Except function help me in this to achieve step 1. If yes, how can I form it, specially knowing that one set is based on monthly computation and the other one is daily.

        Thanks

        -Sarah

        Calculated Member returns #VALUE!

        $
        0
        0

        Hi All

        I am working on a CUBE ( Microsoft SSAS SQL Server 2008)

        I just want to have a calculated member on the cube, based on two date columns in one of the dimension table.

        My dimension table has below columns

        DOB ( Date type)

        Start_Date ( Date Type)

        I created a new calculated member in the CUBE as below:

        DATEDIFF(YY,[Due Date].[DOB] - [Due Date].[Start Date])

        When I process the cube , it processed without any errors, but when I try to have new calculated Member in Excel , it comes as #VALUE!

        Script View comes as below:

        CALCULATE;  
        CREATE MEMBER CURRENTCUBE.[Measures].[Driver Age]
         AS DATEDIFF(YY,[Due Date].[DOB] - [Due Date].[Start Date]),
        FORMAT_STRING = "$#,##0.00;-$#,##0.00",
        VISIBLE = 1 ,  DISPLAY_FOLDER = 'Calc Malli' ,  ASSOCIATED_MEASURE_GROUP = 'Fact Internet Sales'  ;

        Appreciate all your advices.

        Mira

        slow changing dimension

        $
        0
        0

        Hi All,

        Could anyone please confirm my understanding with slow changing dimension.

        Let assume that we have a product that has following price history.

        2000-2004  $10
        2005-2008  $15
        2009- 2010 $18 
        2011- Till Date $24

        If we have a scenario where we want to show the total sales when product price was $10, $15, $18 & $24,  we have to use the slow change dimension here. We will design a slow change dimension say product that will have history records(3 records, records belong to $10,$15,$18) with current record, in total this dimension will have 4 records for product above product.

        Regards Amit

        Scenarios that is only possible with Matrix

        $
        0
        0

        Hi All,

        As per my understand whatever we can so with Tablix we can do with Matrix too. We can  say Tablix is subset of Matrix. I am wondering what are the scenarios that are only possible with Matrix?

        Regards Amit

        Viewing all 2472 articles
        Browse latest View live


        <script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>