Analysis service Tabular Model Rolling the values
Hi
Help me anyone,
I Have to calculate for 1 Year rolling values from current date
example let say i am in march-2014 i have to rolling my column values for 1 year means April-2013
For this what function should i use
and also one more thing I have a string values in my column like
Status
Active
Seperated
Active
Seperated
Resigned
Resigned
Abscond
Abscond
I need to apply 1 year rolling formula on this column
how should i get these total count for 1 year rolling
Please help me on that
Please reply me soon
Sreeni
Sreeni
Hi Screeni,
In your scenario, you can to calculate for 1 Year rolling values from current date, right? In MDX, we can calculate it using Lag and ClosingPeriod function, here is a sample query for your reference.
WITH MEMBER [Measures].[Last 12 Mth Order Count] AS
SUM(
ClosingPeriod([Date].[Calendar].[Month], [Date].[Calendar].[All Periods]).Lag(12)
: ClosingPeriod([Date].[Calendar].[Month], [Date].[Calendar].[All Periods])
, [Measures].[Order Count]
SELECT [Measures].[Last 12 Mth Order Count] ON 0
FROM [Adventure Works]
Reference
Lag (MDX)
ClosingPeriod (MDX)
Regards,
Charlie Liao
TechNet Community Support
Similar Messages
-
How to get data from MySQL into Analysis Services Tabular Model
Hi,
I have a problem with Analysis Services Tabular Model and MySQL ... I have to use several MySQL databases as a source of Tabuar Model ..
Is there any way to get connection working from Tabular Model to retrieve data from MySQL database. I have a situation that in MySQL server there is several databases with same schema, one for each customer. I have planned to join these customer databases
to one Tabular Model, create roles and users for each customer to query their data.
What do I have to do to get this working ?
PasiHi ,
In Tabular model out of the box there is no direct connectors available for MySQL. Please see the list of supported Data Sources
http://msdn.microsoft.com/en-us/library/gg492165.aspx
But i think if you can establish a ODBC connectivity with data source to MYSQL , you can use the ODBC connection to retrieve the data from MySQL. Please try this and post the results here if it is possible or not.
Best Regards Sorna -
Analysis Services Tabular Model 2014 vs 2012
Hi,
A very simple question : with the same tabular model is 2014 faster than 2012 from query point of view (is the Storage Engine or Formula Engine faster than the previous version ) ?
ThanksHi MIB1,
According to your description, you want to know if the SSAS 2014 tabular model has better performance than SSAS 2012 tabular. Right?
With exception to added functionality supporting Power View Reports against Multidimensional Models, SQL Server 2014 Analysis Services is unchanged from the previous release. There's nothing improvement on SSAS tabular.
Reference:
What's New in Analysis Services and Business Intelligence
If you have any question, please feel free to ask.
Regards,
Simon Hou
TechNet Community Support -
Analysis service Tabular Model
Hi
Help me anyone,
I Have to calculate for 1 Year rolling values from current date
example let say i am in march-2014 i have to rolling my column values for 1 year means April-2013
For this what function should i use
and also one more thing I have a string values in my column like
Status
Active
Seperated
Active
Seperated
Resigned
Resigned
Abscond
Abscond
I need to apply 1 year rolling formula on this column
how should i get these total count for 1 year rolling
Please help me on that
Please reply me soon
Sreeni
SreeniHi Sreeni,
Since this issue is related to Analysis Services, I will move this thread to
Analysis Services forum. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
Thank you for your understanding and support.
Regards,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Memory usage in Analysis Services tabular model
Hello,
I've been researching and investigating trying to understand what is consuming memory resources in a tabular model that I'm working with. Using SQL Server Management Studio, the Estimated Size of the database is reported as 7768.34 MBs. Using
Kasper de Jonge's BISM Server Memory Report, the database is reported as 15,465.13 MBs. However, a majority of the fields in the BISM Server Memory Report are empty, and so I cannot determine what is consuming the memory. The data source for this particular
workbook is $SYSTEM.DISCOVER_OBJECT_MEMORY_USAGE.
For example: I drill-down to an individual column (ColumnA) in the BISM Server Memory Report (Database > Dimensions > Table > In-Memory Table > Columns > Column) and the reported memory usage is 706.97 MBs. Underneath ColumnA,
I see a blank level with a reported memory usage of 623.59 MBs and a Segments level with a reported memory usage of 83.39 MBs. Looking at $SYSTEM.DISCOVER_STORAGE_TABLE_COLUMN_SEGMENTS, if I SUM the USED_SIZE for ColumnA, it totals roughly 83 MBs which matches
what is reported in the BISM Server Memory Report for the segment size. How do I determine what the other 623.59 MBs is being used for? Again, this discrepancy occurs for all columns in the model and not just this one example.
Thanks!Follow up to my original question. It appears that the blank levels (at least under the column level) the Kasper de Jonge's BISM Server Memory Report reports the dictionary size of the column. The memory usage size matches the DICTIONARY_SIZE attribute in
the $SYSTEM.DISCOVER_STORAGE_TABLE_COLUMNS. I made a mis-assumption as to what the information $SYSTEM.DISCOVER_STORAGE_TABLE_COLUMN_SEGMENTS was providing.
In my original post I reference one database in particular in where the Estimated Size property in the Database Properties dialog is listed as 7,768.34 MBs. and the $SYSTEM.DISCOVER_OBJECT_MEMORY_USAGE reports 15,465.13 MBs. Thoughts, comments, or opinions
on why the Estimated Size property does not match what's reported in $SYSTEM.DISCOVER_OBJECT_MEMORY_USAGE?
Thanks! -
Non visual totals in Analysis Services Tabular
Are there any work-a-rounds to achieve non-visual totals in Analysis Services tabular? This is a crucial feature for some of our clients and is preventing them from adopting this technology due to this feature not being available out of the box
as with Multidimensional OLAP. If not, are there any plans to introduce this feature for Analysis Services tabular models?Hi Geoff3c,
As you know SQL Server Analysis Services (SSAS) Tabular only supports visual totals. This is a differences between Analysis Services OLAP and Tabular that SSAS OLAP provides one feature that SSAS Tabular does not: non-Visual Totals. It was considered that
non-visual totals are not terribly common, but some developers have worked for clients where non-visual totals were required.
If you have any concern about this feature, you can submit a feedback at
http://connect.microsoft.com/SQLServer/Feedback and hope it is released in the next release of service pack or product. Your feedback enables Microsoft to make software and services the best that they can be, Microsoft might consider to add this feature
in the following release after official confirmation.
Regards,
Charlie Liao
If you have any feedback on our support, please click
here.
Charlie Liao
TechNet Community Support -
PowerPivot and Analysis Services tabular instance in SharePoint
Hello,
If I connect to the SQL Server 2012 SP1 Analysis Services tabular instance in SharePoint 2010 that houses all of the PowerPivot files that have been uploaded to our SharePoint environment, I only see a portion of the models
that exist. Why is this? What would cause a model on the tabular instance in SharePoint to disappear? Also, what does the “Sandbox” and “Process” preceding the model GUID mean?
Thank you!Hi Haras,
According to your description, you need to configure PowerPivot for SharePoint on your site, right?
In this case, please use the following checklist to install these BI features in the same SharePoint farm: PowerPivot for SharePoint, Report Builder, and Power View.
https://msdn.microsoft.com/en-us/library/hh231687.aspx?f=255&MSPPError=-2147217396
Then publish a BISM Tabular Model Database connection on SharePoint site, please refer to the link below to see the details.
http://fendy-huang.blogspot.in/2012/01/publish-bism-tabular-model-database.html
Regards,
Charlie Liao
TechNet Community Support -
SQL Server Analysis Services (PowerPivot) instance returned the following error:
SQL Server Analysis Services (PowerPivot) instance returned the following error: Error Code: 3241607174 Description: A connection corresponding to the embedded PowerPivot data was not found in the
Excel workbook, file 'C:\Program Files\Microsoft SQL Server\MSAS10_50.POWERPIVOT\OLAP\Backup\Sandboxes\PowerPivotServiceApplication1\ReadOnlyExclusive-1096b00b-c487-46f9-afea-f717148863a8-Test_Sheet.xlsx'
Hi Have Installed power pivot to and exsistinf farm standalone farm.
What Should be the connection in the Excel fiile?
Thanks
Ravi
RaviHi,
According to your post, my understanding is that you got an error with SQL Server Analysis Services.
Did you have installed PowerPivot for Excel on a client machine and modeled a database as part of this workbook?
The refresh in question is about refreshing the embedded Analysis Services database with data retrieved from the backend sources (defined when the database was originally modeled) and resaving the updated workbook. It should not be confused
with Excel / Excel Services options to refresh the data connections in the workbook. That option is about refreshing data stored in Excel’s caches. With regards to PowerPivot, that would be refreshing from the embedded database, not the backend data from which
the database was sourced. In summary, this feature will not work against a workbook which does not have an embedded database because there is no database to refresh. This is by design and should not be interpreted as indicating that there is something wrong
with your system.
More information:
http://powerpivotgeek.com/2010/02/07/a-connection-corresponding-to-the-embedded-powerpivot-data-was-not-found-in-the-excel-workbook/
There are some similar articles for your reference.
http://technet.microsoft.com/en-us/library/ee210712(v=sql.105).aspx
http://support.microsoft.com/kb/2761246
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/a324436c-9901-494e-9f9b-314399d65ccb/data-refresh-dont-work-for-serverhealthxlsx
For the error “The data connection uses Windows Authentication and user credentials could not be delegated. The following connections failed to refresh”.
There are multiple causes for this error message. The common factor behind all of them is that Excel Services cannot get a valid Windows user identity from a claims token in SharePoint.
For more information:
http://technet.microsoft.com/en-us/library/ff487975.aspx
http://mmman.itgroove.net/2013/03/the-data-connection-uses-windows-authentication-and-user-credentials-could-not-be-delegated/
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
HTTP SERVICE - How to get the value of my params on the server side
I am new to flex and with the url limitation i was trying to
do the following ....send a bunch of ids... using params variable
var myservice:HTTPService = new HTTPService();
myservice.url = url;
myservice.method = "POST";
myservice.resultFormat = "e4x";
myservice.send(params);
The question is how do i get the value i passed on using
params on the server side? can the variable params be a string or
array or does it have to be object type?
Any help would be greatly appreciated.Most server side languages have a function or an array where
you extract the variables. in PHP they arrive in global arrays
called $_POST and $_GET.
Other languages have methods like request.formvars or
request.query. Check your serverside language on how that is
done. -
Microsoft Analysis Server Tabular Model
Hi
Please help me any one
I have two dates from_date and to_date
I have to calculate the no of days between these dates but one condition is If time is 2PM then the date will have to change to next day
e.g, From_date is
1/21/2011 6:02:08 PM then the date need to change to
1/22/2011 12:00:00 AM i need like this
Please help me
I am referring no of blogs i did not get
help me as soon as
SreeniHi ,
Please try the below DAX expression.
=value(
datevalue(year('DateTable'[To_Date]) & "-" & right("0" & Month('DateTable'[To_Date]),2) & "-" & Right("0" & day('DateTable'[To_Date]),2))
datevalue(year('DateTable'[From_Date]) & "-" & right("0" & Month('DateTable'[From_Date]),2) & "-" & Right("0" & if( hour('DateTable'[From_Date]) > 14,day('DateTable'[From_Date])+1,day('DateTable'[From_Date])),2))
Sad thing is DateAdd will not work as like as in Excel. Please refer to the below thread for more details.
http://cwebbbi.wordpress.com/2012/01/06/the-dax-dateadd-function-and-missing-dates/
Best Regards Sorna -
Report using Tabular Model and Measures based on Distinct Counts
Hello,
I am creating a report that should present something like this:
YEAR-1 | MONTH-1 | MONTH-2 | MONTH-3... | YEAR | MONTH-1 | MONTH-2 | MONTH-3...
My problem is that when designing the dataset to support this layout I drag the Year, Month and Distinct count Measure, but on the report when I want the value for the YEAR level I don't have it and I cannot sum the months value...
What is the best aproach to solve this? Do I really have to go to advanced mode and customize my MDX or DAX? Can't basic users do something like this that seems so trivial and needed?
Thank you
Luis SimõesHi Luis,
According to your description, you create a Reporting Services report using Analysis Service Tabular Model as the datasource, now what you want is sum the months value on year level, right?
In your scenario, you can add the Month field to column group, add a parent group using Year Field and then add a Total on Month group. In this case, Reporting Services will sum the months value on Year level. I have tested it on my local environment, the
screenshot below is for you reference.
Reference:Lesson 6: Adding Grouping and Totals (Reporting Services)
If this is not what you want, please describe your dataset structure, so that we can make further analysis.
Regards,
Charlie Liao
TechNet Community Support -
Case-sensitive values in an Tabular Model with a Oracle Datasource
Hi,Lets use an Oracle Database as Datasource for my Project. I use a "Select distinct ColumnA from Table" to build up a LookupTable in my Tabular Model. But it returns Dublicates!! eg:
When I fire the query from Oracle SQL Developer I got 2 Records "1N" and "1n". In the Grid View in SSDT I see 2 times "1N". ??
Collation Case Sensitive. OK, but how to solve that?
KRHi KR,
According to your description, you encounter the case-sensitive issue when creating SQL Server Analysis Services Tabular model project, right?
Based on my research, Tabular models have the insensitivity problem by default. The workaround for this issue is creating a empty tabular model in tabular server using the xmla below and import the tabular in SSDT.
<Create xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
<ObjectDefinition>
<Database xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200" xmlns:ddl300="http://schemas.microsoft.com/analysisservices/2011/engine/300" xmlns:ddl300_300="http://schemas.microsoft.com/analysisservices/2011/engine/300/300">
<ID>Collation test</ID>
<Name>Collation test</Name>
<Language>1033</Language>
<Collation>Latin1_General_CS_AS</Collation>
<DataSourceImpersonationInfo>
<ImpersonationMode>Default</ImpersonationMode>
</DataSourceImpersonationInfo>
<ddl200_200:StorageEngineUsed>InMemory</ddl200_200:StorageEngineUsed>
<ddl200:CompatibilityLevel>1100</ddl200:CompatibilityLevel>
</Database>
</ObjectDefinition>
</Create>
For the detail information about it, please refer to the link below.
http://blogs.msdn.com/b/cathyk/archive/2011/10/24/making-tabular-models-more-sensitive.aspx
Regards,
Charlie Liao
If you have any feedback on our support, please click
here.
Charlie Liao
TechNet Community Support -
SSAS Tabular Model and browse with MS Excel 2013
I have a tabular model, It has an attribute with datatype and data format as "whole number". When I browse the model from excel and add label filter, it
does not work as expected.
When I specify greater than 180 as label filter, It gives following output:
My guess is that it is just filtering on first two digits "18" and not "180". When I copy these values in a excel sheet and create pivot table on top of it, hell it works fine.
Is this a microsoft bug? have you encountered something like this or I am doing some thing wrong?
I am using tabular model 2012 and excel 2013 or 2010.
If this post answers your query, please click "Mark As Answer" or "Vote as Helpful".Hi Itz,
According to your description, the filter not works fine in excel for a SQL Server Analysis Services Tabular models, right?
I have tested it on the local environment, we cannot reproduce this issue. As per my understanding, this issue is related to the settings of your tabular model. Does this issue can be reproduce in multiple servers in your environment? In that is
case, from a support perspective this is really beyond what we can do here in the forums. If you cannot determine your answer here or on your own, consider opening a support case with Microsoft. Visit this link to see the various support options that are available
to better meet your needs:
http://support.microsoft.com/default.aspx?id=fh;en-us;offerprophone
Besides, if you consider this issue is a bug, you can submit a feedback at
http://connect.microsoft.com/SQLServer/Feedback Microsoft will confirm if this issue is a bug or not.
Regards,
Charlie Liao
TechNet Community Support -
Data "chunking" in SSAS Tabular models
I have a Tabular model I built in VS2013, deployed to SSAS 2014 Tabular, and consumed via SSRS and PowerPivot. Let's say it consists of 4 fact and 1 measure table. The resulting dataset is about 10 million rows, which for some end-users can be a little unwieldy.
I had heard of "partitions", and thought it could help me "chunk" the data into manageable "user friendly" portions of the total measure dataset, but it doesn't appear to behave as I envisioned.
Imagine you have a model with world-wide sales information and you want to maintain that as a master model that you deploy, but want to make portions of the measure data available based on values in a fact table; let's say subsets that represent NA, another
for EU and so on. The geo data is a fact table in the model.
I envisioned "partitions" being select parts of the total model that you expose via partition name that the end user can select to work with like "I'm the AR for the NA region and this is my partition of the WW Sales data cube" How
would one accomplish this?Hi Torben,
According to your description, you create a SQL Server Analysis Services Tabular model and deploy it to SQL Server 2014 server, and use Reporting Services and Excel to interact with this tabular model. Now the problem is that the resulting dataset is about
10 million rows, which for some end-users can be a little unwieldy, right? If I have anything misunderstood, please point it out.
In your scenario, you want to filter the data base on the user's region to improve the performance issue. In this case, please refer to the links below which describe how to achieve it.
http://blogs.msdn.com/b/analysisservices/archive/2012/08/10/row-level-security-in-analysis-services-2012.aspx
http://grow-n-shine.blogspot.jp/2012/10/defining-row-level-security-in-ssas.html
Besides, to improve your report performance, you can cache your report. Caching can shorten the time required to retrieve a report if the report is large or accessed frequently. Please refer to the link below to see the details.
http://msdn.microsoft.com/en-us/library/ms155927.aspx
Regards,
Charlie Liao
TechNet Community Support -
Dynamic security using Security table in SSAS Tabular model
Hi,
Platform : SSAS Tabular model (VS 2010)
I need to apply Dynamic security using Security table(manually created) in Tabular model, Need to apply filter for 2 tables. I am able to
create roles in Tabular model using USERNAME() and LOOKUP() function it worked fine. But the problem is when i am trying to give full access for a particular column and limit the access in other column, it is not working properly.
Please find below table and guide me where i am falling short. In the Security table wherever you find ALL it means full access.
Security table
Login Name
Dim_Country
Dim_Customer
DOMAIN\User1
ALL
2
User1 should see all countries but Only 2,4 Customers
DOMAIN\User1
ALL
4
DOMAIN\User2
2
ALL
User2 should see all customers but Only 2,3 countries
DOMAIN\User2
3
ALL
DOMAIN\User3
ALL
ALL
User3 should see all Customers and Countries
DOMAIN\User4
1
3
User4 should see 1 Country and 3 Customer
ALL - means NO restriction
Numeric values indicate the Dimension IDs
Do let me know if further explanations required.
Thanks,
SundarHi Sundar,
According to your description, you want to implement dynamic security using Security table in SQL Server Analysis Services Tabular model, right?
It is very common to have data security implementation in BI projects either at databases or Cubes and sometimes this security implementation and maintenance goes out of control due to the dynamic flow of business information. Here are some links which describe
dynamic security implementation at SSAS tabular model using an external security table, please see:
http://bipassion.wordpress.com/2012/10/01/ssas-tabular-dynamic-security/
http://www.bidn.com/blogs/ChrisSchmidt/ssas/4332/dynamic-security-in-tabular
Regards,
Charlie Liao
TechNet Community Support
Maybe you are looking for
-
What is the "No database index" means when you Creating Secondary Indexes?
HI, I'm Creating Secondary Indexes in the maintenance screen of the table(se11) There are three options under "Non-unique Index": 1.Index on all database systems 2.For selected database systems 3.No database index My questions is : W
-
Determining Duplicate Entries in Editable ALV Grid
Hopefully this question is not as obvious as it may seem at first. Thanks for any input or ideas...read carefully, it is not just a simple duplicate check with which I'm having a problem. I have an editable ALV grid and I need to ensure that the user
-
My son deleted the music from my Ipod. I pulled up my Itunes on a new computer with windows 8 and pluged in the Ipod and my music reappeared. However, I then purchased new music and the new music would not download. I am not sure what I did but no
-
Contacts/ Gmail & Facebook import error
I used the rebuild function on my iPhoto library, and tried using Faces in Contacts to update my contacts' photos. there is a ! symbol in Contacts in the left section for All Facebook and All Gmail contacts. if i click on the ! a popup window says th
-
Elements 12 installation fails with error DF 037
During installation of Elements 12under Windows 7, while installing Shared Technologies installation stops with error DF 037, and then reverses the entire process. I found the corresponding errors in the installation log: Unable to delete a number of