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

Issues Optimizing Workbook for Q&A

$
0
0

I have an Excel workbook with a functioning Power Pivot data model and two Power View dashboards.  The Power Pivot data model doesn't show any errors or issues when I am inside of Excel, it has been successfully updating its data on a daily basis using the Power BI Gateway, and I have even updated some of the Synonyms from within the workbook in preparation for loading it into the Power BI Q&A tool.  However, whenever I tell the Power BI site to "optimize" the workbook for Q&A, it comes back with the following error:

oops, something went wrong
Failed to get Modeling Metadata. The data model is invalid.
Error Code200
Activity Id97804846-faf9-418e-cb17-dc021d3974bc
Request Iddb7a2c77-7ebd-323c-1385-7ad165c70317
TimeMon Aug 25 09:58:41 CDT 2014

I can't figure out where this keeps coming from, and there isn't much information out there about troubleshooting Q&A available just yet.


Excel Command Text won't update after updating the PowerPivot Table Definition

$
0
0


When i create a connection in powerpivot everything work fine. I can close the file reopen it and refresh the connections without issues. However, if want to modify the table properties of the connection (like adding a column), the command text in excel doesn't update (and it's grayed out so I can't manually update it either) . which creates a problem when I close the excel file and reopen it. Because now if I try to refresh the file it fails. One I create a connection in powerpivot and I need to modify it, I have to delete the whole connection and re-add it. which is a lot of pain since there's so many things I need to change if I do that and it wastes a lot of time.

Command text box

Command Text

PowePivot table properties update

thisworkbook.refreshall. Refreshes excel table, doesn't refresh linked powerpivot model table

$
0
0

I have an excel table that's populated using Power Query from the web.

I've added this table to my data model as a linked table.

I've added a button that drives a simple macro that has a thisWorkbook.RefreshAll call at the end (there's some filters that need to be set beforehand that drive which URL is used to source the data)

This call runs the power query that refreshes the excel table, but the linked table doesn't refresh unless i open powerpivot. It then refreshes automatically.

Why is this? Am I missing something? I have multiple tables in my data model sourced via different means and the result is an out of sync data model. It's only this Power Query table that isn't getting refreshed.


Jakub @ Adelaide, Australia

Power Pivot runs into memory exception using Excel as Data Source but Power Query works

$
0
0

I have Excel 32 bit and 16 G RAM and I have been able to successfully connect to a text file for example of 900,000 rows and get it in the data model using Power Pivot.

Now, I have a Excel File of 825,000 rows and 33 columns and that is my data Source.

Every time  say other sources > Excel files and connect to it, Test Connection Succeeds and then i pick the sheet and 

1.) Preview and Filter will fail (every time I use Power Pivot to connect to the file (System out of memory exception)

2.) If i omit preview and filter and click next, it keeps spinning for a while and then (System out of memory exception)

As an alternate approach i used power query to connect to the same excel data source, marked first rows as headers and then load to data model, in a few minutes successfully loads.

I cannot give this as a solution since i am trying to establish power pivot that my users have as the means to do their self service BI. Why is it working on Power Query and not on Power Pivot and just 800,000 odd rows.

Any help would be appreciated. I have even killed my lync, outlook, browser etc to save memory.

Rearrange data in source order using data from a relational database and not OLAP

$
0
0

Hi everyone,

I use two different databases, i.e. a relational data warehouse and an OLAP database. Doing this I found out that when using an OLAP database I can rearrange data in Pivot tables according to the data source order using "More Sort Options".

Exploring data from a datamodel created in PowerPivot using data from our relational data warehouse I could not find a way to achieve this. I did sort the column I want displayed in the Pivot table according to a column used for sorting and when I first load data into the Pivot table everything is in the order as desired.

The problem is that when I change the order, there seems to be no way to restore the desired order in a user friendly way. (As there is in OLAP using data source ordering from the "More Sort Options" menu.) 

Is this a common issue or am I missing something? Did anyone find a solution or feasible workaround for this?

Thank you very much!

Best regards,

Clemens

P.S.:

Some time ago I asked whether it is possible to rearrange data with respect to datasourece order in a Pivot table.

(https://social.msdn.microsoft.com/Forums/sqlserver/en-US/0ce2246e-32f2-4513-b43f-376deab07eb6/rearrange-data-in-source-order?forum=sqlkjpowerpivotforexcel)

Unfortunately for our purposes it is not feasible to have our clients load and delete columns to rearrange data.  

Power Pivot Tables Fail To Show When Using Excel Tables

$
0
0

How do I fix the error below:

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

DataContractSerializer config section under System.Runtime.Serialization section group could not be loaded. Verify that machine.config is correctly set up.

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

   at System.Runtime.Serialization.Configuration.DataContractSerializerSection.UnsafeGetSection()
   at System.Runtime.Serialization.DataContract.get_ConfigSection()
   at System.Runtime.Serialization.DataContract.LoadKnownTypesFromConfig(Type type, Dictionary`2 typesChecked, Dictionary`2& knownDataContracts)
   at System.Runtime.Serialization.DataContract.ImportKnownTypeAttributes(Type type, Dictionary`2 typesChecked, Dictionary`2& knownDataContracts)
   at System.Runtime.Serialization.ClassDataContract.ClassDataContractCriticalHelper.get_KnownDataContracts()
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.DataContractSerializer.InternalWriteObjectContent(XmlWriterDelegator writer, Object graph, DataContractResolver dataContractResolver)
   at System.Runtime.Serialization.DataContractSerializer.InternalWriteObject(XmlWriterDelegator writer, Object graph, DataContractResolver dataContractResolver)
   at System.Runtime.Serialization.XmlObjectSerializer.WriteObjectHandleExceptions(XmlWriterDelegator writer, Object graph, DataContractResolver dataContractResolver)
   at System.Runtime.Serialization.XmlObjectSerializer.WriteObject(XmlDictionaryWriter writer, Object graph)
   at Microsoft.AnalysisServices.Common.DiagramManager.CopyObject(Object original)
   at Microsoft.AnalysisServices.Common.DiagramManager.ActiveToSuspended(ActiveDiagram active)
   at Microsoft.AnalysisServices.Common.DiagramManager.SuspendDiagram(DiagramKey key)
   at Microsoft.AnalysisServices.Common.SandboxEditor.UnloadMeasureGridContent()
   at Microsoft.AnalysisServices.Common.SandboxEditor.LoadMeasureGridContent(SandboxEditorMeasureGridKey key)
   at Microsoft.AnalysisServices.Common.SandboxEditor.ApplyMeasureGridState()
   at Microsoft.AnalysisServices.Common.SandboxEditor.ReplaceCurrentTableWidget(TableWidgetPanel tableWidgetNew)
   at Microsoft.AnalysisServices.Common.SandboxEditor.PopulateTableWidget(String tableId)
   at Microsoft.AnalysisServices.Common.SandboxEditor.sheetsTab_sheetChanged(Object sender, EventArgs e)
   at Microsoft.AnalysisServices.Common.SheetTabs.SetSelectedSheetInternal(String key)
   at Microsoft.AnalysisServices.Common.SheetTabs.PopulateSheetListUI(String keyOfNewSheetToSelect, Boolean toRecreateUIElements)
   at Microsoft.AnalysisServices.Common.SandboxEditor.RefreshSandboxEditor(String tableId)
   at Microsoft.AnalysisServices.XLHost.Modeler.ClientWindow.RefreshClientWindow(String tableName)

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

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 

Synomyns corrupted a PowerPivot model

$
0
0

After configuring the synomys in Power BI site, it is no longer possible to open the Power Pivot window. The Excel sheets and Power View tabs still work.

Note: although this is the same error as the other message in this thread, the stack information is clearly different. There are no errors in calculations.

Error: Unable to load the tables in the PowerPivot window.

Details >>

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

An item with the same key has already been added.

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

   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at Microsoft.AnalysisServices.Common.LinguisticModeling.SynonymModel.AddSynonymCollection(DataModelingColumn column, SynonymCollection synonyms)
   at Microsoft.AnalysisServices.Common.LinguisticModeling.LinguisticSchemaLoader.DeserializeSynonymModelFromSchema()
   at Microsoft.AnalysisServices.Common.SandboxEditor.LoadLinguisticDesignerState()
   at Microsoft.AnalysisServices.Common.SandboxEditor.set_Sandbox(DataModelingSandbox value)
   at Microsoft.AnalysisServices.XLHost.Modeler.ClientWindow.RefreshClientWindow(String tableName)

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





Half Scheidl


Charts in PowerPivot 2010

$
0
0

I am uable to create charts out of Power Pivot.. It is only showing the table, but the data sheet for the charts is not available.  Do you have a solution for this problem? 

PowerPivot or PowerQuery to connect in MainFrame

$
0
0

HI,

Is available in PowerPivot or PowerQuery to connect in IBM DB2 Mainframe with default OLEDB Drivers?

Regards


teste

Define Relation between two Tables

$
0
0

Hi

I've loaded two tables with OData into powerpivot. One table with SpecialProducts with contains a column FK_ProductID.
Only special products are added in this table. The second table products hat a column PK_ProductID with Productnumber, name,....

The plan is, the the report in power Pivot shows only this SpecialProducts. I've conntected this two columns, but I see allways all products.

How can I set to "INNER JOIN" this two tables?

Best regards

Christoph

DAX formula to show all products in all months

$
0
0

Hi guys

I am new to DAX and I am having a bit of trouble getting a dax formula to show all products even though they haven't been sold for a particular month..

My data consists of one table and looks like this. (Month is a calculated column)

CountryProductQuantityDateMonth
GBP142014-1-1January
GBP232014-1-1January
GBP322014-2-1February
GBP142014-2-1February
CANP122014-1-1January
CANP432014-1-1January
CANP122014-1-1February


I have made a calculated field called YTD that calculates year-to-date SUMS for the different products.
I also have made a calculated field called sum, that calculates the sum of products sold for the context specified in the PivotTable.


In the resulting PivotTable i get this result, if i for instance make a slicer on february:

February:

CountryProductSUMYTD
GBP148
GBP322
CANP124



However what i want is this (I have highlighted what is different):

February:

CountryProductSUMYTD
GBP148
GBP203
GBP322
CANP124
CANP403


So when I have made a slicer on dates, and I choose for instance february it shows only the products sold in february. But i want i to show all the products that has YTD>0, and just put a 0 in the SUM for the products that hasen't been sold that month.

I know i could solve this by inserting rows in the data source with quantity 0 for the products that hasen't been sold in a month. But this seems like a bad hack - and since there a lots and lots of products this would result in many unnecessary rows...

I have tried to google it but havent found a solution to this in DAX. 

Thank you for your help

Dates of Price Changes per Article

$
0
0

Hi,

I have a table with the following columns:

  • Date
  • ArticleID
  • OriginalPrice
  • NowPrice
  • PriceReduction

I'd like to create calculated columns as follows:

  • the date of last/first price reduction per ArticleID
  • the date of lowest/highest NowPrice per ArticleID
  • the number of price changes (i.e. different price reductions) per ArticleID

I could create calculated columns to calculate lowest/highest NowPrice per ArticleID. But I don't know how to solve the questions above.

I enclose a dropbox link to an example Excel 2013 file: PP_PriceChange.xlsx

Thank you for any advice!

Chiemo

Grouping Data in Power Pivot

$
0
0

I've been researching for a while but can't seem to figure it out... Can anyone tell me what's the best way to group data in a Power Pivot data model? My data model is populated from a SharePoint list. The list schema is similar to as follows:

  • ChargeCode
  • Type
  • Amount

There are duplicate charge codes. What I'm trying to do is group the data by Charge Code, Type, then summarize the Amount.

It sounds like I should use the Summarize DAX function but I can't get it to work since I need to group by more than 1 column.

Anyone have any ideas or suggestions?

Thanks,

Roland

Export to CSV

$
0
0

Hi
I'm using PowerPivot to read ODATA-Streams in Excel. When I create a list with PowerPivot oder PowerView, how can I export this data into csv-File?

Best regards

Christoph


Excel data connection does not update when editing Powerpivot connection

$
0
0

Hi there!

Since we are migrating to a new SQL server, I am modifying the data connection links/strings of our Excel files (change server name to new server name - lesson learned: I now use a DNS alias instead of the new server name).

I have no problem modifying normal xls data connections, but when I try to change the Powerpivot connection strings/links/definition, the boxes are greyed out. On the bottom it reads 'some properties cannot be changed because this connection was modified using the powerpivot add-in'.

I figured out  it's fairly easy to change the Powerpivot data connections by opening the powerpivot add-in and editing the 'existing connection' (home tab), as also described in technet/internet articles. I can reference to the new server/dns_alias, enter name and table info, test, refresh successfully... the works. When I check the connection in Excel however, it remains unchanged. On closing and reopening the Excel file, powerpivot once again queries the old SQL server (existing connection changed back to the 'previously unchanged Excel definition')...

--> Any advise on how to permanently change the connection info (server name) for power-pivot data? How can I push the new Powerpivot connection info back to Excel or edit the greyed out Excel connection definitions anyway?

Thank you so much for any advise!

Rgds,

Sven

Power Pivot - DAX Autocomplete doesn't work for other language ?

$
0
0

Hi everyone,

It seems like the autocomplete doesn't work very well for french.

We have to use ";" separator in DAX expression. The autocomplete works normally if we use  "," separator but we can't validate the expression due to the separator is not a semicolon.

This a strange behavior. Furthermore there is an update of Office this month...

Maybe a coincidence ?

Calculate percrentage based on a distinct value

$
0
0

Hi every one,

I am trying to compute a percentage from a table which have got a strange format.

here my example:

ID Tribune Total Nomber
110 TRIBUNE OUEST      49 833   505
110 TRIBUNE OUEST      49 833   37
110 TRIBUNE OUEST      49 833   99
110 TRIBUNE OUEST      49 833   7925%
110 TRIBUNE OUEST      49 833   3079%
110 TRIBUNE OUEST      49 833   589
110 TRIBUNE OUEST      49 833   1 247
110 TRIBUNE OUEST      49 833   1 213
110 TRIBUNE OUEST      49 833   545
114 TRIBUNE OUEST 54 000 991
114 TRIBUNE OUEST 54 000 518
114 TRIBUNE SUD 54 000 67
114 TRIBUNE SUD 54 000 953
114 TRIBUNE SUD 54 000 1 140
110 TRIBUNE SUD      49 833   1 302
110 TRIBUNE SUD      49 833   960
110 TRIBUNE SUD      49 833   1 291
110 TRIBUNE SUD      49 833   1 293
110 TRIBUNE SUD      49 833   771
110 TRIBUNE SUD      49 833   639
114 TRIBUNE EST 54 000 1 361
110 TRIBUNE EST 49 833 1 497

So I have in my case ID which represent an event (here 110 and 114)

For one ID there are many times the same number in the column "Total" which represent the total of place of the event. 

!!! It is not the sum of each "Tribune" for instance for 110 the total places is 49833 and not 49833 * number of lines. !!!

Same thing for others ID.

The problem is, because of this, I cannot do divid(sum(total);sum(Nomber)) to get my percentage. Have any ideas how can take just one time the value in the column "total" ?

Regards,

Mijo

DAX m2m, inactive relationships, and userelationship function not working

$
0
0

Have a look up date dim table that has active and inactive relationships to two different fact tables from two different DB's.  I have a payments table joined to an orders table with a m2m.  I know this is kind of structured weird but just work with me here.  

My two functions in my orders table are as follows with a supporting max function:

PMIGrossOrderRevMax:=max(OrdersPMIFacts[SalesTotal])

PMIGrossOrderRev:=CALCULATE(sumx(DISTINCT(OrdersPMIFacts[OrderID]),[PMIGrossOrderRevMax])

)

PMIGrossOrderRevAssigned:=CALCULATE(sumx(DISTINCT(OrdersPMIFacts[OrderID]),[PMIGrossOrderRevMax]),
USERELATIONSHIP(OrdersPMIFacts[LeadAssignmentDate],DATE_DIMENSIONS[date_value])
)

These functions both work fine.  
Connected to this orders table is a bridge table that is connected to a payments table.  This is a m2m modeling.

My two functions in my payments table are as follows:  

PaymentsNet:=CALCULATE(sum(PaymentsPMI[Amount]),
OrdersPMIFacts)  ->  Works correctly!

PaymentsNetAssignments:=CALCULATE(sum(PaymentsPMI[Amount]),
USERELATIONSHIP(OrdersPMIFacts[LeadAssignmentDate],DATE_DIMENSIONS[date_value]),
OrdersPMIFacts)  

This last function is where I am having difficulties.  I am using Gerhard Brueckl method to solve for the m2m with slight twist from Marco Russo.  However, it does not appear that the userelationships function work across the m2m and returns the same result as the [PaymentsNet] function.

Anyone have a solution for this or run into this problem before.  I know I have dealt with this before and ended up solving through my sql query.  Don't really want to go that route here though.  A DAX solution would be much preferred.  Maybe I am missing something very simple.  Usually is the case when I bang my head against the desk.

Here is the model if you need more context to the problem.

DISTINCTCOUNT combined with ADDCOLUMNS + FILTER

$
0
0

Hello,

I've been going nuts trying to optimize fhe following expression in PowerPivot :

CALCULATE(DISTINCTCOUNT([Identifiant Personne Physique]);(FILTER(
	ADDCOLUMNS(
		'Contrats';"Nb Contrats P-1 T";
		SUMX(DISTINCT(Contrats[Identifiant Personne Physique]);
		SUMX('Contrats';VALUE(Contrats[Base dénombrement P-1])))
			   );[Nb Contrats P-1 T] = 0 && [Base dénombrement Flux Entrée] = "1")))

The idea is to count distinctly the persons (without removing the context filters) whose SUM([Nb Contrats P-1 T]) is equal to 0 and flag [Base dénombrement Flux Entrée] = 1.

It does the job but I have 2 issues :

1. It is extremly slow when I change the values of the slicers (20 millions rows in the model). Does anyone know who to improve the performances of that query ?

2. The measure returns a NULL values when the field [Identifiant Personne Physique] is not used as a dimension in my Pivot tables. What did I miss to make it possible ?

Thanks a lot for any help,

Fred


Viewing all 4715 articles
Browse latest View live


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