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

how to set Help or Comment for my fileds

$
0
0

Hi Team,

i want give a comment for my Calculated members or measures ,how we can give.

can anyone help on this.

Regards

Mallikarjun


how to use http to connect a MS Tabular DB

$
0
0

Hi all,

  For SSAS multidimensional DB, we can use http://SSASName/OLAP/msmdpump.dll to connect. how about Tabular ?

Does anybody can let me know ?

Thanks 


James Liang

Cannot Create New Dimension in Cube.

$
0
0

Hi everyone,

I am trying to create new Dimension using Code, but it gives me error.

Code:

var objDimension = db.Dimensions.Add("Temp1");
objDimension.Type = DimensionType.Regular;
objDimension.Source = new DataSourceViewBinding(db.DataSourceViews[0].ID);
objDimension.StorageMode = DimensionStorageMode.Molap;

DimensionAttribute attr;
attr = objDimension.Attributes.Add("TempColumn");
attr.Usage = AttributeUsage.Key;
attr.Type = AttributeType.Regular;
attr.OrderBy = OrderBy.Key;
attr.KeyColumns.Add(CreateDataItem(db.DataSourceViews[0], "TempTable", "TempColumn"));
attr.NameColumn = CreateDataItem(db.DataSourceViews[0], "TempTable", "TempColumn");
objDimension.Update();
objDimension.Process(ProcessType.ProcessFull);

While process a cube it gives me below error:

Internal error: The operation terminated unsuccessfully.
Errors in the high-level relational engine. The data source view does not contain a definition for the 'TempColumn' column in the 'TempTable' table or view.
Errors in the OLAP storage engine: An error occurred while the dimension, with the ID of 'Temp1', Name of 'Temp1' was being processed.
Errors in the OLAP storage engine: An error occurred while the 'TempColumn' attribute of the 'Temp1' dimension from the 'Temp' database was being processed.
Server: The current operation was cancelled because another operation in the transaction failed.

What is Alternate of Report Model(.smdl) in SQL Server 2016 and how to Migrate .smdl Reports to SQL Server 2016

$
0
0

Dear Sir,

As  we are migrating from SQL Server 2008 to SQL Server 2016. We found that in SQL Server 2016, Report Model is going to deprecate, thus we need guidance with following points - 

1. We have a requirement to expose data so that end user can design their own reports. We need a solution that will work across SQL versions ranging from SQL 2008 standard edition to SQL 2016 standard edition.

2. We have been using Report Models to expose data to end users who were then able to design their own reports using report builder.

3. I am unable to do this on SQL 2016. Is there any way? Can I at least deploy existing Report Models in 2016 or even deployment is not possible.

4. What is the way in which I can achieve similar functionality in SQL Server 2016. On reading over the internet I see Analysis Services Cubes and Tabular Models mentioned as alternates. What is the complete list of such alternates and what are their pros and cons. We need to build several types of reports ranging from summarized MIS reports to detailed transaction reports and Document Views.  Which flavor of SQL 2016 are they supported in? Specifically are they supported in Standard version. Are they also supported in SQL 2008? What is SSDT? What is Power BI? Can it be of use to us? If yes can you point me to resources/tutorials associated with these so that I can get started.  

5. Can we migrate  old Reports already made on Report Model (.smdl) to sql server 2016 ? Are there  any Tools available for same.

We are very confused and need guidance.



Multidimensional modeling: how to model for queries "turnover in my sales region"?

$
0
0

Dear experts ;-)


I'm stuck with my modeling knowledge of SSAS Multidimensional (not "Tabular Model"). My feeling is that it should be possible by many-to-many modeling. But I'm a little kind of a novice in that part. I don't start from scratch! I want to add some requirements to an existing cube.

The starting position:

"Fact_Turnover" like:

Dealer      Product     PostCode Turnover   
----------- ----------- -------- -----------
1           2201        C        20         
2           2201        D        100        
1           2201        A        50         
2           2201        B        30         


"Dim_Geography_A" like:

DealerId    DealerName    DealerGroupId DealerGroupName   RegionStructureA RegionStructureAName
----------- ------------- ------------- ----------------- ---------------- ---------------------
1           Dealer 1      1             DlrGroup 1        1                RegionA 1
2           Dealer 2      1             DlrGroup 1        1                RegionA 2


"Dim_Geography_B" like:

DealerId    DealerName    DealerGroupId DealerGroupName   RegionStructureB RegionStructureBName
----------- ------------- ------------- ----------------- ---------------- ---------------------
1           Dealer 1      1             DlrGroup 1        1                RegionB 1
2           Dealer 2      1             DlrGroup 1        2                RegionB 2

The two geographic dimensions should be leaved untouched.

Now I want to model a dimension for turnover 'in my sales region' and 'out of my sales region'.

"Sales region" is defined as follows:
Dealer 1 sales in PostCode A.
Dealer 2 sales in PostCode B.
Postcode C is part of the sales region for DlrGroup 1.
Postcode D isn't part of the sales region for DlrGroup 1 for RegionStructureA, but for RegionStructurB.

I want to query the turnover at all levels of my geographic dimensions, i.e.
on dealer level, dealer group level and region level.

I tried to model it with some many-to-many approaches, but got stuck.
Any hints are really heartly welcome. ;-)

Are there any questions left? Please don't hesitate to ask. I try to answer as quick as possible.
Special thanks in advance!

Kind regards
Lutz



PREVIOUSMONTH() always returns "(blank)"

$
0
0

I am unable to get the PREVIOUSMONTH() function to work properly; it always returns blank.  As far as I can tell, my syntax is OK, so I must be missing something.  Hopefully someone can identify what I'm doing wrong?

Here is an example of three measures I have in a model of the Adventure Works DW using the FactInternetSales table:

Sum of SalesAmount := SUM([SalesAmount])

Sales This Month := TOTALMTD([Sum of SalesAmount],FactInternetSales[ShipDate])

Sales Last Month := CALCULATE([Sum of SalesAmount],PREVIOUSMONTH(FactInternetSales[ShipDate]))

"Sum of SalesAmount" and "Sales This Month" return good values, but "Sales Last Month" always returns "(blank)"

Send email through Email Subscription only when record exists

$
0
0

Hi,

We are using SSRS Reports based on Report Model (.smdl), and sending mail through My Subscription - Mail, Now I want to send Email only in case of records exists otherwise not.

As this report is Model based report so semantic query is generated and executed dynamically at run time and this query is so expensive (taking approx 2-3 minutes to execute) so we don't want to execute it again to check whether record exists or not.

What is the alternate way to stop sending mail when record is not exists.

Regards,

WFX

No table visible in dimension designer and incorrect column mappings

$
0
0

In the dimension designer window I can not see any table. When checking column mappings I also see that they reference a wrong table. Weird thing is that I am able to process and deploy the cube.

The cube in question is working just fine on our production environment.
When importing the cube from our production environment in VS 2015 (update 3) I see the exact same problem.

What is going on ? And, more important, how can I fix this :)



Value in fact table but not in teh dimension table

$
0
0

Hi guys, completely lost the touch with SSAS. I've got a in the fact table A B C D and in the dimension only A B C (not D). The cube is not going to be processed for this reason. How can I handle this situation?

Many Thanks

  

SSAS Tabular XMLA Event Sessions are getting deleted after system restart. Any solution for this

$
0
0
SSAS Tabular XMLA Event Sessions are getting deleted after system restart. Any solution for this?

Dinamic pecentage on total

$
0
0

Hi guys, I totally lost the touch in SSAS. I remember I used to build a calculation in order to give me the percentage of the dimension I am looking at. Let 's say I've got A 10 B 10 C 20, the total is going to be 40 and the percentage will be A 25 B 25 C 50. If I query another dimension, let's say Y 80 X 120 I 'd like to retrieve Y 40 and X 60.

Practically, how can I build a calculation that give me dynamically the percentage on the total.

I already did but ages ago.

Thanks

Hey SSAS professional! Help us to help you and become globally known for being awesome at what you do!

$
0
0

September has finally arrived, traditionally a strong month for TechNet Guru contributions.

Maybe it is because our professionals have returned from a well deserved Summer break refreshed and inspired?

Maybe it's because they have had some quality time to think of something good to contribute?

Also it is common for this time of year to bring in some new authors. New contenders! New legends!

Could that be you? Do you want some accolade or acknowledgement that you "know your stuff" ?

TechNet Guru winners can go on to be MVPs and high profile technical evangelists within the Microsoft community and work place!

All you have to do is add an article to TechNet Wiki from your own specialist field. Something that fits into one of the categories listed on the submissions page. Copy in your own blog posts, a forum solution, a white paper, or just something you had to solve for your own day's work today.

Drop us some nifty knowledge, or superb snippets, and become MICROSOFT TECHNOLOGY GURU OF THE MONTH!

This is an official Microsoft TechNet recognition, where people such as yourselves can truly get noticed!

HOW TO WIN

1) Please copy over your Microsoft technical solutions and revelations toTechNet Wiki.

2) Add a link to it on THIS WIKI COMPETITION PAGE (so we know you've contributed)

3) Every month, we will highlight your contributions, and select a "Guru of the Month" in each technology.

If you win, we will sing your praises in blogs and forums, similar to the weekly contributor awards. Once "on our radar" and making your mark, you will probably be interviewed for your greatness, and maybe eventually even invited into other inner TechNet/MSDN circles!

Winning this award in your favoured technology will help us learn the active members in each community.

August's entries are still with the judges, but below are July's mighty winners and contenders!

 BizTalk Technical Guru – July 2016 
 

0640_NinjaAwardTinyGold

Kjetil Tonstad22x Latency Improvement In BizTalk Without Changing The CodeSandro Pereira: “A pure simple masterpiece! Well done Kjetil Tonstad.”
LG: “A good real-life example, which is very helpful. Thank you for sharing!”
 

0841.NinjaAwardTinySilver

Mandar DharmadhikariAnalysis of Scenario Which Results in TDDS CrashLG: “Interesting finding. Thanks for sharing!”
Sandro Pereira: “Another great addiction to the TechNet Wiki. Very useful tip. In terms of content, the layout (text, pictures, headers, empty spaces) could be significantly improved because presentation is also good for a better read experience of the article “
 

7827.NinjaAwardTinyBronze

Rahul MadaanUsing TIBCO EMS adapter in BizTalkSandro Pereira: “Not easy to find information about this topic. Nice addiction to the TechNet Wiki. Regarding to the article, it can be a little improved with more content, the layout should be improved and for better reading some of the picture should be follow by the commands in pure text. Nevertheless, great start “

 Forefront Identity Manager Technical Guru – July 2016 
 

0640_NinjaAwardTinyGold

Jeff IngallsMicrosoft Identity Manager 2016 SchemaEd Price: “Wow! I was reading this, not sure what to make of it, because there isn’t a ton of text breaking it down. But when I started scrolling down that first table, I realized how amazing and valuable the data is! And then the Gallery item just really tops off this article. Great job!”
0841.NinjaAwardTinySilver

Peter GeelenMicrosoft Identity Manager 2016 Handbook: Online Companion GuideEd Price: “Fantastic resource and companion to the book! Very helpful to break down the topics!”

 Microsoft Azure Technical Guru – July 2016 
0640_NinjaAwardTinyGold

Kia Zhi Tang (Ryen Tang)Microsoft Azure: Deploying Windows Server 2016 Nano ServerJH: “Maybe one of the largest articles I have seen, but a good one.”
AS: “Good and comprehensive article, but a bit too long for me. It could have been split into 2 or even 3 different in a series.”
0841.NinjaAwardTinySilver

Eldert GrootenboerIntegrating Service Bus Stack With Logic Apps And Azure FunctionsJH: “Contains a lot of example code. Good for getting started with Service Bus and Logic Apps.”
AS: “Good catch and guide on the different handling of Service Bus messages in different services. I would also like to see here the security settings configuration of the function required to be able to properly see it in the list of Logic App designer.”
7827.NinjaAwardTinyBronze

Bhushan GawaleAzure key vault essentials for beginnersJH: “Good introduction to Key Vault.”

 Miscellaneous Technical Guru – July 2016 
 

0640_NinjaAwardTinyGold

Ronen Ariely
&
Sabah Shariq
List of forums by Languages, categories, and field of discussionsRichard Mueller: “Excellent use of Wiki Guidelines, with even “Return to Top” links (these help in such a long article). This article allows us to search for the forums we want easily. Listing them by category helps.”
Ed Price: “Very valuable article, that already has 55 revisions. I see this as an article that’s going to get a lot of use from readers and tweaks from contributors!”
0841.NinjaAwardTinySilver

Ken CenerelliKilling zombie Google Chrome processesRichard Mueller: “Very well explained. Useful code to know and use. The link to the code in the script gallery should be in the References section rather than the See Also, as it is not a Wiki. I like the references.”
Ed Price: “Interesting title! Great and clear write-up, and it features a number of helpful links to learn more on this topic of using Chrome on Windows. Thanks!”
7827.NinjaAwardTinyBronze

SYEDSHANUGetting Started with ASP.NET Core 1.0 RC2 and Angular2Ed Price: “Wow! This is incredibly deep. Love the See Also link and Download link to the source code on TechNet Gallery! Great introduction and use of images. If you need a grammar pass, please ask people for help! Then check this history to see what tweaks were made.”
Richard Mueller: “Detailed steps in this article, but I found the explanation hard to follow. The external links should be collected in an “Other Resources” section. Grammar needs work.”
 SharePoint 2010 / 2013 Technical Guru – July 2016 
0640_NinjaAwardTinyGold

Amjad Khan SharePointSharePoint Online: Create Site Columns, Content Type and Associate with Custom List or Library at site collection level using PowerShell and CSOMJohn Naguib: “Excellent article”
Ed Price: “I love the diagrams, description at the top, and the download to the code! It would be good to break the long code block up into sections to explain what the code does more. Great formatting with Headers and the TOC!”
0841.NinjaAwardTinySilver

Shantha Kumar TWork with host web data using PnP JS library in the SharePoint Hosted Add-InJohn Naguib: “Incredible to have such topic discussed, excellent”
Ed Price: “Valuable scenario, great descriptions, and good use of images and code! It could benefit from a References section at the end with more resources to dig into.”
7827.NinjaAwardTinyBronze

Waqas SarwarSharePoint 2016 Managing Alternate Access Mapping Using PowerShell (Real World Example)Ed Price: “Good use of a See Also section. This is very clear and easy to read! Includes kudos from Arleta in the comments (“Nice article. Thanks!”). It’s a great scenario that’s well written!”
John Naguib: “Nice article”
 Small Basic Technical Guru – July 2016 
0640_NinjaAwardTinyGold

Nonki TakahashiSmall Basic: Sample CodeEd Price: “Very helpful resource for finding what you’re looking for! Thanks!”
0841.NinjaAwardTinySilver

DevaVideo: Installing, running Microsoft SmallBasic in Azure Cloud @ Azure DevTestLabsEd Price: “Excellent video!”
7827.NinjaAwardTinyBronze

Nonki TakahashiSmall Basic Sample: DirectoriesEd Price: “It’s cool to see how to do this. It would benefit from an explanation. Great See Also links!”
Michiel Van Hoorn: “Interesting scripting possibility for OS file directories. Not sure if one should to this with Small Basic but it is at least possible.”

 SQL BI and Power BI Technical Guru – July 2016 
0640_NinjaAwardTinyGold

Thomas LeBlancUsing a Lookup Component in SSISPT: “Tom, you have the only entry this month so YOU WIN! Fortunately it’s also a good post with answers to commonly-asked questions about the SSIS Lookup transform. Thanks”
Ed Price: “Fantastic explanations of each piece of the puzzle. Good use of images. This is common, and you go very deep with it. Thank you! It could be improved with Headers and a TOC. Great contribution!”
Ronen Ariely: “Nice article. Can be very useful. Missing some important sections like Table of content, background or introduction, conclusions, and links to get more information. I recommend to follow articles templates.”

 SQL Server General and Database Engine Technical Guru – July 2016 
0640_NinjaAwardTinyGold

Prashanth JayaramSQL-Server(s)-Inventory-Excel-CSV-Console- Using PowerShell SMO and RMORonen Ariely: “Important issue! The reference links are missing titles.”

Ed Price: “I love the Abstract and Pre-requisites (very important and very clear to have them listed like this). The Logic Flow diagram is also incredibly helpful! As are the use of images and the Conclusion. It would be good to break up the code and explain it (and host it on MSDN/TechNet Gallery). Great article!”

0841.NinjaAwardTinySilver

Prashanth JayaramHow-To-Refresh-Multiple-sql-database(s)-Using-PowerShellRonen Ariely: “Very useful script. TechNet Wiki is not a personal post, and articles should be written in 3rd person. There are links for references at the end, but no titles. The reader must click each link in order to know what they are.”

Ed Price: “Fantastic job formatting this. The diagram in “DB Refresh Flow” is useful, but a little small. It would be good to have an image of the output earlier on. In the Code sections, it would be useful for the code to be broken into parts and then explained in depth. Then the full code could be on TechNet/MSDN Gallery and you could link to it. Great job on the code formatting and References (as Ronen mentions, it’s better to embed the URL in the title of the article). And I love the Restore and Conclusion sections!”

     System Center Technical Guru – July 2016 
    0640_NinjaAwardTinyGold

    sridhar vishwanathamOverride creation best practices: Explicit Group issuesEd Price: “Great write ups that explain the context and then dig into the process/solution! Could benefit from See Also and Reference sections at the end.”
    0841.NinjaAwardTinySilver

    Nick HogarthConfiguration Manager 1606 – OMS Connector (preview feature) by Nick HogarthEd Price: “Great use of images as you lead the reader through the solution! Could benefit from Headers and a TOC. Just type in “[toc]” at the top to create the TOC. Good job on this article!”

     Transact-SQL Technical Guru – July 2016 
    0640_NinjaAwardTinyGold

    Ronen ArielySQL Server – Exposing masked dataSamuel Lester: “Outstanding depth, thanks for the great detail on DDM strengths and limitations”
    Richard Mueller: “A great article describing a new feature. The code is well explained with detailed steps. Thanks!”

     Universal Windows Apps Technical Guru – July 2016 
    0640_NinjaAwardTinyGold

    Santhakumar MunuswamyIntroduction to HoloLensEd Price: “A lot of depth and a great intro! Also good to have the Reference section at the end, and the images help provide context! Very important topic, and I’m glad we have this content on TechNet Wiki!”
    0841.NinjaAwardTinySilver

    Ravindra Singh ChhabraCortana Integration in Universal Windows Platform AppsEd Price: “Great topic, great formatting, great use of code (including solid comments in the code), and good use of images, companion video, and code download! Great topic!”
    7827.NinjaAwardTinyBronze

    Timothé LarivièreCompiled Binding for UWP – What’s new in the Anniversary Update?Ed Price: “Great formatting and use of code! Good to have a link at the end to the code. This article features a very lively conversation in the comments!”
     Visual Basic Technical Guru – July 2016 
    0640_NinjaAwardTinyGold

    .paul.VB.Net OOP Address BookMR: “Amazing work! Thanks for submitting it!”
    Richard Mueller: “Great use of Wiki guidelines, with good images and code. We could use more references.”

     Visual C# Technical Guru – July 2016 
    0640_NinjaAwardTinyGold

    SYEDSHANUASP.NET Core 1.0 RC2 and Angular2 using WEB APIJaliya Udagedara: “This is fantastic. Loved seeing use of ASP.NET Core, Angular 2 along with TypeScript. And you can download the full sample code from TechNet Gallery, Perfect!”
    Ronen Ariely: “The article organized as step-by-step case study, which I love. it starts from prerequisites till the execution, and full project code attached. Well done! ”
    Carmelo La Monica: “Very great article in alla parts. Good code, Images and presentation.”
    0841.NinjaAwardTinySilver

    Sandeep ShekhawatRelationship in Entity Framework Using Code First Approach With Fluent API Jaliya Udagedara: “Well explained with the use of code snippets and images. And you can play around with the code after downloading the sample from TechNet Gallery!”
    Ronen Ariely: “Great article, very nice introduction, well formatted and well explains. The option to download the Code as project is always great advantage.”
    Carmelo La Monica: “Congrats for the topic. i don’t know Entity framework, this is good point for to start.”
    7827.NinjaAwardTinyBronze

    Karthik ElumalaiImport-and-export-excel-files-into-varbinary-max-in-sql-server using Asp.net C#Carmelo La Monica: “Great topic , great presentation and code C # related”
    Ronen Ariely: “Nice article. Missing source code link to download, missing explanations. missing “See also” section with some links. There is room for improvement.”
    Jaliya Udagedara: “Would love to see more explanations around the code.”
     Wiki and Portals Technical Guru – July 2016 
    0640_NinjaAwardTinyGold

    Peter GeelenWiki: Collection of Practical hints & tips for writing an article (from Wiki blog)Ronen Ariely: “very useful list of blog posts links.”
    Ed Price: “Oh boy, what a powerful resource! This is awesome!”
    Richard Mueller: “An amazing collection of links to valuable information. Having this sorted into categories makes it more useful.”
    0841.NinjaAwardTinySilver

    SYED SHANUWiki: Guidelines to write a good Article (meeting the expected quality)Ed Price: “A great collection of tips, and a robust set of See Also links!”
    Richard Mueller: “A good addition to the articles assisting new Wiki authors. A very good “See Also” section.”
    7827.NinjaAwardTinyBronze

    Peter GeelenWiki: Portal or Survival guide?Ed Price: “Nice comparison and breakdown between the two!”
    Richard Mueller: “Great information and well explained. This helps clarify the difference between these important types of articles. Excellent use of the Wiki guidelines.”
     Windows PowerShell Technical Guru – July 2016 
    0640_NinjaAwardTinyGold

    Prashanth JayaramPowerShell- DiskSpaceGUI-Tool-MultiServer(s)-Grid-Email-Search-FeaturesRichard Mueller: “Well explained with good images, code, and references. Lots of code. Could interesting or novel sections of the code be highlighted and futher explained? Perhaps the code should be in the script Gallery.”
    Ed Price: “Great descriptions. Could benefit from a formatting pass (font style, for example) and more of a breakdown of the code block so that you know what each part of the code does. Good use of images and good Conclusion. Great References section, but it might be good to embed the links in the titles of the articles so that we know what the articles are about a little better. Great contribution!”
    0841.NinjaAwardTinySilver

    Arleta WanatPowershell GridView to help with SharePoint data viewingEd Price: “Good use of images and helpful article, but a little light in the explanations. Could use a See Also section with Wiki links.”
    Richard Mueller: “Interesting. We could use more explanation and references.”
    7827.NinjaAwardTinyBronze

    Maor BrachaAzure & Office365 Available and consumed licenses report for MS partnersEd Price: “This is a good topic, but it would be more valuable to include the code, breaking it down and explaining what it does. ”
    Richard Mueller: “We need more explanation of the code. Also, references and a “See Also” would help.”

     Windows Presentation Foundation (WPF) Technical Guru – July 2016 
    0640_NinjaAwardTinyGold

    Magnus (MM8)WPF: Enabling ClearType On a TextBoxEd Price: “Great wrhite-up and use of code! Could benefit from Headers and a TOC. Very helpful topic!”

     Windows Server Technical Guru – July 2016 
    0640_NinjaAwardTinyGold

    Peter GeelenBest Practices for Internal AD Domain and Network NamesMark Parris: “Knowledge that all Active Directory Administrators need to know.”
    Richard Mueller: “Very well explained and a good addition to the Wiki in this category. I especially like the references.”
    JM: “This is a great article on naming conventions for AD, thanks for your contribution”
    0841.NinjaAwardTinySilver

    Kia Zhi Tang (Ryen Tang)Nano Server: Deploying Python 3.x interpreterJM: “This is an excellent article on Python in Nano Server, thanks for your contribution”
    Mark Parris: “Good insights on Nano Server and Python Interpreter”
    Richard Mueller: “Great use of Wiki guidelines with good references and a great “See Also” section.”

    Good luck!
    Pete Laker

    (Azure MVP)


    #PEJL
    Got any nice code? If you invest time in coding an elegant, novel or impressive answer on MSDN forums, why not copy it over toTechNet Wiki, for future generations to benefit from! You'll never get archived again, and you could win weekly awards!

    Have you got what it takes o become this month's TechNet Technical Guru? Join a long list of well known community big hitters, show your knowledge and prowess in your favoured technologies!

    ALL level results not correct

    $
    0
    0

    I have this query with a calculated member :

     with member Test as
    CASE
      WHEN [ROE Account].[Record Type].CURRENTMEMBER.MEMBERVALUE = "LineAvail" 
      THEN 0
      ELSE ([ROE Account].[Record Type].CURRENTMEMBER, [Measures].[Application Master Data Count])
    END 
    select {[Measures].[Application Master Data Count],[Measures].[Test]} on columns,
    Non empty {[ROE Account].[Record Type].members} on rows
    from [ROE]

    I'm wanting to exclude the "LineAvail" number of accounts.  The individual results are correct, but the ALL level is not:

    It should be 452,979.  What do I need to change in the MDX above?


    J. Way


    Lock issue

    $
    0
    0

    Hi All,

    I have two tabular cubes (say cube1 and cube2) and i have one SSIS package which has the custom function "CreatePartition". This function has the script to connect to the cube and create required partition.

    I have two SQL agent jobs (say Process Cube1 partition and Process Cube2 Partition). I run both the agent jobs simultaneously, the job is failing with error "While attempting to acquire one or more locks the transaction canceled"

    I was searching in google and gone thorough few blogs but my question is, do we have a chance that if two SQL agent jobs access same SSIS package function (CreatePartition) will it get into a deadlock and fail?

    Please suggest.. Thanks.

    Regards
    Jim

    WHERE condition in Dimension

    $
    0
    0

    Hi experts,

    I want to filter out the data on where Date is greater than 25 of every month in MDX.

    I have fact with date surrogate key and distinct count of transaction on the whole year. Now I want to get count of transaction happened after 25th of every month. I have data time dimension. I want to filter on data.

    kindly help me.


    DAX Cumulative end-of-year

    $
    0
    0

    Hi,

    I have a tabular model structure for my small company's profit/loss reporting. At present, the way it works is, after drawing whatever dividends, the carried over profit stays in the company account. Year after year, this builds up, thus providing me with a little buffer.

    Therefore, a "true" pictue of my company will be all cumulative carried over profit + year-to-date profit.

    I have managed to sort out the year-to-date profit as a measure. But what I need to be able to do, is cumulatively add up all the preceding end-of-company-year profit values.

    I'm aware of the end-of-year and previousyear DAX functions, but these only give me the previous year, but I need all the preceding years' values (or at least since when my company began trading). Is there a better way to do this without hard-coding the year values?

    Thanks,

    Shri


    - Please mark the answer as correct if it answered your question. Thanks!

    MDX, how create a new set according to the members in the same dimension, in order to create a calculated member?

    $
    0
    0
    

    with member a as

     1..settostr(generate([Dealer].[Total Dealers].members,
              descendants( [Dealer].[Total Dealers].currentmember,[Dealer].[Total Dealers].[Dealer Locked])))
    select 
    {  2.. [Dealer].[Total Dealers].[Dealer Locked].&[63]
        ,[Dealer].[Total Dealers].[Dealer Locked].&[74]
        ,[Dealer].[Total Dealers].[Dealer Locked].&[65]
        ,[Dealer].[Total Dealers].[Dealer Locked].&[76]
      } on 0,
      {a } on 1
    from [MBCLBI]

    hey guys,

    I need your help. I want to create a calculation "avg(<set1>,measure.sum)". i got the problem about the set1. the set1 is composed by the members of Dealer dimension, like the part2 in the picture above. the numbers of Dealer members is uncertainty. The part1 turns out all of members of Dealer dimension. But i only want the part1 included members in part2.

    with member a as
     settostr(generate(Existing [Dealer].[Total Dealers].members,
              descendants( [Dealer].[Total Dealers].currentmember,[Dealer].[Total Dealers].[Dealer Locked])))
    select 
    {   [Dealer].[Total Dealers].[Dealer Locked].&[63]
        ,[Dealer].[Total Dealers].[Dealer Locked].&[74]
        ,[Dealer].[Total Dealers].[Dealer Locked].&[65]
        ,[Dealer].[Total Dealers].[Dealer Locked].&[76]
      } on 0,
      {a } on 1
    from [MBCLBI]

    i add the key word "Existing" in the part1. But it doesn't work. how can i get the set composed by the members of Dealer dimension. I really need your help. Thanks a lot.

    getting error on measure All fact dimensions in a measure group must be roles of the same database dimension and all roles of that database dimension in the cube must be included in the measure group as fact dimensions.

    $
    0
    0

    Hi Friends

    I got this error when i build project.

    MeasureGroup [Asterisk].[DW Vicidial List] : The cube dimension 'Phone Number' is not included as a fact dimension in the measure group 'DW Vicidial List'. All fact dimensions in a measure group must be roles of the same database dimension and all roles of that database dimension in the cube must be included in the measure group as fact dimensions.        0    0    


    Error    2    MeasureGroup [Asterisk].[DW Vicidial List] : The cube dimension 'Call Date' is not included as a fact dimension in the measure group 'DW Vicidial List'. All fact dimensions in a measure group must be roles of the same database dimension and all roles of that database dimension in the cube must be included in the measure group as fact dimensions.       

    kindly help me to resolve this issue.


    ERROR: Multiple Degenerate Dimensions

    $
    0
    0

    I have tried to build multiple degenerate dimensions, I can sucessfully add one, when I add a second I get this error.

     

     

    "All fact dimension in a measure group must be roles of the same database dimension."

     

    Does anyone know what this means?

    Attaching cube fails

    $
    0
    0

    Hi,

    After some MS updates our SQL server failed to work fine. So we took a full server backup with Tivoli and reinstalled OS on server.

    Now when I try to attach SSAS DB it fails with error, that there is on detach log file in db folder. It is true, since we were in a hurry and did not detach SSAS dbs. Is there any way to attach it without this log file, maybe recreate it somehow manually?


    Viewing all 14337 articles
    Browse latest View live


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