Quantcast
Channel: Power Pivot forum
Viewing all 4715 articles
Browse latest View live

A New Year, a New Challenge! Become the FIRST Power Pivot Guru of 2015!

$
0
0

Happy New Year!

"Guru 2014" is so 'last year'!

The real glory is to be the first Guru of 2015! :D

The birth of a new year, and a new hero?

Or the stamp of authority from long established Guru leaders?

The challenge is on, all eyes are watching, anyone could win this month.

The prize? Glory! Honor! Virtual medals! Unashamed love and worship from those within the community and those bloging about it (article spotlights, weekly awards). Published interviews and the chance to climb the TechNet social ladder. Become a true TNWiki Ninja and advance through to black belt... and beyond!

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.

Feel free to ask any questions below.

More about TechNet Guru Awards

Thanks in advance!
Pete Laker


#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!


Macro assigned to Slicer does't work

$
0
0

I have 2 slicers: Slicer_Solution and Slicer_Specific_Solution

I wrote a macro to select in Slicer_Specific solution the same button as as selected in the slicer Slicer_Solution.

The code works, when running the Macro "stand_alone". (run macro)

but when I Assign the macro to Slicer_Solution, it doesn't work anymore. The slicer seems blocked, I cannot click on other buttoms of the slicer after running the macro

herby the code:

Sub Slicer_Selection()

Dim Selection As Boolean
   
Selection = False
   
Application.ScreenUpdating = False


ActiveWorkbook.SlicerCaches("Slicer_Specific_Solution").ClearManualFilter


Dim i As Integer
Dim j As Integer
Dim counter As Integer

counter = 0

For i = 1 To ActiveWorkbook.SlicerCaches("Slicer_Solution").SlicerItems.Count
    For j = 1 To ActiveWorkbook.SlicerCaches("Slicer_Specific_Solution").SlicerItems.Count
        If ActiveWorkbook.SlicerCaches("Slicer_Specific_Solution").SlicerItems(j).Value = ActiveWorkbook.SlicerCaches("Slicer_Solution").SlicerItems(i).Value Then
            If ActiveWorkbook.SlicerCaches("Slicer_Solution").SlicerItems(i).Selected Then
                counter = counter + 1
                If counter = 1 Then
                    Sheets("RDWay Specific").Select
                    Range("A5").Select
                    ActiveCell.FormulaR1C1 = ActiveWorkbook.SlicerCaches("Slicer_Specific_Solution").SlicerItems(j).Value
                    Sheets("All Estimates").Select
                Else
                    Sheets("RDWay Specific").Select
                    Range("A5").Select
                    ActiveCell.FormulaR1C1 = "Many"
                    Sheets("All Estimates").Select
                End If
            Else
                ActiveWorkbook.SlicerCaches("Slicer_Specific_Solution").SlicerItems(j).Selected = False
            End If
        End If
    Next j
Next i

If counter = 0 Then
    Sheets("RDWay Specific").Select
    Range("A5").Select
    ActiveCell.FormulaR1C1 = "None"
    ActiveWorkbook.SlicerCaches("Slicer_Specific_Solution").ClearManualFilter
    Sheets("All Estimates").Select
End If

End Sub

Dynamically select columns DAX

$
0
0

Dear all,

I want to create a measure to calculate many key figures that are ratios of aggregations of values (normally just sums).

As performance matters significantly, I add two calculated columns per key figure to a table (T).

To give an example let us say I want to calculate the ROCE. So I add ROCE_numerator and ROCE_denumerator to table T. 

This way my measure for ROCE would look like this:

ROCE:=
(CALCULATE
(
     SUM(VALUES[AMOUNT]));
     T[ROCE_numerator] = "positive"

)

-

CALCULATE

(

       SUM(VALUES[AMOUNT]));

       T[ROCE_numerator] = "negative"

)   

)/

(CALCULATE
(
     SUM(VALUES[AMOUNT]));
     T[ROCE_denumerator] = "positive"

)-

CALCULATE

      SUM(VALUES[AMOUNT]));

     T[ROCE_denumerator] = "negative")

)

If I could find a way to convert text into a column name, I could easily make a measure that calculates all key figures by changing the column names from ROCE_numerator to any other numerator. (Moreover I assume making extensive use of IF clauses would hinder performance.)

Does anyone have an idea how this could be achieved? Any ideas are very welcome! As this solution is of course work in progress I would also love to hear suggestions if someone has a good solution to this kind of exercise.

Best regards and a nice weekend!

Clemens 

Sum Totals/Average in Power Pivot

$
0
0

Hello,

I have created some calculated tables in powerpivot based on sales data. I have arranged my products vendors etc into a heirarchy and the pivot sums to sales volumes accordingly for each week. My problem is that I need to total column at the end to show an average sales value for each week rather than summing it (currently it adds the values for week 1,2,3 and 4 etc). Can I do anything about this in powerpivot - when I look in field settings the option for average is greyed out?

Thanks if anyone can support with this.

Power View - goes blank

$
0
0
I have just started working with power view, and I find that it does not work on may stand-alone Excel 2013 professional (Norwegian) version.
I manage to create a new power view sheet containing data from a table, but it goes blank when I start excluding fields I want to work with. I have removed and re-installed Silver light, and my pc has an i7-processor with 16 Gig RAM. I hope anyone can help me find a solution to this. Regards, Oystein_g

Complex accuracy Calculation in Powerpivot

$
0
0

Hello all,

Thank you very much if you take the time to look at this – I appreciate it is not a simple issue. I am attempting to use Powerpivot to calculate the accuracy of my forecasts. The table is called FRCReport and historically I have used an excel calculation to compare my actual demand to my forecast. I absolute the variances to stay out of negatives. The calculation is excel is:

 (IFERROR(IF(1-ABS((TOTDEMANDQTY-REVISEDFRC)/TOTDEMANDQTY)<0,0,(1-ABS((TOTDEMANDQTY-REVISEDFRC)/TOTDEMANDQTY))),"0.00"))

No matter what I try and read in forums and books I cannot seem to get this calculation to work in DAX language, can anyone help? Below is a sample of my data:

WeekGradeDescripItem CodeFamilyTotalDemandQtyRevisedForecastQtyMAPE
40AAppleMG472B/AFruit5955.73499884%
40AOrangeMG4F2B/AFruit5203.82630479%
40ASatsumaMG492B/AFruit4181.124200100%
40AMelonMG482B/AFruit3596.95340095%
40APear1SAN4GBNFruit3267.48229870%
40BBanana1AL140XNFruit1263.84234514%
40BDragonfruit1NORIVBNFruit1212.14190843%
40BLime1NO730BNFruit1118.99120392%
40BLemonMG902B/AFruit1104.86130482%
40BGrapes1SACE4GNFruit1099.72120091%
40BPlums1SAS5WWNFruit1044.3924560%
40CCherry9SACINBNFruit50045691%
40CStrawberry9SACARWNFruit50034569%
40CBlackberry9SAGY2WNFruit50043587%
40CRaspberry9SONE2BNFruit49034570%
40DNuts1ALX23WNMISC10010199%
40DDates1BAI791NMISC10014060%
40DCrackers1BAI792NMISC10012377%
40DCards1BAME80NMISC10013268%

Secondly, and this is the truly complex part….The MAPE value is an accuracy %, I would average these %s up to get an overall MAPE figure – I would not sum up my demand figure and my revised forecast figure to get an overall MAPE, these calcualtions would be weighted though. Grade A would contribute 50% of the overall %, Grade B products 30% and Grade C 20%. In excel I would use an averageif fuction to achieve this in a separate table, I would like to be able to see this in the grand total at the bottom without having a separate table. Also, is it possible in a table with hierarchies to use this weighting – for example can I see the individual MAPE of all products but if I collapse it down to Family level would I be able to see the overall MAPE of each family based just on these weightings?

There is a lot to take in here and Im not sure anyone can assist but I would most appreciate it.

Thank you.

Accuracy Calculation Powerpivot

$
0
0

Hi,

I have been working on this to make it clearer. On the powerpivot tab 'accuracy' you will see the measures that relate to the excel page 'MAPE by Area'. I have done stage one as you advised building 'Mapemeasure' to measure accuracy and then Gradearea average which brings back straight averages as we discussed.

I have now tried to apply weighting, I want to apply weighting to everything above grade in the row labels so that is family, vendor and area. In accuracy measure you will see my attempt to do this and the weightings but it has failed - I hope this helps you understand my issue more, let me know if not and I will see what I can do.

https://onedrive.live.com/redir?resid=3AE8882B3E11F58!119&authkey=!ABqtkoPSKxaYXTo&ithint=file%2cxlsx

Many thanks

sum column only for unique values in other column

$
0
0

Hi,

i have the following table in my powerpivot model and would like to sum the weight column only once per unique value in the id column.

id | weight
1 | 0,25
1 | 0,25
2 | 0,6
2 | 0,6
3 | 0,15
3 | 0,15

The formula to sum the weight column is obvious...

 =SUM(table[weight])


... and results in 2.

Now I would like to ad a filter to that formula to sum the weight values only once for each unique value in the id row (which would result in 1).

Any ideas?


Null pointer exception fatal error in PP model deployed to SP2013

$
0
0

I have a PowerPivot solution built in Excel 2013, which I have deployed to a SharePoint 2013 single server farm, which is also running SSIS/SSRS/SSAS 2014. 

I have configured data refresh jobs, which are running successfully, according to the PP management dashboard in SP.

I attempted to open the file from the document store in SP directly, and when I went to make modifications to the data model, tom horror I was greeted with "We couldn't load the data model. This may be because the Data Model in this workbook is damaged". Further clicks on the OK button provide a bit more context.

============================
Error Message:
============================

Object reference not set to an instance of an object.

============================
Call Stack:
============================

   at Microsoft.Office.PowerPivot.ExcelAddIn.InProcServer.CannotUpgrade(GeminiWorkbook geminiWb, WorkbookConnectionwbConn, String& message)
   at Microsoft.Office.PowerPivot.ExcelAddIn.InProcServer.LoadSandboxAfterConnection(String errorCache)
   at Microsoft.Office.PowerPivot.ExcelAddIn.InProcServer.LoadSafeSandboxAfterConnection(String errorCache)
   at Microsoft.Office.PowerPivot.ExcelAddIn.InProcServer.LoadOLEDBConnection(Boolean raiseCompleteEvent, String errorCache)

============================
Unfortunately I've seen this before, and unfortunately it's been fatal. Fortunately since the last time I've seen this, I've become a bit more adventurous. Here's what I've done, and I'd really appreciate some community help to take this the last few inches to a conclusion. Maybe some help from the Office team, since you're 15 minutes from my office :)

Using Visual Studio, I can see that the data model itself is intact. I was able to start a new solution using the supposed corrupt file as a starting point.That's a good thing, but I don't know how to recycle it into a new Excel file so I don't lose all of the work I've put into it.

Using SQL Management Studio, using SELECT * FROM [PowerPivotServiceApplication1_endpoint].[dbo].[Versions] I can see that the reported Version is 12.0.1.0.

Also using SQL Management Studio, I can see that the server version for the server used for PowerPivot is 12.0.2000. I wonder if this version disparity is causing Excel to want to upgrade my file, and this is triggering a larger issue?

I seem to recall seeing somewhere that PP for SP2010 was not supported in a single server farm. I don't know if the same is true for SP2013, and frankly don't care (at this point, since all I am after right now is my data model back). I'm wondering if the SP data refresh jobs are causing this, and the null exception is maybe a pointer to a second server in the "farm" that doesn't exist.

Lastly, I am more than willing to make changes to the underlying XML files that make up the XLSX file. If there's a way to know where the null value is being referenced (if possible) and make it go away, that would be stellar. 

Any help is greatly appreciated. Like I said, I'm very willing to go down deep rabbit holes, sit with devs, whatever it takes.

Thanks 

Any help on this is greatly appreciated. I'm 

PowerPivot 32 bit crashing once it reaches 1024 MB memory

$
0
0

Hi PowerPivot Team,

When the memory for powerpivot reaches about 1 GB it crashes. I thought 32 but can refer up to 4 GB of memory. Am I missing something.

Truncated Decimal Values?!

$
0
0

Hi All,

I've been googling all day to find a solution to this problem to no avail.  My data is an ODBC data connection.  My problem is that Power Pivot seems to be truncating the values after the decimal point for each Sales Price, Extended Ship Value (Sales Price * Quantity Shipped).  This also occurs with cost data.  The frustrating this is that my Access DB which pulls from the same data connection shows the decimals AND when I go to Table Properties - I see the decimals. 

I've tried changing the Data Type to Currency and Format to Currency.  No luck.

I've tried importing the table under Query view and rounding to two decimal places, but it doesn't change the view below.

Any help or advice would be helpful.  I don't care about the formatting in the Power Pivot table view - I just want the data to be correct.



Power Pivot 2013 Using SharePoint 2013 List as Source Data

$
0
0

Background: On a SharePoint 2013 site, there are lists that have the exact same columns but due to their size I had to create a different list for each year. These are essentially my data lists or tables that end users enter data into. These lists have look up columns in them, referencing columns from look up lists or tables located on the same site.

 

Goals:1) Create a Power Pivot Gallery on SharePoint 2013 that is able to leverage the "manage data refresh" feature using the SharePoint 2013 List data that is on the same SharePoint 2013 site.  2)Combine all the data lists/tables into one table once in Power Pivot 2013. The Look Up lists/tables will remain separate.

 

Challenge: Being able to merge or do a union query to the "data lists" and still maintain the ability to leverage the "manage data refresh" feature. This is a tactical, quick fix solution, and I cannot use SQL Server and am operating under the assumption that I do not have Access Services 2013 as an option.  

 

Failed Attempt #1: What I already tried was linking the lists to an Access 2013 database and did a Union query from Power Pivot which merged the data from the different data tables as I wanted it to.ThenI uploaded that Access Database to a document library on that same site, thinking that I could maintain the ability to leverage the "manage data refresh" feature but I was wrong.


Any thoughts or suggestions? Thanks in advance for any help!

Cheers, Johnny



Johnny

Using measure at a certain hierarchy level and summarizing calculated results

$
0
0

Hi,

I have a four-level hierarchy structure (Category, SubCategory, SubSubCategory and Item) in a PivotTable containing two measures (measure 1, measure2). I need a third measure that compares results of those two measures at SubSubCategory level to choose the maximum of those two measures. Selection should not be done at Item level or SubCategory or Category level.

Item level results should give blank values as result. After choosing the bigger measure value at SubSubCategory level, measure 3 should calculate the sum of measure 3 at SubCategory level and of course at Category level.

BR,

Heidi


Problems updating a linked table

$
0
0

Hi,

I am running a win 7 with Excel 2013, 64 bit, Swedish version. I try to update a linked table in the data modell and get an error message saying:

============================

Exception from HRESULT: 0x800A03EC

============================

Call Stack:

============================

   at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)

   at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)

   at Microsoft.Office.PowerPivot.ExcelAddIn.ExcelInterOpUtil.GetLinkedTableExcelTableName(String modelTableName, Workbook workbook)

   at Microsoft.AnalysisServices.XLHost.Modeler.ClientWindow.FixLinkedTableExcelTableName(LinkedTableInfo tableInfo)

   at Microsoft.AnalysisServices.XLHost.Modeler.ClientWindow.UpdateAllLinkedTablesClick()

============================

The file is saved as .xlsx so there shouldn't be a compatibility problem. I have also tried removing the added rows to make sure the added data didn't contain any bad data and running the file on a different computer but the problem keeps showing up.

Anyone having any ideas on how to solve this?

//Caj


Csten




KPIs in Powerpivot

$
0
0

Hi,

I have a pivot built from Powerpivot which gives me an average sales value across a range of products. Each product belongs in a product 'family'. I wish to add a KPI measurement to track performance but each family has a different absolute target - can this be done - work book link below and as always thanks for any advice.

https://onedrive.live.com/redir?resid=3AE8882B3E11F58%21118


Keep getting error when trying to use =related function in PowerPivot

$
0
0

Greetings,

I have created a relationship between two tables based on a common field in PowerPivot, and whenever I use the =related() function to try and bring data from a field in one table to a field in another table, I keep getting and error message that says:

The column 'XXXX[xxxx]' either doesn't exist or doesn't have a relationship to any table available in the current context.

Any ideas? I've made this work before in a different dataset so I'm not sure what I'm missing. I have a feeling it might be really basic, but I'm spinning my wheels here.

Thanks very much!

MFW

Out of line object 'DataSource' -- but when re-saving table properties, no issues

$
0
0

I've got a PowerPivot workbook that's connecting to an Oracle database, then calculating a few measures. When I "test the connnection" in PowerPivot, it's fine. When I go to "Table Properties" and re-save, it seems to pull the dataset fine. But refreshing within Excel gives me, 

We couldn't refresh the table 'AthleticGPABlahBlah' from the connection 'Student_PLSQLBlahBlah'. Here's the error message we got: Out of line object 'DataSource', referring to ID(s) 'c6427542-blahblah', has been specified but not used. The following system error occurred: Unspecified error

My data types seem right, and I don't have any big dates. Is my workbook just corrupt? I'd love to not re-do it, so any tips to getting this fixed would be great!

Power Pivot Errors (Jquery and out of memory)

$
0
0

Hi,

I having some issues with PowerQuery and PowerPivot for Excel 2013. I make a odata connection to CRM online. And select 3 entities. Contact account and opportunity. The time it's takes to get all the data is a lot, but acceptable. The machine uses all the CPU and harddisk resource but the data is loaded.

The problems start when I select PowerPivot window and in the tab select manage data. The data is loaded on the screen. But when I click Diagramview Excel stops working and I get a KeyCode error.

I am using Excel 2013 32 bit. I got an i5 2.60 ghz with 16gb of memory. I think this should be enough.

What I would like to know what are the recommended systemsettings for the use of PowerQuery en PowerPivot. And is there a solution for my problems with the diagramview.

Regards,

Dennis


Availability Calcualtion in Powerpivot

$
0
0

Hi,

I am trying to do a calculation in Powerpivot and cant manage it. I am trying to calculate availability of products but it needs to be a measure because I need to be able to read the figure at its base sales areas but also allow it to recalc when I for areas as a whole. In excel I would use:

Availability:  1 - (total back orders/(total shipments+ back orders))

This will give me the availabilty of each SKU, when I pivot I need to see the average of all the distinct SKU availability figures.

So, any ideas how I would do the first availabilty calculation as a measure and I will worry about the second bit later.

Thanks

recalcualte.

installing Powerpivot for Sharepoint 2013 on Office 365 Sharepoint 2013

$
0
0
We have the E3 level of Office 365 with Sharepoint 2013 installed. the install instructions for PowerPivot Sharepoint 2013 state that the SP install must be installed with SP Farms. How can i tell if it was installed with SP Farms? Not sure who installed. It may be setup by default with the initial purchase. the install instructions refer to the LOCAL machine. What local machine would that be?
Viewing all 4715 articles
Browse latest View live


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