SharePoint Web Part to Excel Workbook problem

Exhorter

New Member
Joined
Mar 12, 2015
Messages
7
First off, thanks to anyone who has any thoughts on my issue. Here is what is going on;

I have a dashboard built in excel 2013 with multiple pivot tables. It connects to a data cube via a secure network. The dashboard is displayed in a SharePoint site using an Excel Web Access web part.

This dashboard needs to display an agents scorecard and filter the data based on who is logged in the SharePoint site. (example, agent X logs in and will only see agent X's scorecard)

I have added a Current user Filter and connected it to the Excel web part but that is not working for me. I get the following error.

Unable to Set One or More Parameters.



An error occurred while attempting to set one or more of the parameters in this workbook.

As a result, none of the parameters have been set.
Click OK to return to the workbook.


The parameters are set in excel, and I have tried everything I know to fix this. I do not have to use the current user filter if there is a better way of coding this. The only restriction I have is for some reason the network I am on will not allow SharePoint Designer to operate.

Any help out there?
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
I'm trying to think if this is possible the way you are doing it. It might not be.

Let's start w/ the easy part :)

Back in power pivot land, do you have a table that lists all the possible usernames? And you put that into a slicer that you are trying to set via the web part connection magic?

"connects to a data cube" -- can you clarify... do you mean you have reports build against a tabular model? (or was this... some *other* cube data getting pulled into a power pivot model?)


So, the thing is... the required format for setting those filters are kinda freaky. I would start with a URL filter just to get a feel for it. It's like...

[TableName].[ColumnName].&[TheValue] eg [Users].[UserName].&[Jim].

So... I'm kinda skeptical the username web part can send THAT freaky format in. I vaguely recall writing a custom web part for that.

However...

Know that DAX does have a =USERNAME() function that might help you?
 
Upvote 0
I do have a table with the info loaded from the cube. As far as what I am calling a cube is an external data source that is fed by 7 differnt sources(databases) its data.

I can tell you that the SharePoint filter is only sending the user name itself and nothing additional. It does have the option to link it to the slicer, but it still doesnt work. I am really unfamiliar with DAX, but looks like I may need to look into it.
 
Upvote 0
I was able to finally fix this issue. Sharepoint current user webpart was sending over just the user name and it had to be formatted with the MDX needed to fit the slicer.

Thanks for all the help
 
Upvote 0
Cool. Out of curiosity, how did you end up sending the correct format? (custom web part?)
 
Upvote 0
Under the advanced filter options:

Text before value: [Agent].[SP Login Id].&[
Text after value: ]

This put the full id inside the MDX format that I needed for the slicer to filter properly. I didnt actually have to build a custom web part as I thought I would. Sharepoint alread had this available once editing the current user webpart.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,028
Messages
6,128,382
Members
449,445
Latest member
JJFabEngineering

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top