To follow up my post on Power Pivot and Commerce Server, I decided to show you how to achieve three different dashboards and give to you the excel file.
The goal here is not to show you how to create the data source, the relationships and so. You can find very valuable information on a lot of web sites:
- Créer des rapports simples et efficaces pour Commerce Server grâce à PowerPivot (aka Gemini)
- Tutoriel PowerPivot pour Excel – Partie 1/2 : Construction d’un modèle PowerPivot à partir de plusieurs sources de données
- Power Pivot : How To
To achieve theses scenarri you must have:
To create our different dashboard, we need to connect to two databases:
- Profiles (here SPGael_profiles) : Owns all the profile information for the customers
- In this table, I have a custom field to store the birthday date. All the others data are native in Commerce Server
- Transactions (here SPGael_transactions) : Owns all the orders information
- All the data are the native one with Commerce Server.
Select the tables :
- DiscountsApplied : Owns all the marketing discounts applied on the orders;
- LineItems : Owns all the line items in the orders;
- OrderAddresses : Owns all the adresses used for the check out (billing and shipping);
- OrderForms : Owns the container for the line items (one order has from 1 to n OrderForms and one OrderForms has from 1 to n LineItems);
- PurchaseOrderPayments : Owns the different payment methods used during the checkout;
- PurchaseOrders : Owns the general information about the orders;
- Shipments : Owns the shipping information used during the checkout;
- ShippingDiscounts : Owns the shipping discounts applied on an order;
- UserObjet : Owns the customer information
In one of my previous post, I explained how to configure the analytics reports for Commerce Server, and I’m sure that most of you guys was disappointed by the result (who says everyone?).
Even if the cubes provided by Commerce Server can be a good starting point, the import process is fully out of date and close to a kind of a black box where trying to tune something is an exploit. And I’m not speaking about the reports that have not evolved since 2001…
In short, you will have understood, it is time that the Commerce Server team focuses on this feature to give it a good blow paint!
So, what we can do?
- Develop new reports based on the existing cubes
- No cube development;
- Depends on your needs, not so much development time to add some new information;
- Hope that the import process running well and rich your goals :);
- Redesign all of your reports if you want more modern ones;
- The structure of cubes does not necessarily correspond to your need;
- Require IT intervention for all adjustments;
- Develop your own cubes
- You stuck to your goals;
- Require IT intervention for all adjustments;
- May be lengthy implementation time;
- Do nothing
In any cases, you have to work with your IT department and you may not have the time to wait for them. Or you may want to explore the data as you want, because you’re the best person to understand your ecommerce web site :). The miracle solution is:
Hello and welcome to Gemini, sorry Power Pivot
Power Pivot is a new tool developed by Microsoft to facilitate and give users the power to create compelling self-service BI solutions. Power Pivot is a data analysis add-in within Excel 2010 (and only with Excel 2010):
I tested the solution against one of my Commerce Server project and I can confess that I’m excited by getting started ease and speed execution.
It’s really easy with Power Pivot to a data source. Because of the user friendly and guided interfaces:
And voilà, in 5 minutes, I imported my 2Go Commerce Server transactions database. And cherry on the cake, my Excel file is only weight 43 Mo. You don’t trust me?
With the relational and multi-dimensional structure of Power Pivot, you are able to design quickly and simply powerful charts or cross tables in a couple of minutes. Let’s take an example with a chart that displays the number of orders by day:
- First, select in the menu the chart
- Then, add the number of tracking number in the value box and in axis the created field.
- Not readable? I’m agreeing The problem here is the created date contains the date and time when the order was created. We need to have only the date without the time. For that we just have to create a new column in the “Purchase Orders” section by using the DAX language (which is very close to the Excel one): RIGHT("0" &MONTH([Created]),2) &"/" &year([Created])
- Refresh the data source to have the new column available:
Easy isn’t it?
You understand it’s therefore very easy to implement powerful dashboards through Powert Pivot (for data) coupling to Excel (for formatting), example:
For more information: