Questions tagged [powerpivot]

An in-memory OLAP cube that can for instance be installed and used in Excel. It allows for fast analysis of huge datasets.

PowerPivot is part of the Microsoft Business Intelligence suite and uses SQL Server in the background, but it is geared towards the data-savvy business oriented person. It allows you to easily load data from different sources, put them in a relational database-like format and create relationships between the tables.

When all data is loaded, an OLAP store is created in the background and you can do real time analysis by selecting and filtering to your heart's content.

Also included is a powerful query language called DAX (Data Analysis eXpressions) which use an Excel style syntax to allow the user to perform complex calculations.

Power-Pivot datasets can also be served as part of SharePoint and Microsoft has even put at least one all-in hardware appliance on the market in collaboration with hardware vendors.

The following links provide useful reference information:

Further interesting PowerPivot articles can be found here:

1828 questions
2
votes
1 answer

DAX % of total count if measure qualifies criteria

DAX 2013 standalone power pivot. I have a sales table with Product and Brand columns, and Sales measure which explicitly sums up sales column. Task in hand: I need to create 1 measure RANK which would ... if Product is filtered expressly, then…
Lana B
  • 496
  • 6
  • 17
2
votes
1 answer

How to build a matrix, similar to the table from Google analytics

In PowerBI I'd like to build Non-standard matrix very similar to the report in Google Analytics. What do I have now: I want to change my subtotal to measure, which is calculated as the difference in percentage of the two values What I want to get:
Zzema
  • 197
  • 1
  • 2
  • 16
2
votes
1 answer

Excel VBA 2016 list selected items of a page filter into a worksheet range

I am writing a VBA code in Excel 2016 that would save user's customised pivot table layout into csv, and then load it back when they need. My pivot table is a PowerPivot one. "Market" field has many countries to select from. It is in page filter…
Lana B
  • 496
  • 6
  • 17
2
votes
1 answer

Calculated Field in PowerPivot

I have tried researching this question, but have had issues understanding DAX. I am using PowerPivot instead of a normal pivot table so that I can use the distinct count feature. I would like to create what in a classic pivot table would equate to a…
2
votes
2 answers

Time gap in Pivot Chart using Power Pivot

I'm hoping someone can help with this. I'm having a problem displaying a time interval on my pivot chart where there is no data. I am charting orders by week number for each year. As you can see from the attached picture, there are missing week…
JFrizz
  • 123
  • 12
2
votes
3 answers

DAX measure: project duration (days) from dimension starting & ending date

I have following scenario which has been simplified a little: Costs fact table: date, project_key, costs € Project dimension: project_key, name, starting date, ending date Date dimension: date, years, months, weeks, etc I would need to create a…
Henri
  • 740
  • 10
  • 22
2
votes
1 answer

How to calculate difference in time from the same column grouped by another column?

I have an excel power query (also added to powerpivot data table) with two fields: Location and OpenedTime. Location column has many duplicates such as this example: Location OpenedTime LOC_1 9/25/2016 1:48:56 AM LOC_2 9/30/2016…
Nick Momin
  • 183
  • 3
  • 13
2
votes
2 answers

Rolling 12 Month sum in PowerPivot

In PowerPivot Excel 2016 I write a formula for rolling 12 month sum of sales as below : Rolling Sum:=CALCULATE ( [Sales] , DATESBETWEEN ( Sales[Date], FIRSTDATE(DATEADD(Sales[Date],-365,DAY)), LASTDATE (Sales[Date] ) ) ) But it seems…
Ahmad AB
  • 45
  • 1
  • 6
2
votes
1 answer

PowerPivot Filter Function

In PowerPivot Excel 2016 I write a formula to summarize year to date sales using filter function as below: SalesYTD:=CALCULATE ( [Net Sales], FILTER ( ALL ( Sales), 'sales'[Year] = MAX ( 'Sales'[Year] ) && 'Sales'[Date] <= MAX (…
Ahmad AB
  • 45
  • 1
  • 6
2
votes
0 answers

Count distinct orders per customer in DAX/Powerpivot

I'm trying to create a calculated column in powerpivot to count the distinct orders per customer. The table (Sales) contains product information so has multiple rows per order and multiple orders per customer. I want this to be a calculated column…
Mike B
  • 21
  • 1
2
votes
1 answer

DAX Query on (Day Over Day)

I have the Sales table and a Date table I wrote the below query to calculate the DOD Sales Sales Volume := SUM([Sales]) Sales Volume (Prev) := CALCULATE([Sales Volume], PREVIOUSDAY('Date'[Date]) Sales Volume (DOD) = DIVIDE([Sales Volume]-[Sales…
user4815740
  • 311
  • 2
  • 8
  • 17
2
votes
1 answer

DAX running total based on 3 columns, one of which is a repeating integer running total

Very new to DAX/PowerPivot, and faced with devilishly tricky question on day one. I have some data (90,000 rows) I'm trying to use to calculate a cumulative fatigue score for folk working shifts(using PowerPivot/Excel 2016). As per the below…
jeffreyweir
  • 4,668
  • 1
  • 16
  • 27
2
votes
2 answers

MDX syntax for DAX measures calculated with AVERAGE()

I have the following expression in Excel that works fine. =CUBESET("ThisWorkbookDataModel", "TopCount( [ProductBV].[Product Name].Children,10, sum( ( [Calendar].[Week Ending].[All].[1/6/2013]:[Calendar].[Week…
Chris
  • 737
  • 3
  • 16
  • 32
2
votes
2 answers

Match Forecasted Values to Actuals

I receive a daily file that forecasts values for given categories. Where FileDate = FcstDate, the value FcstVal is actually the real, actual value. Right now I'm using Excel Power Query (XL'16: Get & Transform) to easily pull dozens of files…
alazyworkaholic
  • 537
  • 2
  • 8
2
votes
3 answers

Skip 6 rows before "reading" into powerquery

I am trying to automate a few reports that are built off of CSV exports from Netsuite (our ERP software). The files never import directly into PowerQuery correctly because there are 6 rows that are "header" rows. These header rows do not have the…
Tim
  • 776
  • 3
  • 8
  • 15