Quantcast
Channel: SQL Server Analysis Services forum
Viewing all 14337 articles
Browse latest View live

The data source view does not contain a definition for the 'column_name' column

$
0
0

 

I think I found a bug in the latest CTP.  I copied an existing cube, dsv, and underlying database and renamed them all.  I added new columns to the copied fact table and created new measures, updated the new DSV, and new cube.  Now every new measure creates a cube processing error:

 

Errors in the high-level relational engine. The data source view does not contain a definition for the 'Account_Total_Amount_Due' column in the 'dbo_Fact_Claims' table or view.

 

Everything is pointed to the right database and DSV.  I checked the XML in the DSV and it in fact "contains a definition" for all the new measures.  Any ideas on this?


Processing only single partition of a measure of ssas cube

$
0
0

Hi,

I have a SalesCube

I have a measure sales amount. 

I made two partitions 

     1.Previous sales amount

     2.Current Month sales amount.

I process the cube daily once. while processing daily i want to make sure only Current Month sales amount partition i dont want other partition to process daily. is it possible to run a single partition.

How can i do that ?

Thanks.

 

 

Internal error: An unexpected error occurred (file 'pffilestorefilegroup.cpp', line 1496

$
0
0

HI,

I' ve 2 dimensions in my cube with just 2 values each (Dim1 Show in thousands with "Original" and "in Thousands", Dim2 Invert Signs with "Original" and "Inverted") Both Dimensions are connected Regular via Named Calculations. We are also using Account intelligence with Custom Rollup formulas and unary operators

There are two Scopes:

Scope([Show in Thousands].[Show in Thousands].&[2]);

    This=[Show in Thousands].[Show in Thousands].&[1] /1000;

End Scope;

Scope([Invert Signs].[Invert Signs].&[2]);

    This=[Invert Signs].[Invert Signs].&[1] *(-1);

End Scope;

Now in my mdx query, when I have [Invert Signs].[Invert Signs].&[1] and [Show in Thousands].[Show in Thousands].&[1] in my where clause I got this error message:

Internal error: An unexpected error occurred (file 'pffilestorefilegroup.cpp', line 1496, function 'PFFileStoreGroup::ReadPage').

Server: The current operation was cancelled because another operation in the transaction failed.

With the Combinations 1,2 ; 2,1 ; 2,2 it works as expected.

Thanx in Advance

Distinct sum by dimension

$
0
0

Hi everyone!

i want to create a calculated member that takes into account whether a measure is common to several rows in the fact table?

Eg. I sold the items associated with a sale. For each item I have a record in the fact table. The sale is a cost for a tamtum for all items with this for each record of the articles. I wish that in the pivot grid for each item is proposed to cost, but it is in all of the articles of the same sale and that it is in all of the various sales. it's possible? perhaps you are using the id sale.

An image:

PrevMonthToDate calc not showing accurate numbers.

$
0
0

I am trying to build a scope with MDX, in order to get the previous month to date value. 

For the levels of dates it works accurate and gives me the previous period to date value, but when I collapse to months gives me same value as previous period.

example of not accurate values:

With filter, I have selected 1-25 may 2016.At the levels of month and PrevMonthTodate measure I expect to get the sum of 1-25 April 2016.But I get the sum of all days of April.

Below is the current calculation 

AGGREGATE
(
    {[Date Calculations].[Date Calculations].[CurrentPeriod]} *
PERIODSTODATE
([Date].[Calendar Hierarchy].[Month],
PARALLELPERIOD
     (
       [Date].[Calendar Hierarchy].[Month],
       1,
       [Date].[Calendar Hierarchy].CURRENTMEMBER
     )
  )
);


Why would an ostore file be missing? Is it related to constant "attribute key cannot be found" errors?

$
0
0

Hi,

We've backed up and restored an SSAS 2014 database from QA to a UAT server and now the thing will not process.  We get the same error every time("Errors in the OLAP storage engine: The attribute key cannot be found when processing: Table...The attribute is 'Policy Dimension Key', Dimension: Dimension name").  In every case, the error mentions the same fact table, the same dimension, and the same key column, but each time with a different key value.  In every case, we can find the dimension key in the results returned from the dimension's source view.

We chose to ignore missing key errors (S&G, just wanted to see what would happen) and that helped us process the database successfully, but while browsing the cube from SSMS, we received an error resembling, "An error occurred accessing file '\\L\Program Files\...\cantrecallfilename.ostore'." In that location, we found other files named similar had ostore files, but the ostore file in the error message did appear to be missing.  We also counted how many files of different types existed for each object, and that confirmed for us that an ostore file was indeed missing.

I read "How To Deal With Corruption in Analysis Services" (https://blogs.msdn.microsoft.com/karang/2010/08/11/how-to-deal-with-corruption-in-analysis-services/), but my question is more about "why does this happen" than "what do we do now."  Also, could the "missing key" processing failure errors be related?  In general, what should one do about a database that won't complete a Process Full?  (Reinstall and try again?)

Much appreciated,
Eric B.

How to Edit a Measure(Work Item Count) in TFS ?

$
0
0

Hi All,

     Under the Work Item Measure group, there is Work Item Count Measure. When filtering using Date Dimension the Work Item Count gives the count as growing numbers.(i.e. it adds successive values). If the actual count is 10,20,30,40 it gives as 10,30(10+20),60(30+30),100(60+40). I am not able to view the definition of Work Item Count measure. So I want to know how we can edit the 'Work Item Count' .

Thanks

how to show separate Flag values under Measure in SSAS

$
0
0

Hi ,

We need to show the separate flag values under measure in SSAS.

Example :

Gender column in Fact table

Gender Values: M and F

How to show the count for Male Gender and count for Female Gender

Thanks,

LuckyAbdul


SSAS project solution explorer

$
0
0

Hi,

I have just created my first Analysis Services Tabular project. I understand that Solution Explorer should show items like:

  • Data Sources
  • Data Source Views
  • Cubes
  • Dimensions

But instead, all I see is this:

  • References
  • Model.bim

What am I missing?

Cannot set QueryLogConnectionString

$
0
0

SSAS 12 ...

I'm going into the Properties, General and trying to set the QueryLogConnectionString, but the Field and Box stays grayed out ....

Any idea what could be the reason, on my local, dev solutions it works fine...

The size specified for a binding was too small, resulting in one or more column values being truncated.

$
0
0

Hi All

When processing the cubes i'm getting the following error

The
size specified for a binding was too small, resulting in one or more column
values being truncated.

I checked the data size under key column and name column and compared to the database. All fields are matching but i'm still getting the error. Please need advice.

Another question I have is can the datasize of the name column be greater than the Key column datasize? or should the sizes be the same?

After looking every where in the DSV I found that the data types for the FACT table have Data Size of -1 , I TRIED MANY WAYS to edit he Data Size and couldn't find how to do it . Please need help


SV



Based on selection of dimension, calculation of calculated member should change.

$
0
0
CREATE
  MEMBER CURRENTCUBE.[Measures].[NumberOfMemberMonth] AS
  (
Null   
)
SCOPE
  ([Paid Date].[Paid Date]);     
  [Measures].[NumberOfMemberMonth] =4;
end scope;

SCOPE
  ([Service Date].[Service Date]);     
  [Measures].[NumberOfMemberMonth] =6;
end scope;


SCOPE
  ([Paid Date].[Paid Date],[Service Date].[Service Date]);     
  [Measures].[NumberOfMemberMonth] =8;
end scope;

I created a calculated measure. Based on dimension selection either all level or attribute or hierarchy, the value of this measure should change. Suppose I select [Paid Date] dimension, NumberOfMemberMonth should be 4. If [Service Date] is selected, NumberOfMemberMonth should be 6
and if both dimensions are selected it should be 8. 
Do anyone has solution to this problem?

DAX - Count # of Records that have the same rank

$
0
0

Hi,

I am using the RANKX() function to rank a particular dimension attribute. This is working as expected, but I also want to create a measure that shows the number of ties in the rank.  So, for example, let's say the output of my table is as follows:

Attribute.....Rank......CountAtThisRank
Att 1...........1............1
Att 2...........2............3
Att 3...........2............3
Att 4...........2............3
Att 5...........5............1

What would the DAX formula be to create the 3rd column?


Bottomcount does not sort correctly

$
0
0

when using the following mdx on ADW 14 the pnComp columns returns unsorted. Seems like bottom count does not work well with correlate mdx function

with
set [pnSet1] as {[Geography].[Geography].[City].members}
set [pnSet2] as {[Product].[Product Categories].members}

member [Customer].[Customer Geography].[pnEmptyTest] as sum([Customer].[Customer Geography].defaultmember,[Date].[Fiscal].prevmember*[Date].[Fiscal].currentmember)
set [pnSet] as nonempty([pnSet1]*[pnSet2],[Customer].[Customer Geography].[pnEmptyTest])


member [Customer].[Customer Geography].[pnComp] as 
sum([Customer].[Customer Geography].defaultmember,
correlation(lastperiods(6,[Date].[Fiscal].currentmember) ,[Measures].[Reseller Sales Amount], [Measures].[Reseller Order Quantity]))
,format="0.0000"


set [pnResult] as

bottomcount([pnSet],100, 
[pncomp]
)


select [pnResult] on 1, {pncomp} on 0

from [Adventure Works]
where ([Measures].[Reseller Sales Amount],[Date].[Fiscal].[Fiscal Quarter].&[2013]&[2]
)

Getting the Sum of a Average to Sum at the Grand Total

$
0
0

Hey gang,

I recently built a cube and am struggling to get the results I need from an MDX Calculated Measure.

PolicyID,Policy Count,Fact Row Count,Policy Payments,Payments

100000,1,1,400,400.00

100002,1,6,6360,1060.00

100003,1,3,1120.08,373.36

100004,1,3,1350,450.00

100005,1,2,2300,1150.00

Grand Total,5,15,11530.08,786.20

Above is a representation of what I'm trying to accomplish (wanted to post a screen shot but am not verified yet).

A Policy can appear more than once in this cube and it's ballooning the sum of Policy Payments as a result.

We need to be able to drill down to any dimension and maintain the Actual Payment amount; Policy Payments/Fact Row Count by Policy ID (total payments) irrespective of what else is brought in.

Here is the MDX I'm currently using but the Grand Total isn't summing as I anticipated it would...

CREATE MEMBER CURRENTCUBE.[Measures].[Payments]
 AS sum([Policy].[Policy ID].CurrentMember,[Measures].[Policy Payments]/[Measures].[Fact SR Dispatch Level Count]),
FORMAT_STRING = "#,##0.00;-#,##0.00",
NON_EMPTY_BEHAVIOR = { [Policy Payments] },
VISIBLE = 1 ,  DISPLAY_FOLDER = 'Revenue' ,  ASSOCIATED_MEASURE_GROUP = 'Policy Metrics';  

The Amount in grand total for this example should be: 3,433.36

Thoughts?






Unable to connect to a data source using excel 2013

$
0
0

We are trying to access a sql cube by creating a new connection using excel 2013.

The error message received is "Unable to connect to data source.Unable to locate database server.Verify that the database server name you entered is correct,or contact the database administrator for help."

We are using a 64 bit machine and tried everything possible including reinstalling ms-office. All other connections work but user is unable to create new connection

The problem is related to using analytical services from microsoft excel 2013

Constant file system errors processing large cube

$
0
0

Hi there,

We are having constant file system errors processing our cubes.  It most commonly occurs when processing the aggregations (during ProcessIndex or ProcessAdd).  The cube is relatively large with about 25 million rows per partition and approximately 15 partitions.  We have quite a lot of aggregations in our design.

Most partitions process indexes fine, and if we keep persisting it eventually processes the failing partitions, but this is the error:

<return xmlns="urn:schemas-microsoft-com:xml-analysis">
  <results xmlns="http://schemas.microsoft.com/analysisservices/2003/xmla-multipleresults">
    <root xmlns="urn:schemas-microsoft-com:xml-analysis:empty">
      <Exception xmlns="urn:schemas-microsoft-com:xml-analysis:exception" />
      <Messages xmlns="urn:schemas-microsoft-com:xml-analysis:exception">
        <Error ErrorCode="3238133760" Description="File system error: The following error occurred during a file operation: . (\\?\O:\OLAPDatabases\MyDb.0.db\MyCube.0.cub\Script Archive.0.det\Script Archive 2016 Q1.0.prt\32.agg.flex.data)." Source="Microsoft SQL Server 2014 Analysis Services" HelpFile="" />
        <Error ErrorCode="3240034325" Description="Errors in the OLAP storage engine: An error occurred while processing the indexes for the Script Archive 2016 Q1 partition of the Script measure group of the MyCube cube from the MyDb database." Source="Microsoft SQL Server 2014 Analysis Services" HelpFile="" />
        <Error ErrorCode="3239837702" Description="Server: The current operation was cancelled because another operation in the transaction failed." Source="Microsoft SQL Server 2014 Analysis Services" HelpFile="" />
      </Messages>
    </root>
  </results>
</return>

The server is Windows Server 2012 64-bit with 4 cores, 30gb RAM and running SQL Server 2014 (12.0.4213).

The very little information I've found relating to this issue talks about memory or disk problems (one poster solved it on a 32-bit OS by disabling the /3GB switch and enabling PAE, which is not necessary on a 64-bit OS).  We've made sure that we have plenty of memory free, no disk errors and plenty of free disk space, but no solution.

Has anyone got any suggestions on how we can solve this problem?

Visual Studio OLAP Cube Partition issues.

$
0
0
I'm trying to create new partitions in my OLAP cube in Visual Studio 2012. The partition wizard appears and I go through all the steps. When I click finish, nothing happens. No error message and no partition is created. Is this a possible bug in the application. I'm updated fully. It just doesn't create the partition. I can create it in SSMS but not in VS2012. Any help would be appreciated.

Data Source Management in SSAS

$
0
0

Hello All,

My Greetings for the day!!!

Firstly, I truly appreciate all the active members on Forum for there prompt reply for the queries raised especially Simon Hou.

I am looking solution for a scenario which I came across in my current organisation.

Scenario: I have a SSAS solution with 2 cubes

Cube 1 - Sales 

Cube 2 - Finance

Database name in SSAS Server : Sales_Finance_Germany

Data source name - Germany (pointing to Germany DWH)

I got a request from another affiliate to deploy Cube #2 (Finance) for them on the same SSAS server with off course different name as "Finance_Portugal". The source of this Finance_Portugal cube with Portugal DWH.

Can you please guide me further to deal with this scenario.

Can I maintain 2 data sources in the same solution.

While I deploy for Germany I change the deployment properties and database name in SSAS.

But when I deploy for Portugal I don't want Sales cube to be deployed for Portugal as there are no Sales related tables in my Portugal Data warehouse.

I hope my question is clear.

Please revert with your suggestion.

Regards,

Hiren

 


Hiren Parikh

How to do a rolling monthly snapshots against a measure?

$
0
0

Scenario

I got this requirement from my client where they want to create a rolling monthly snapshot against a measure(say X). This measure is not a base measure. Values to this measure will be assigned using scope. Further, user will filter by a 'fiscal year' when browsing these measures.

Which means user will filter by 'Fiscal Year' and then drop a monthly snapshot which rolls up the measure data up until the month which user has dropped in excel. So, there is going to be 12 monthly measures - january through december. 

Say, if the user drops 'YTD March monthly snapshot', they get the aggregated measure value from jan to march. Likewise, if user drops 'YTD October monthly snapshot', they get aggregated measure value from jan to october. These measures will break up by 3 different dimensions(used in the scope definition).

Solution

I have created 12 named calculation in my DSV, one each for a month. Next I need to assign values to these in a scoped definition. I plan to use 'Aggregate' and 'PeriodToDate' function like so -

Aggregate(PeriodsToDate([Date].[Fiscal Hierarchy].[Fiscal Year],
[Date].[Fiscal Hierarchy].&[201407]), [Measures].[X])

My problem is that the member value(highlighted above) has to be dynamic and not static. I can specify the month number but will need to 'detect' the year filter which user has filtered on. Not sure if I am clear on this. I can clarify if someone is willing to help. Suggestions?

AC

Viewing all 14337 articles
Browse latest View live


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