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

Dynamic Search of a list of Part Numbers in PowerPivot

$
0
0
Hi, I setup a raw data extracted from a SQL Server Data Base in Power Pivot 2013, the data contains a huge list of Part Numbers and I need t create a dynamics search box where my users can look for a list of part numbers that can be inputted via copy/paste.  Any idea?...thanks in advanced.

Cumulative Percent only displaying when there is a number present

$
0
0

Hi

I am using the below cumulative percent formula for a chart and pivot table display (see below code). The problem is that the cumulative percent and cumulative number are only showing up in the pivot table when there is a number to cumulate (see below screenshot). While this makes sense logically, I would like to see the value in the prior row appear when there is no value to cumulate so that there is always a value displaying for the user--see second screenshot.

Does anyone know if there is a way to do this?

Paul

Code:

=(CALCULATE(countrows(s1Perm1),FILTER(ALL(s1Perm1[ExitMonthCategory]),s1Perm1[ExitMonthCategory] <= MAX(s1Perm1[ExitMonthCategory]))))/(CALCULATE(COUNTROWS(s1Perm1),ALL(s1Perm1[Exit],s1Perm1[ExitMonthCategory])))

Current result:

Desired Result:

Import Data from Analysis Services

$
0
0

I am in the process of setting up a system and I'm having issues with it - hopefully someone here can shed some light.  We have a production SSAS 2008 server with multiple customers' data cubes in it.  The customers have asked for direct access to their cubes from the outside so that they can import the cubes into Excel and analyze it.  We stood up an RDS portal which works fine and on the Session Host servers, we've installed Excel.  For each customer, we stood up an SSRS 2012 server and we have restored their production cubes from a backup on the SSAS 2008 server.  When we connect to the RDS portal and open Excel and go to Data -> From Other Sources -> From Analysis Services and connect to the SSAS instance, we can see the cubes. When I click Next -> Finish to import the data, though, as a PivotTable Report I am getting one of the following errors on each of the 3 servers.  This process of importing SSAS data through Excel is very new to me and I really don't even know where to begin. 

These are the errors:


Metadata used when reading an OLAP Cube (Field Id or Field Name)

$
0
0

Hi everyone,

right now we are facing a Cube items rename. Some of our measures and dimension must be renamed but we don't want to loose all of our reports and we also don't want to adjust all of them again. The question is if Excel use the Id of the measures and dimensions or use the "name". It would be nice if power pivot points to the Ids, then I can change the names and the reports still work, but I think this is not the case.

Any comment would be highly appreciated.

Kind Regards,

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.

Pivot Table using External Connection shows incorrect Datatypes

$
0
0

Hi,

I have a Pivot Table in excel that is pulling data from another excel file with an embedded PowerPivot Datamart hosted in SharePoint 2012; but the datatypes defined at the PowerPivot Datamart are not reflected on the Pivot Table in excel, instead it identifies all columns as text. I only encounter this issue when I build a Pivot Table using an external connection, if I build a Pivot Table on the same file as the embedded PowerPivot Datamart it can reflect the datatype defined on the datamart.

Is there a way to enforce the datatype already defined on the embedded Datamart to the Pivot Table? Is there a way to change the datatype of the column on the Pivot Table?

Thanks and Regards,

Justin

Dax sumif equivalent

$
0
0

Hi,

I just started using powerpivot and i'm trying to make a sum of a certain column wherever the month is the same.
In excel i would just do a sumif(Month Colum;Month Cell;Sum range) but DAX doesn't work like that :)

The example below shows sort off what my table looks like, i have a row for each employee for each month and I want to get the "Sum/Month" column.

Employee     Month     Budget         Sum/Month

A                 1            119219.5     325418,8
B                 1            131998.0     325418.8
C                 1            74201.3       325418.8
A                 2            231657.1     632741,7
B                 2            144597.4     632741.7
C                 2            256487.2     632741.7

I tried to get this working with Calculate but i can only manage to get an exact copy of the "on charged budget" column.. :)

Could someone point me in the right direction please?

Sincerely

Glenn

dax - parallelperiod(measure,-12,month). how to filter to not show dates in the future

$
0
0

Hi all,

I have the following measure i'm using in a kpi

ParallelPeriod-1Year_EffortInHours:=CALCULATE( sum([EffortInHours]) , PARALLELPERIOD('Date'[Date],-12,Month))

The problem is my date dim goes a few years into the future, so i'm getting values from this measure up til 12-2015 (i have valid effort in hours values in my fact for 12-2014)

I don't know how to exclude values for future dates.

I've tried using Date[Date]<=dateadd(now(),-1,year) but get an error about dateadd not being allowed as a boolean

I get the functionality i want if i was to do something like

ParallelPeriod-1Year_EffortInHours:=CALCULATE( sum([EffortInHours]) , PARALLELPERIOD('Date'[Date],-12,Month),ROUNDDOWN('Date'[Dateint]/100,0)<= (year(NOW())-1) * 100 + month(NOW()))

is there a better way than manually constructing using year(now)-1,month(now) and using some kind of date functions ? the working code seems so vbscript and hard to understand....


Jakub @ Adelaide, Australia Blog


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

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

How to create chart based on date

$
0
0

Hi,

I need to create one chart for showing list of task due dates. For this I need to bind date value in y axis and task name in x axis. So that I can show the line chart. but in excel power pivot the value field only accept the number value (Sum, Count). But I don't want any of this function I need to simply bind by date in y and task x. How can I do?

excel powerpivot 2010

$
0
0

Environmnent: Source is access 2010, Excel is 2010 with version 10.50.400 of powerpivot

I loaded by files created the relationship, I can display the content for one file, filer, slicers. but when I ask for information about a related to the file I get all the content of the file. I tried multiple different realtionship but to know avail. I took the identicle file to excel 2013 and it works on first try. does anyone have any ideas what I am doing wrong.

Thanks

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


Help to speed up CALCULATE formula

$
0
0

I am building a reporting system of production profiles for a set of assets. The key data structure is as follows:

Version  Field               Action    Profile          Date          Production     RiskCategory

v1          Field1         Action00    00_Low      31/1/2014        5000         1

v1           Field1         Action00    00_Low     28/2/2014         4980        1

v1           Field1         Action00    00_Low     31/3/2014          4950       1

v1           Field1        Action00      00_Base     31/1/2014        5300       2

..

v1           Field1        Action00      00_High     31/1/2014         5600       3

..

v1           Field1        Action01      01_Low     31/1/2014        8000         1

...

 v2           Field1         Action00    00_Low    31/1/2014          2000         1

 ...

Ie. the data consists of production profiles. Each [Version] has many [Field]s who in turn have many [Action]s who in turn have a High, Base, Low [Profile]s who in turn have a [Production] for each [Date].

Data size:

Each profile has a monthly entry from 2014 to 2034. There are typically 10 Actions per field, and maybe 4 fields per version. So number of rows per version is: 12months*30years*3profilesperaction*10actions*4fields = 43200. Number of versions per data set is not decided yet, however as time goes by there will be a steady increase in nr of versions... it all depends on the speed and practicality.

Related tables:A related table (on Version and Profile) adds [Risk Category] to the [Profile] (and other attributes not relevant here. There is also another related table on [Version] [Field] [Date] not relevant here.

Problem Description: I use PowerPivot to tie 3 tables togetether via composite keys (calculated column = [Version]&[Profile] etc). So I dont have to repeat [RiskCategory] for each date in the profile table and makes QCing inputs far easier. The purpose of the database is to take the production profiles and slice them in different ways to satisfy different input systems.

The most challenging is that I need to calculate the incremental contribution from the Base and High  [Profiles] in each action.

Generate a calculated column that for each Date in each Action calculates:

if [RiskCategory] (thisrow) = 1, then [Production])

If [RiskCategory] (thisrow) = 2, then [Production] (where [RiskCategory]=2)  - 

                                           [Production] (where[RiskCategory]=1)

If [RiskCategory] (thisrow) = 3, then [Production] (where [RiskCategory]=3)  - 

                                           [Production] (where[RiskCategory]=2)

My solution below is a Calculated Column that uses Calculate Allexcept and Earlier to remember the row context. However, the calculation is a little slow: 5 sec maybe - which will get worse as I add more versions and possibly more fields with more actions. and I would like to see if I can speed it up:

=if( Profile[RiskCategory]>1,

Calculate(SUM(Profile[Production]), Allexcept(Profile,Profile[Date],Profile[Version],Profile[Action]), Profile[RiskCategory] = Earlier(Profile[RiskCategory]))-
Calculate(SUM(Profile[Production]), Allexcept(Profile,Profile[Date],Profile[Version],Profile[Action]), Profile[RiskCategory] = Earlier(Profile[RiskCategory])-1)

,Profile[Production])

Any suggestions?

Hope this is clear.

Thanks

Lars




Initialization data source failed and constant OLAP query running

$
0
0

I am running 64bit powerpivot on Excel 2010 and my workbook has suddenly started throwing these errors on opening. Even if I load old workbooks that were fine months ago i get the same.  If I try to sort a pivot table column I get the whole OLAP cube recalculating "OLAP query" running" or if I try to add any existing measure etc. Taking 30 minute for any change I make. As this problem exists even for old books I'm assuming it a structural not a workbook issue.  

I have uninstalled and reinstalled powerpivot .  I saw somewhere to check the registry HKEY_CLASSES_ROOT\MSOLAP\CurVer registry key. mine says MSOLAP.5

I dont know much about structural things os can anyone point me in the right dirction as the whole thing is just unworkable now.

Thanks

mIke

power pivot report freeze while scrolling

$
0
0

when scrolling the power pivot reports that are long the excel window freezes, the field list turns white, there's no data loss though, I can click the close button and it will give me the option to save the data if I haven't saved anything, they I go in the task manager and end task any running excel processes and it would start working again, this happens on multiple computer in the orgs (with different os windows 7, 8.1 server 2012 r2).

Power Pivot Connection using Active Directory

$
0
0
How do I make a connection to our Teradata database using Active Directory?  What do I enter on the Table Import Wizard and its Advanced Properties (as needed)?

PowerPivot reports are getting loaded very slow very often in SharePoint 2013 - SQL Server 2012

$
0
0

PowerPivot reports in sharepoint site are getting loaded very slow very often in SharePoint 2013 after doing IIS Reset things are okay but after certain time again it will repeat..

There must be some thing we need to check in SQL please help me out.

Below are the ULS logs

An external data
query was queued because there were already 5 active external queries. To
improve performance, consider updating the number of concurrent queries using
the administration console. [Session:
1.V22.29slCMz7zJgS9fEUy2c9ge14.5.en-US5.en-US36.c4a83038-19ab-4703-8b4d-f21e833ed7011.A1.N
User: 0#.w|apl\ckchia]

ExcelServerValueSetting.SetValue:
Setting MaxSiteCollectionCPUUsage of group EcsFileTrustedLocations not updated
since setting original value matches the new value being set. Value='0'.

ExcelServerValueSetting.SetDefaultValue:
Setting a default value for setting 'm_maxSessionMemory'


Thanks, Ram Ch

Cannot Load Power Pivot - Error with Microsoft.AnalysisServices.Modeler.FieldList.Vsto did not succeed

$
0
0

I am working with a user who has tried to install PowerPivot on Excel 2010 but is running into an error when they try to enable the add-in. 

He is on a 64 bit version of Windows 7 with a 32 bit version of Office 2010.  He has .NET Framework 4.5 (4.0 is stated as a prerequisite).   He has “Visual Studio 2010 Tools for Office Runtime” installed as well (the other stated prerequisite).  The 32 bit version of Power Pivot was installed.  When he tries to enable the PowerPivot for Excel COM plugin:

Downloading file:///C:/Program Files (x86)/Microsoft Analysis Services/AS Excel Client/10/Microsoft.AnalysisServices.Modeler.FieldList.vsto did not succeed.

The user had 2008 R2 installed, but it was successfully uninstalled before installing the new bits. 

Any ideas on how to fix this error?


Thanks, Barbara

Viewing all 4715 articles
Browse latest View live


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