ssas

Filter Power BI report based on current user

北城余情 提交于 2021-02-19 05:39:12
问题 We're currently developing a Power BI Dashboard (Office 365) for our company and would like to tailor the information on the dashboard based on the current user's preferences. Our company has multiple departments and sub-departments, so to display every department's figures to all users would be counter-productive. For example if Bob is in Sales for Europe - he'll only see European sales, while Sue will only see Sales for America. Is there a way PowerBI can identify the current user and then

How to display multiple dimensions on rows in MDX query?

。_饼干妹妹 提交于 2021-02-17 05:32:26
问题 I have measure called Sales KG in my cube and two dimensions: Groups and Formats . Is there anyway to display last ones in single row? I have this query: select [Measures].[Sales KG] on Columns, [Formats].[Format_TT].[Format_TT] on Rows from [Model] and it's working, but when I try to follow examples from Internet and turn it into: select [Measures].[Sales KG] on Columns, { ([Formats].[Format_TT].[Format_TT]), ([Groups].[Group_Name].[Group_Name]) } on Rows from [Model] Everything ends with

Configuring an MDX query on SSIS

血红的双手。 提交于 2021-02-16 16:27:33
问题 Hi I am having troubles configuring the SSIS task to run an MDX query. The parse works fine but it doesn't allow me to display the different columns of the query to map it Here is the query i used: SELECT [Measures].[# Consumers] ON 0, [Company].[Company Country Code].[Company Country Code].MEMBERS ON 1 FROM _CDM The Error thrown is: No Column information was returned by the SQL Command Error snapshot 回答1: You can use MDX Select as a Source in Data Transformation Task. Two important notes:

SSAS XMLA DISCOVER: how to get list of roles in SSAS database

丶灬走出姿态 提交于 2021-02-11 17:41:46
问题 I am trying to get a list of roles existing in an SSAS DB using XMLA. I need only roles, not other information. I know there is a <RequestType>DISCOVER_XML_METADATA</RequestType> : <Discover xmlns="urn:schemas-microsoft-com:xml-analysis"> <RequestType>DISCOVER_XML_METADATA</RequestType> <Restrictions> <RestrictionList xmlns="urn:schemas-microsoft-com:xml-analysis"> <DatabaseID>SSAS_DB_ID</DatabaseID> </RestrictionList> </Restrictions> <Properties> <PropertyList> </PropertyList> </Properties>

SSAS XMLA DISCOVER: how to get list of roles in SSAS database

≡放荡痞女 提交于 2021-02-11 17:41:21
问题 I am trying to get a list of roles existing in an SSAS DB using XMLA. I need only roles, not other information. I know there is a <RequestType>DISCOVER_XML_METADATA</RequestType> : <Discover xmlns="urn:schemas-microsoft-com:xml-analysis"> <RequestType>DISCOVER_XML_METADATA</RequestType> <Restrictions> <RestrictionList xmlns="urn:schemas-microsoft-com:xml-analysis"> <DatabaseID>SSAS_DB_ID</DatabaseID> </RestrictionList> </Restrictions> <Properties> <PropertyList> </PropertyList> </Properties>

MDX: Exclude a member that share same dimension property of a measure

十年热恋 提交于 2021-02-11 16:20:17
问题 Scenario: I have a measure( Sum ), and I need in all situations the result of this sum excluding the last element registered in the fact table respecting the user/day filter. These elements share the same attributes in the other dimensions. Example: Measure of UserA in fact table in 2019/10/29: RegisterA: 5 RegisterB: 11 RegisterC: 13 RegisterD: 7 ( RegisterD will be not included in the result that the system user will see. Final result: 29 ) Example: Measure of UserB in fact table between

MDX: Exclude a member that share same dimension property of a measure

你离开我真会死。 提交于 2021-02-11 16:18:35
问题 Scenario: I have a measure( Sum ), and I need in all situations the result of this sum excluding the last element registered in the fact table respecting the user/day filter. These elements share the same attributes in the other dimensions. Example: Measure of UserA in fact table in 2019/10/29: RegisterA: 5 RegisterB: 11 RegisterC: 13 RegisterD: 7 ( RegisterD will be not included in the result that the system user will see. Final result: 29 ) Example: Measure of UserB in fact table between

transpose mdx results => values are lost

假如想象 提交于 2021-02-11 14:17:40
问题 I created an MDX query with some named calculus (using 'WITH' keyword). The last part is: SELECT {[Measures].[PCT0p02],[Measures].[PCT0p2],[Measures].[PCT0p5],[Measures].[PCT0p8],[Measures].[PCT0p98]} on 0 FROM [My cube] It gives me this: I would like to transpose these results in order to feed an SSRS report. But write SELECT { } on 0, { [Measures].[PCT0p02],[Measures].[PCT0p2],[Measures].[PCT0p5],[Measures].[PCT0p8],[Measures]. [PCT0p98] } on 1 FROM [My cube] returns Please tell me how not

Connect to SSAS OLAP Cube Using Python

你离开我真会死。 提交于 2021-02-10 18:42:02
问题 Looking for resources to learn how to connect and fetch data from SSAS OLAP Cube. Found I can do it with XMLA lib, but found no resources to explore and learn. 回答1: If you want to use python to connect SSAS cube, you could refer to SSAS via Python and olap.xmla for more details. Zoe 来源: https://stackoverflow.com/questions/53607258/connect-to-ssas-olap-cube-using-python

Ever a need for CurrentMember.Item(0)

白昼怎懂夜的黑 提交于 2021-02-10 16:59:37
问题 The custom measure in the following is taken from the book MDX Cookbook (Tomislav Piasevoli): WITH MEMBER [Internet Sales PP] AS Sum ( Generate ( { [Date].[Calendar].[Date].&[20080105] : [Date].[Calendar].[Date].&[20080125] } ,{ ParallelPeriod ( [Date].[Calendar].[Calendar Year] ,1 ,[Date].[Calendar].CurrentMember.Item(0) ) } ) ,[Measures].[Internet Sales Amount] ) SELECT { [Measures].[Internet Sales Amount] ,[Internet Sales PP] } ON 0 ,[Product].[Color].MEMBERS ON 1 FROM [Adventure Works];