MDX not working in Power View on sharepoint 2013

    I have this MDX statement below that should be able to dynamically give me a % of total for any dimension.  IN power View (sharepoint 2013)
I am getting an error.  It works in Excel and works in the AS browser but will not seem to work in power view.  Any ideas on how to rewrite it so that it may work.  I am surprised I cannot find anything on this online about this issue. 
When you highlight the "#ERROR!" in Power view it gives a long description of
"The Axis Function was indirectly referenced from the context of a statement other than SELECT. Evaluations of Expressions involving this function succeed only
when indirectly triggered by a SELECT statement".
CREATEMEMBERCURRENTCUBE.MEASURES.[Percent
of Total] AS 
//Used to get % from total
IIF([Measures].[Total Count] = 0,
NULL,
IIF(isempty( ([Measures].[Total Count],
Axis(1)(0)(Axis(1)(0).Count-
1).Dimension.CurrentMember.Parent
)), 1,
    [Measures].[Total Count] / ([Measures].[Total Count],
Axis(1)(0)(
Axis(1)(0).Count-
1 ).Dimension.CurrentMember.Parent))),
FORMAT_STRING="#,##0.00
%;-#,##0.00 %";

Hey Mike,  Thank you very much for the answer.  Just need a little more help please???
I have added two separate MDX statements that should get the individual % for these two separate dimensions. 
1. First does it look correct from what your saying individually. Would you write it different?
2. Next can you show me the MDX that would combine them into 1 measure.  Once I can see how these two get combined into 1 measure I should be able to do this for the rest of the dimensions. 
3. Will Power View ever allow Axis function?  Just seems strange that it works in Excel Pivot but not in Power View.
WITH MEMBER [Measures].[Percent] AS
Case
// Test to avoid division by zero.
When IsEmpty ([Measures].[Total Count]) Then Null
// Test for current coordinate being on the (All) member.
When [Status].[Status Name].CurrentMember.Level Is [Status].[Status Name].[(All)] Then 1
Else ( [Status].[Status Name].CurrentMember, [Measures].[Total Count] )
/ ( [Status].[Status Name].CurrentMember.Parent, [Measures].[Total Count] )
End
, FORMAT_STRING ="#,##0.00 %;-#,##0.00 %"
SELECT
{ [Measures].[Total Count],[Measures].[Percent] } ON COLUMNS,
{ [Status].[Status Name].[Status Name]} ON ROWS
FROM [Report]
WITH MEMBER [Measures].[Percent2] AS
Case
// Test to avoid division by zero.
When IsEmpty ([Measures].[Total Count]) Then Null
// Test for current coordinate being on the (All) member.
When [Order Placed Date].[Order Placed Date].CurrentMember.Level Is [Order Placed Date].[Order Placed Date].[(All)] Then 1
Else ( [Order Placed Date].[Order Placed Date].CurrentMember, [Measures].[Total Count] )
/ ( [Order Placed Date].[Order Placed Date].CurrentMember.Parent, [Measures].[Total Count] )
End
, FORMAT_STRING ="#,##0.00 %;-#,##0.00 %"
SELECT
{ [Measures].[Total Count],[Measures].[Percent2] } ON COLUMNS,
{ [Order Placed Date].[Order Placed Date].[Order Placed Year]} ON ROWS
FROM [Report]

Similar Messages

  • How to build high usability navigation for Power View on SharePoint 2013?

    I have Power View on SharePoint 2013. I have both SSAS Multidimentional and Tabular model in use.
    I have several Report.drlx file in Report libary in SharePoint.
    When I click the file, it works fine, but I feel that there are usability problems like:
    A) Getting back to SharePoint site is not intuitive. Difficult to find home.
    B) Diffucult to move between report to another. Need to return Document library.
    What is best practise for displaying several Power View reports on SharePoint?
    Kenny_I

    Hi Kenny_I,
    Just as you said, we cannot directly navigate to Home page when we view an .rdlx report in SharePoint site. We need click the Arrow to go to the previous page (Document Library), then click “Home” to navigate to Home page. If we want to move from a report
    to another report, we should still use the same way. This is by design.
    If you want to jump from one report to another report, we can add a hyperlink to a text box in a sheet or view. Personally, I understand your feeling and how frustrated when you find this issue. So, it is my pleasure to help you to reflect your recommendation
    to the proper department for their consideration. Please feel free to submit your situation on our product to the following link:
    https://connect.microsoft.com/.Your feedback is valuable for us to improve our products and increase the level of service provided.
    Thank you for your understanding.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Search suggestion not working for anonymous user in sharepoint 2013

    Hi ,
    Please help on this search suggestion not working for anonymous user in sharepoint 2013
    shaik

    You can create a search center site, and set the search center site to
    allow anonymous access.
    Also see this link - http://blog.mastykarz.nl/search-query-suggestions-anonymous-users-sharepoint-2013-mavention-query-suggestions/ 
     (As this is regarding a 3rd party tool, I suggest that you direct it to the  provider support.)
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Power View for Sharepoint 2013 'Feature not available'

    Hello All,
    We are trying to set up Power view in Sharepoint but every time I click the power button on a report we get the  "The
    feature: "Power View" is not supported in this edition of Reporting Services." error.
    Our setup consists of two servers.  One is the sharepoint 2013 Enterprise server and the other is our DW server that sits outside of the farm.
    The DW Server has Sql 2012 SP1 (Enterprise) and two instances of AS, one in multi-dimensional mode and one with power pivot for SP.  
    We were able to get power pivot working with Sharepoint without issue but we can't seem to get Power View to work.  I've read through some threads but it still doesn't seem clear what I need to do.  Someone mentioned that we needed to install Sharepoint
    on the DW server but we would like to avoid that if we can due to the current load on the server.  Another suggestion was to install the RsSharepoint on the sharepoint server and that would enable power view.
    I know there is already an RS Service app, would that needed removed as well?

    Only SQL BI and SQL Enterprise have the appropriate edition of Reporting Services to enable PowerView:
    http://technet.microsoft.com/en-us/library/cc645993(v=sql.110).aspx#Reporting
    You would need to uninstall SSRS using SQL Standard and re-install with BI or Enterprise on the SharePoint server.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Cannot connect to specific Cube through BI Semantic Model for Power View in SharePoint 2013

    I'm trying to create a connection to an Analysis Services Cube through a BI Semantic Model connection in SharePoint 2013 to create a Power View report. I'm able to connect to other cubes on the same server, and I have SQL Server 2012 SP1 Update 9 installed
    so it's not a versioning issue.
    I've captured a log of two different connection attempts to show this in action. I can't post links, but just send me a message if you need it, just in case there's any interest in it. The first is a successful connection to an alternate cube
    on the same server, and the second is an unsuccessful attempt that produces and error with "Internal error: An unexpected exception occurred.".
    On the SharePoint side, the error is reported as:
    Internal error: An unexpected exception occurred. ---> Microsoft.ReportingServices.DataExtensions.AdomdTestConnectionException: Internal error: An unexpected exception
    occurred.
    This cube was working the previous day, but it has since been edited and it no longer works now but there's no clear reason why. It can still be queried directly through SSMS with MDX queries, and produces no errors.
    Any help is much appreciated,
    Ryan

    Hi Ryan Myers,
    According to your description, when you tried to connect to an Analysis Services Cube in SharePoint 2013 through BI Semantic Model, you get the error message: Internal error: An unexpected exception occurred. But the MDX queries works fine in SSMS.
    It's hard to give you the exact reason that cause this issue based on the limited information, please validate if the connection string is correct. Besides, we can troubleshoot this issue by using the Windows Event logs and msmdsrv.log.
    We can access Windows Event logs via "Administrative Tools" --> "Event Viewer".  SSAS error messages will appear in the application log.
    The msmdsrv.log file for the SSAS instance that can be found in \log folder of the instance. (C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Log)
    Reference:
    Data collection for troubleshooting Analysis Services issues
    Data Connection For a Power View Report
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.

  • Conditional formatting and extensibility in Power View for SharePoint 2013 on-premises

    Good day,
    Is there a way we could apply conditional formatting in table objects, specifically at cell level (green, yellow and red) to a Power View dashboard in SharePoint 2013?
    If not, is there a way to extend Power View to support these requirements. I know that SSRS and PowerPivot provide a wide range of customization tools, unfortunately so far the only customization capabilities that I've found in Power View are themes , fonts
    and backgrounds but nothing that could allow this level of formatting. What are the available options, only SSRS and PowerPivot?
    Thanks in advance for your help,
    Marcelo Estrada MCP-MCTS-MCITP-MCSA-MCSE

    Hi Marcelo,
    As you know, generally themes , fonts and backgrounds are supportted in power view, more details information:Format Power View reports
    Currently, there is no way to extend Power View to support these requirements. I recommend you to submit
    an wish at https://connect.microsoft.com/SQLServer/
    If the suggestion mentioned by customers for many times, the product team may consider to add the feature in the next SQL Server version. Your feedback is valuable for us to improve our products and increase the level of service
    provided.
    Thanks for your understanding.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Find and item Search not working inside custom list in sharepoint 2013

    HI,
    In Sharepoint 2013 , i configured the Search. it is working in home page search Box and Find item search box  inside custom list as well But one particualr custom list  Find an item is not working. Any clue ?Thanks in Advance
    Thanks
    sanjay pradhan  

    Hi,
    According to your description, my understanding is “find an item” search box in a custom list not work in your environment.
    As search box and “find an item” search box in your home page are working, so the search service application is working.
    Do you have any customzation to the particular custom list ?
    If No, I suggest you can full crawl the data in Central Administration ->Manage Service Application->” Search Service Application”-> Manage Content Sources” to test if it works. 
    Also, please check if you have set "Allow items from this list to appear in search results" in list settings->Advanced Setting to true
    Best Regards
    Jerry Guo
    TechNet Community Support

  • Creating load for performance testing on SSAS and Power View on SharePoint 2013

    We have SQL Server DW, SSAS OLAP Cube and Sharepoint 2013 on dedicated virtual machines.
    We would like to create load simulating use of 500 end-users.
    What are best tools?
    What are best methods?
    Kenny_I

    Hi Kenny_I,
    According to your description, you want to create a PowerView report using SQL Server Analysis Services database in a SharePoint site, now you need to do a load testing for this report, right?
    In SharePoint level, there are many tools that helps in the load testing. For the details, please refer to the link below.
    SharePoint (Performance, Stress ) Load Testing
    For the PowerView report level, you can refer to the link below to see how to track down Power View Performance Problems.
    Tracking down Power View Performance Problems
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • Java Script Code not working properly for visios in sharepoint 2013

    Hi all ,
                 I have few visios and I am using the visio web part to display and to redirect from one visio to other visio I am using the java script code through content editor web part . 
    In share point 2010 it's working fine , I was able to redirect to all the visios and code is working fine .
    In share point 2013 its not the same , Its not working properly . only for the first time the code is working fine . once it goes to next visio the code stops working . 
    For example if i click in visio A it gets redirect to Visio B and its stops working , it wont allow to do any other steps . 
    I have checked with the URL its correct , I am not able to find any error also .
    Indresh

    This will be likely caused by the Minimal Download Strategy not registering the Javascript on the page reload. You can turn off the MDS feature to test this.
    You can either turn off MDS in your site, or register your Javascript functions with MDS to ensure they are called. To do this, you'll need all of your code to be wrapped in a javascript file (Embed this on the page using a <script> tag and
    inside that file in a function, which you then register with MDS as follows (I usually do this in the first line of the javascript file):-
    RegisterModuleInit("/SiteAssets/YourJavaScriptFile.js", NameOfYourFunction);
    Regards
    Paul.
    Please ensure that you mark a question as Answered once you receive a satisfactory response. This helps people in future when searching and helps prevent the same questions being asked multiple times.

  • What is max size of slicer values in Power View on SharePoint?

    I have Power View on SharePoint 2013 and OLAP Cube on SQL Server 2014 solution.
    I should have 1000 values in DimCity, but not all are available in slicer.
    Why? What is max value?
    Kenny_I

    Hi Kenny_I,
    According to your description, you have 1000 values in a data field, but some of them are not available in Power View slicer. Right?
    In this scenario, as we tested in our local environment, it's not related to the number of values. We tried 2000+ values in a slicer. It can return all the data field values properly. Please check if it has corresponding value for each DimCity. It has
    no limitation on max number of values within a slicer.
    Reference:
    Slicers in Power View
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Getting Power View on Sharepoint to interpret latitude and longitude correctly

    After pulling my hair for a few dozen hours I come here with a simple question.
    I have a SQL Server 2012 View - joining 3 different tables, one of which contains latitude and longitude in Decimal(9,6) format.
    I have a Tabular model using this view which I push to Analysis services and further on to Sharepoint 2013.
    However, when I pull the longitude and latitude columns to the corresponding fields in Power View, the data is just placed standardly in the Artic Sea. Now I have tried changing to and from commas and periods as decimal separator but nothing seems to work. 
    I can get it to work using Power Map and Power View for Excel 2013 but not on Sharepoint.
    I have spent a great deal of time on Google searching for answers but nothing seems to adress this issue, despite it being asked before 

    I too have been frustrated by this behavior. I also have issues with locations in Puerto Rico showing up in Europe using the zip code and/or state. I've found when I use lat/long things look correct which makes resolving this
    issue even more pressing for me.
    Unfortunately in the SharePoint construct you cannot control how the api interrupts the address like you can in Excel. I think that is why models in excel recognize latitude and longitude without issue but in SharePoint it's a no go. I have
    not tried to see if the tabular construct recognizes lat/long.

  • Power view in SharePoint - Changing the default save location?

    Is it possible to change the default location when saving Power view back into SharePoint?
    Our users are creating their own power view reports by clicking a power view shared data source in SharePoint document library.
    When saving their reports, the default location is always the same location where the data source is. This is described here also:
    https://support.office.microsoft.com/en-us/article/Power-View-in-SharePoint-Server-Create-save-and-print-reports-f616575e-02bf-46cd-b94a-b744245ef9d1?CorrelationId=a852221e-b063-4020-a20a-53d8e8fb8b8b&ui=en-US&rs=en-US&ad=US
    Quote from the link: "The first time you save the
    report, the default location will be the folder where the model is located."
    Ok, understood. But is it possible to change this???

    Hi again
    Ouch! Not the network!
    One of the hard learned issues that folks are unaware of until they encounter problems is that Captivate does not do well when a project is stored on a network. It's fine to keep projects there in order to back them up or as a transfer pivot location to allow others to edit, but you never want to open Captivate, click File > Open and browse to a network location to open a project for editing.
    Best practice at this point is to keep projects on your local C drive when you make edits.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Power View in Office 365 vs. Power View in SharePoint

    Hi all,
    I am trying to find the best method to get PowerView reports into Dynamics AX. So far, I've simply created a form as ActiveX and navigated to the link to the excel file, but this is not desirable. I read that it is possible to have them embedded into Role
    Centers/Enterprise Portal, but I need to have PowerView in "SharePoint" mode.
    What are the differences between SharePoint mode and Office 365? Is there no way to export the PowerViews to PowerPoint or as Menu Items from Office 365?
    Also, any information or tips on integrating PowerViews/Power BI with Dynamics AX would be great!
    Thanks,
    Mark

    I am trying to find the best method to get PowerView reports into Dynamics AX. So far, I've simply created a form as ActiveX and navigated to the link to the excel file, but this is not desirable. I read that it is possible to have them embedded into Role
    Centers/Enterprise Portal, but I need to have PowerView in "SharePoint" mode.
    What are the differences between SharePoint mode and Office 365? Is there no way to export the PowerViews to PowerPoint or as Menu Items from Office 365?
    Also, any information or tips on integrating PowerViews/Power BI with Dynamics AX would be great!
    Hi Mark,
    Power View comes in two different flavors:
    1. Power View as an Excel add-in (free with Excel 2013 Professional Plus)
    If you have Office 365 with Power BI enabled, you can create visualizations(Charts etc) in Excel using Power View and publish them to a Power BI site which lets you share, view, and interact with reports. At the time of this posting, there is no way
    to export a Power View Report (created in Excel) to Power Point.
    2. Power View, as a Reporting Services(SSRS) Add-in for SharePoint Server(Enterprise Edition). 
    If you don't have Office 365(with Power BI), you can still publish Power View reports(created in Excel) to an on-premise SharePoint site.You can definitely
    Export a report from Power View in SharePoint to PowerPoint
    Integration with Dynamics AX - There are several options for integration and here is one of them.
    1. Use Power Query to Discover all the data you need from Dynamics AX (SQL Server database),
    Transform and Mashup the data. Create a data model in Power Pivot and then use Power View to create your visualizations and publish them to either an on-premise SharePoint environment or to a Power BI site in Office 365.
    I have a Dynamics AX client and they wanted to use Power View. They have a Data Warehouse built on top of their AX database and an SSAS cube (Multidimensional) on top of their Data Warehouse. Since they don't have an Enterprise instance of SharePoint, we
    extracted all the data from the Data Warehouse into a Power Pivot model, then used Power View(the Excel add-in) to create the visualizations. 
    Please take a look at this technet article
    Microsoft Dynamics AX integration with Power BI for Office 365
    Hope this helps. Please let us know if you have any questions.
    Faisal Muhammed My Blog

  • Infopath systemuser() method is not working in infopath view @extrant site .

    We have a sharepoint webapplication with infopath views .We have controlled the switch view with authenticating login use id .It is working perfectly in intranet.
    When we are publishing the site to internet using public ip @ that time initially infopath forms were not opening so i have used Alternate access mapping and published the infopath forms in ip instead of server name .
    Now infopath forms are getting opened but system user() rule is not working and infopath edit forms are not working .Even list view web part with assigned to filtration is also not working . 
    I am stuck on the issue since Monday . Please suggest how to make it possible . it is very urgent.
    We want our customer to access using ad authentication.

    Jeeva,
    Did you create this form in InfoPath itself or you are modifying a list into InfoPath?
    The first screenshot shows you have selected Total "is not equal to" Jan+Feb….
    You can simply add Total field with “TextBox” and double click on it and select default value button.
    Once it will open up a pop up select “fx” button in value and insert all fields like, Jan, Feb…and then put a “+” sign in between
    This will auto populate value once you enter it into any of the month filed.
    Also it you have copied fields for several month in InfoPath it won’t work. You have to insert each field separately
    Let us know your results
    Regards,
    Pratik Vyas | SharePoint Consultant |
    http://sharepointpratik.blogspot.com
    Posting is provided AS IS with no warranties, and confers no rights
    Please remember to click Mark As Answer if a post solves your problem or
    Vote As Helpful if it was useful.

  • Cascading Dynamic Parameters Do Not Work In Crystal Viewer 2008?

    I have generated a report with Crystal Reports 2008 that uses a dynamic cascading parameter. I work in waste management and the report I create in Crystal is used as a "template" with the tonnages collected from all of our customers. Our less technically minded employees can then open this report with Crystal Reports Viewer 2008, use the drop down menus to select only the customer they need a report for and then export this to PDF for delivery.
    The report as designed works perfectly in Crystal Reports, but the parameter does not work in Crystal Viewer.
    Some of our customers have more than one physical location that we service. The cascading dynamic parameter in my report allows you to select the customer name, and then it only shows the locations linked to that customer, so the end user can select only the relevant location(s) for the report. The cascading parameter is dynamic and allows multiple selections, and is linked to a Saved Data formula. The report is saved with the data.
    When the report is opened in Viewer, one of two things happens. If the report is saved in Crystal Reports and a specific customer/location is selected, then ONLY those selected customer/locations are available in the Viewer. If ALL the customers/locations are selected in Crystal Reports and saved, then in the Viewer they are all available, but selecting one customer does NOT narrow down the locations (i.e. it does not "cascade") and instead ALL of the locations are available even if they do not apply to the customer.
    If I use a single dynamic parameter and select ALL of the customers (for example), then when this is opened in Crystal Viewer all of the customers are available from the parameters drop down and the report works fine. As soon as this is tried with a cascading parameter however, Crystal Viewer falls down.
    Does anyone know of a workaround to this or if there is something I am doing wrong?

    I am using the free Crystal Report 2008 Viewer along with designing reports with Crytal Reports ver 12.3. With a test file from SAP called "Interactive Parameters", the parameter feature works to refresh the report. The parameters that are supplied in the sample report work with Viewer. They show up under the parameter list in the parameter side panel in Viewer and are available to make record selections. When I add a parameter to the sample report in Crystal 2008 and then view the report in Viewer, my parameters are unavalable for record selection while the original parameters remain available. Futher, my parameters are displayed under a section called "Current Data Set" in the Parameter side panel, while the selectable parameters are displayed under the "Parameter" section in the parameter side panel. There must be a setting that is treating the parameters I create differently form the parameters created in the original sample report. Any help would be appreciated.

Maybe you are looking for

  • HT3275 how do you uninstall time machine on an external hard drive?

    I am using a seagate hard drive and discovered that since using it my space on my macbook is depleting. Don't know where it went so i want to start over and regain my hard drive space and use the back up only to store music and Logic pro data! PLEASE

  • Document format issue from iPad

    I created a pages document on the iPad, when I open it up in Pages for the Mac the formating is seriously off.  At first it looks like the text is just shifted, but there are images that are 3 pages out of place. I can quick preview the pages documen

  • No sound or video on iPad 2 with iOS 6.0.1

    Since upgrading our iPad2 to iOS6, we have no sound and QuickTime movies will not play.  We can scroll to individual frames in a downloaded file, but pressing Play immediately toggles into Pause.  The same thing happens on YouTube both in their apps

  • Re-install CS5 update on a new PC

    I need to install my Design Premium CS5 Update on a new PC. Do I have to deactivate my CS5 on my previous one ? Because when I want to install it, I type my update license, then I'm asked to type my original license (i.e. Adobe Web Premium CS3), but

  • Canceling service due to breach in contract and avoiding ETF

    I have had Verizon Service since I first had a cell phone..about 20 years, now. Even though I have been frustrated, at times that there is no mechanism in the phone to let you know you are about to exceed your allotment of minutes and then having rea