Here we are using 3 tables from Database AdventureWorkks2008r2
- Product
- ProductCategory
- ProductSubCategory
- Open Power Pivot window, load three tables as discussed in my earlier blog.
- Now create a calculated field as we need to count no of products using below mentioned definition:
- Now simply create a pivot table, put category name from ProductCategory table into rows and choose Calculated field 'NumofProducts' for values.
Advantages of using Data Model:
- Using Data Model Approach, one did not need to use vlookup to create columns. Here Pivottable slice products using category name based on relationship.
- CalculatedField created is global for data model. It an be accessed by different Pivottables based on same data model.
- Regarding speed and memory usage, data model is capable of holding hundreds of millions of rows and computing very complex Pivottables in a matter of seconds.



No comments:
Post a Comment