Hi,
I have data table in PowerPivot that includes list of thousands of different retail items, their product categories, the date they were purchased, selling store, and their sale prices. I've created pivot table to cut the data, and slice by store, product category, etc. with the value being to show weighted ave price. For ex:
[TABLE="width: 170"]
<tbody>[TR]
[TD="width: 169, bgcolor: transparent, colspan: 2"]Average Selling Prices[/TD]
[TD="width: 67, bgcolor: transparent"][/TD]
[TD="width: 67, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD]Row Labels[/TD]
[TD]2012[/TD]
[TD]2013[/TD]
[TD]2014[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Clothing[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Electronics[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]White Goods[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Sporting Goods[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Toys[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD]Grand Total *[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I’m now trying to filter the data such that the table calculates the average selling prices (ASPs) using only the first 100 items of each product (SKU) sold in every year. And I need this to be a fully dynamic measure, because I’ll want to analyze the data using different labels and slicers.
So for instance, I’ll want the table to calculate the average ASP for Clothing items, using only the selling prices of the first100 sweaters, t-shirts, and shorts sold in each year.I will later need to use this measure to display the initial ASP (ie, first 100 items sold) for the top 25 best-selling items of the year (ranked by total sales).I know how to use the TopN function, but not how to filter by time.
Could someone please lend a hand? Thank you!
I have data table in PowerPivot that includes list of thousands of different retail items, their product categories, the date they were purchased, selling store, and their sale prices. I've created pivot table to cut the data, and slice by store, product category, etc. with the value being to show weighted ave price. For ex:
[TABLE="width: 170"]
<tbody>[TR]
[TD="width: 169, bgcolor: transparent, colspan: 2"]Average Selling Prices[/TD]
[TD="width: 67, bgcolor: transparent"][/TD]
[TD="width: 67, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD]Row Labels[/TD]
[TD]2012[/TD]
[TD]2013[/TD]
[TD]2014[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Clothing[/TD]
[TD="bgcolor: transparent"]
$14.3
[TD="bgcolor: transparent"]
$15.1
[TD="bgcolor: transparent"]
$16.9
[/TR]
[TR]
[TD="bgcolor: transparent"]Electronics[/TD]
[TD="bgcolor: transparent"]
223
[TD="bgcolor: transparent"]
250
[TD="bgcolor: transparent"]
269
[/TR]
[TR]
[TD="bgcolor: transparent"]White Goods[/TD]
[TD="bgcolor: transparent"]
522
[TD="bgcolor: transparent"]
543
[TD="bgcolor: transparent"]
601
[/TR]
[TR]
[TD="bgcolor: transparent"]Sporting Goods[/TD]
[TD="bgcolor: transparent"]
25
[TD="bgcolor: transparent"]
27
[TD="bgcolor: transparent"]
29
[/TR]
[TR]
[TD="bgcolor: transparent"]Toys[/TD]
[TD="bgcolor: transparent"]
15
[TD="bgcolor: transparent"]
17
[TD="bgcolor: transparent"]
12
[/TR]
[TR]
[TD]Grand Total *[/TD]
[TD]
305.0
[TD]
333.0
[TD]
372.0
[/TR]
</tbody>[/TABLE]
I’m now trying to filter the data such that the table calculates the average selling prices (ASPs) using only the first 100 items of each product (SKU) sold in every year. And I need this to be a fully dynamic measure, because I’ll want to analyze the data using different labels and slicers.
So for instance, I’ll want the table to calculate the average ASP for Clothing items, using only the selling prices of the first100 sweaters, t-shirts, and shorts sold in each year.I will later need to use this measure to display the initial ASP (ie, first 100 items sold) for the top 25 best-selling items of the year (ranked by total sales).I know how to use the TopN function, but not how to filter by time.
Could someone please lend a hand? Thank you!