ssas

MDX and PeriodsToDate

 ̄綄美尐妖づ 提交于 2019-12-12 01:29:54
问题 I'm very new to MDX so I hope this is a simple question for a MDX expert. I have the following expression SUM(PeriodsToDate([Accounting Date].[(All)]),[Measures].[Amount]) which this piece works as expected. I need to add a filter or IIF statement that basically does the following: IF SUM(PeriodsToDate([Accounting Date].[(All)]),[Measures].[Amount]) < 0 Then 0 Else SUM(PeriodsToDate([Accounting Date].[(All)]),[Measures].[Amount]) 回答1: I'm afraid it's impossible to do with pre-aggregated data.

How to create a DAX measure that extracts Information from the metadata of Tabular model in SSAS or Power BI.?

喜你入骨 提交于 2019-12-12 01:28:40
问题 I have just started learning the SQL Server and Power BI. I'm working on a project and for that i need to create a Measure for the Power BI report that will dynamically extracts the information about all the tables (like Table Name, Last Updated, Dependencies, etc) used in the Tabular solution. I couldn't find any satisfactory answer anywhere. Is there anyone here who could help? 回答1: If you are using an SSAS tabular data model or multi-dimensional cube, you can use DMVs to extract meta data

How market growth for each product under that particular market would be same?

会有一股神秘感。 提交于 2019-12-12 00:36:52
问题 I have All_Product hierarchy in All_product dimension. strength-->product-->market I want calculation for product growth and market growth on monthly basis((current-prev)/prev). I used scripts to calculate product growth (wrt product) and market growth (wrt market) which working fine but how to show for market growth with respect to each product. eg: market growth for each product under that particular market will be same example: I have market m1 and under market m1 having products p1,p2 and

Reprocess tabular cubes after failure using Informatica

ぐ巨炮叔叔 提交于 2019-12-11 23:36:03
问题 So we process the SSAS tabular cubes every night and the other night the processing of the cube failed. Now what I want to do is implement a system that would trigger an automatic reprocess after failure. Is there a way to do that in SSAS Tabular? If not, then can I do it using Informatica. Because as of now we call SSIS packages using Informatica to process the cubes. Thanks! 来源: https://stackoverflow.com/questions/34644420/reprocess-tabular-cubes-after-failure-using-informatica

MDX on multiple hierarchical dimensions

流过昼夜 提交于 2019-12-11 23:17:19
问题 2 hierarchical dimensions (for location and time) are defined on a cube. My question is about possibility of writing a single MDX query for retrieving following structure. I mean writing a single query for obtaining values V1, V2, V3 and V4: The obvious way is to use multiple MDX queries. Just wondering if there is some magic syntax in MDX. 回答1: Try: SELECT { [Measures].[Some Measure] } ON 0, { [Location].[Level 1].[Level 1].Members* [Date].[Year].[Year].Members* [Location].[Level 2].[Level 2

Kerberos Double-Hop Issue between IIS and SSAS [duplicate]

三世轮回 提交于 2019-12-11 21:12:25
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Can I turn off impersonation just in a couple instances I've created an application that, when uploaded to my server throws the following exceptions: [Win32Exception (0x80004005): No credentials are available in the security package] [AdomdConnectionException: Authentication failed.] Here is my connection string: public AdomdConnection conn = new AdomdConnection("Data Source=BTN-SQL1;Initial Catalog

Migration from Cognos cubes to SSAS

余生长醉 提交于 2019-12-11 21:00:00
问题 I have a requirement of migrating Cognos cubes to SSAS. Can some body guide me Is it possible to access Cognos cubes by SSAS? 回答1: To my understanding, the PowerCube itself must have been generated from a database of some kind (or flat files), so you will just need to import the source data and redo the model in SSAS. 来源: https://stackoverflow.com/questions/25894502/migration-from-cognos-cubes-to-ssas

ssas 2005 mdx get total

╄→гoц情女王★ 提交于 2019-12-11 19:40:04
问题 I have this MDX query select { [Measures].[Sold value] ,[Measures].[Units] ,[Measures].[Sales baskets] ,[Measures].[ATV] ,[Measures].[AUT] } on columns , filter( nonempty( {[Branch].[Branch].&[5] *[Receipt No - Sales].[Receipt No].[Receipt No]} ), [Measures].[Sold value] >= 50 ) on rows from Rmis where [Time].[Day].&[20131218] Which generates following result: How can I get the total of these measures of the above result set? The total should use the aggregation defined in the cube. 回答1: with

SSAS linking a date dimension to an interval columns

随声附和 提交于 2019-12-11 16:59:39
问题 I have the following fact table : ID_Activ Date_Start Date_End ID_session DayOfWeek Time_Start Time_End 1 01/02/2018 15/02/2018 11 4 08:00:00 10:00:00 2 01/02/2018 15/02/2018 21 4 09:00:00 10:00:00 3 01/03/2018 15/03/2018 31 2 09:00:00 10:00:00 I have a conventional dimensions date, and a custom dimension time with hours, minutes and seconds. I would like to slice or dice using these dimensions to get this output: Date hour Count_session 01/02/2018 08 1 01/02/2018 09 2 01/02/2018 10 2 08/02

Filtering hierarchies in MDX WITH clause

好久不见. 提交于 2019-12-11 16:08:43
问题 By using the answer of MDX on multiple hierarchical dimensions I have the following MDX query: with member L1Y1 as ([Dim Location].[Hierarchy].[Center].&[1], [Dim Date].[Calendar Date].[Year].&[2010], [Measures].[x]) select ([Dim Attribute].[Parent Code].&[10000]) on 0, ({L1Y1}) on 1 from DS Now the problem is how to filter the L1Y1 based on its children. For example suppose we want to filter it so that only season 2 and month 7 included in the query. The following query output is the same as