AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск Все разделы прочитаны

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 04.10.2013, 20:12   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
atinkerersnotebook: Using PowerPivot to Analyze Dynamics AX Data
Источник: http://atinkerersnotebook.com/2013/1...amics-ax-data/
==============

Perhaps you have heard about the new tool in Excel 2010, PowerPivot, but wonder how it can enhance your use of Excel.

In this session, geared towards beginner PowerPivot users and those wanting to learn more about the features of PowerPivot, learn how PowerPivot can assist you with advanced data analysis and reporting, making those extracts from Dynamics AX to Excel even more valuable. 

Using Pivot Tables to Analyze Dynamics AX Data

At one point or another, everyone has probably used Pivot tables within Excel to slice and dice information. PowerPivot is an extension of this functionality, so it makes sense to initially show how this works before showing all of the new features that are available within PowerPivot.

How to do it…

To use PivotTables to analyze information from within Dynamics AX, follow these steps:

  1. For this example we will just start with a query within AX and export the data to Excel.
  2. Once we are in Excel, we can create a Pivot Table for analysis just by clicking on the Pivot Table button within the Tables group of the Insert ribbon bar.
  3. Excel will ask us where we should grab the data from and also where we want to put the Pivot Table results. Use the defaults, and just click on the OK button to continue.
  4. Excel will create a new worksheet for you and also show all of the columns from the source worksheet for reporting.
How it Works…

All you have to do to create a report through the Pivot Table is drag and drop the fields into the designer panel.


If you click on the Pivot Chart button within the Insert ribbon bar, you will be able to add a Pivot Chart that is based on the data that you have reported off.


You can select the style of chart that you want to add to the worksheet from the Chart Gallery, and click the OK button to add it to the worksheet.


Any changes that you make to the data will be reflected in both the Pivot Table and Chart.


Using PowerPivot to create Dashboards

PowerPivot gives you all of the capabilities that the Pivot Tables have, plus more. With PowerPivot you can create pivot tables and charts, and also dashboards with multiple panels showing that use the same data source.

How to do it…

To access the data tables through the PowerPivot Manager and also create more elaborate dashboards, follow these steps:

  1. To use a data table within PowerPivot, all you need to do is add it to the PowerPivot data model by clicking on the Add to Data Model button within the Tables group of the PowerPivot ribbon bar.
  2. This will open up the PowerPivot Data Manager view with all of the table data being displayed.
  3. To create a dashboard from the data, click on the PivotTable button within the Linked Table ribbon bar. You will be able to choose from a number of different dashboard designs, for this example we will choose the Four Charts option.
  4. PowerPivot will return to the Excel worksheet and ask us where we want to put the dashboard. Select the New Worksheet option and click the OK button.
  5. Rather than just seeing the one panel that was available with the Pivot Chart option, PowerPivot will add multiple reporting panels.
How it Works…

You can then build the reports individually.


Repeating the process for the other panels will give you a multipanel dashboard for reporting off your data.


Adding Timeline Slicers to PowerPivot Dashboards

PowerPivot has a couple of extra features that you can take advantage of while you are building your dashboards for slicing and filtering your data. One is called a Timeline Slicer.

How to do it…

To add a Timeline Slicer to your PowerPivot Dashboard, follow these steps:

  1. From the Analyze ribbon bar within Excel, click on the Insert Timeline from within the Filter group.
  2. When the Insert Timeline dialog box is displayed, any field that is formatted as a date will be available to be added as a Timeline slicer. Select one and then click on the OK button.
How it Works…

Now you can filter the data that is displayed by date range with the slicer.


Creating Additional Calculated Columns

Where PowerPivot starts to really outshine the simple Pivot Tables is in the feature that allows you to create new columns through the PowerPivot Manager. You can then filter, and report off the results as if it were a normal field in the system.

How to do it…

To quickly create calculated columns through PowerPivot, follow these steps:

  1. Open up the PowerPivot Manager workspace by clicking on the Manage button within the Data Model group of the PowerPivot ribbon bar.
  2. When the PowerPivot Manager window is displayed, scroll to the very right of the columns, and rename the column that is called Add Column.
  3. This will add a new column to your table within the data model. You can create a formula for the field just by typing it in or pointing and clicking – just like a normal Excel function.
How it Works…

The difference is that you only need to do it once and then all of the records will be updated.


Applying Filters to your Data Model

Within the PowerPivot Data Model editor, you can also filter the data that is returned to Excel through the filtering option.

How to do it…

To can add a filter to a table in your data model, follow these steps:

  1. Select the drop down from the heading of the field that you want to filter on and you can either manually select the field values to filter on, or you can click on the Filters options to create a rule.
  2. If you create a filter rule then you will be able to update the filter conditions through the Custom Filter dialog box.
How it Works…

After applying the filter you will only see the data that matches.


Creating Joins between Multiple Datasets

PowerPivot has another great feature that allows you to create relationships between tables so that you can report off both tables within the same query.

Getting Ready…

For this example we will add a new set of data to the Excel spreadsheet through the Dynamics AX Excel add-in. To do this, follow these steps:

  1. From the Dynamics AX ribbon bar, click on the Add Data menu button and select the Add Tables option.
  2. Select the table that you want to add to the data model and click the OK button. In this example we will add the EcoResProductTranslation table so that we can get a product description to go along with the part code.
  3. From the field chooser drag and drop the description fields over to the worksheet.
  4. Before retrieving the data, we will filter the results by clicking on the Filter button within the Data group of the Dynamics AX ribbon bar. This will allow us to add a filter on the Language to restrict it to en-us.
  5. Once we have finished adding the fields and filters for the query, click on the Fields button to return to query mode, and click the Refresh button in the Data group of the Dynamics AX ribbon bar to fetch all of the data.
How to do it…

To link multiple tables through the table designer tool, follow these steps:

  1. Add the new table query to our PowerPivot data model by clicking on the Add to Data Model button within the Tables group of the PowerPivot ribbon bar.
  2. This will automatically open up the PowerPivot Manager window, and you should be able to see the query as a new data source in the model.
  3. From the Linked Table ribbon bar, click on the Diagram View button within the View group so that you can see the tables visually.
  4. Connect the two tables by just selecting one of the key fields and then dragging it over to the other field in the table.
How it Works…

To create a report off this linked data, click on the PivotTable button and select the PivotTable option.


This will return you to Excel, and you can specify where you want to show the Pivot Table – select the defaults to create a new worksheet and click the OK button.


Now you will see both tables within the field explorer on the right.


You can select fields from either table.


The data will then be linked based on your relationship that you have defined within the table designer.


Using Functions to create Calculated Columns

Just as you can do within Excel, you can also use any of the built in functions within the Data Model designer. This allows you to perform string and date manipulation as you create new column definitions, giving you more reporting options than are available within the default tables.

How to do it…

To use functions within calculated columns, follow these steps:

  1. For this example we will use date manipulation to convert our Ship Date field into year and month values. Open up the PowerPivot Data Model Editor and click on the Insert Function button within the Calculations group of the Linked Tables ribbon bar. This will show you a list of all the valid functions. Find the YEAR function and then click the OK button.
  2. This will take you to the first available new column and you just need to select the field that you want to convert to a year and then press enter.
How it Works…

Now you will have a new column for the year.


You can rename the column and then repeat the process for the Month as well.


Rather than create a Pivot Table, this time we will return to Excel and create a PowerView dashboard by clicking on the PowerView button within the Reports group of the Insert ribbon bar.


This will open up a PowerView canvas and you will see all of the tables and fields on the right.

Notice though that some of them have database symbol in the bottom right hand corner – that indicates that they are housed in the PowerPivot Model rather than within Excel.


Now all you need to do is drag and drop the fields into the query panels to create a new dashboard.


You can add as many different panels to the dashboard as you want.


Creating URL and Picture Columns

There are a number of different types of columns types that you can define within the PowerPivot manager, which act differently based depending on where they are used. One example are the Image column types. If you have a column that links to an image file then you can use it within your dashboards to spice things up a little.

Getting Ready…

For this example we will convert the year into the corresponding symbol from the Chinese Zodiac. To do this I added all of the images into a shared library within SharePoint for reference.


You can now add a new column that calculates the sequence in the Zodiac that the year falls into.


To reference the image, you can look at the properties of the image so that you can get the template for the URL.


How to do it…

To use PowerPivot to define image columns, follow these steps:

  1. Create a new column that creates a URL string that matches the links to the images in SharePoint.
  2. Then from within the Advanced ribbon bar, make sure that the Data Category is set to Image URL, otherwise the PowerView will not know to render the link as an image.


    If you don’t want to store the images on SharePoint then you can also create relative file paths that will work the same way.
How it Works…

Now when you use the Image URL fields, the images will be rendered rather than the URL itself.


How cool is that.

Creating a PowerPivot Gallery within SharePoint

PowerPivot has a very cool feature that allows you to publish your data to PowerPivot Galleries within SharePoint. This allows users to access and report off the data that you build within Excel, but do it all through the Web. In order to enable this feature, you first need to create a PowerPivot Gallery in SharePoint.

How to do it…

To create a PowerPivot Gallery site within your existing SharePoint site, follow these steps:

  1. Open up SharePoint Central Administration and select the Create Site Collection option. When the site creation form is displayed, give your new site an Name and Description, a name for the subsite in the URL field, and select the PowerPivot template option. Then click OK to create the new site.
How it Works…

When the new site is created, there will be a link in the navigation bar for the PowerPivot Gallery.


The PowerPivot Gallery is now ready to host your PowerPivot data sources.


Saving PowerPivot Data Models to the PowerPivot Gallery

Once you have created your PowerPivot Gallery, you can publish the PowerPivots that you create within Excel there and host them within SharePoint.

How to do it…

To publish a PowerPivot Workbook to a PowerPivot Gallery, follow these steps:

  1. From the Save As menu item, select the SharePoint option and in the navigation bar, paste in the URL for your new PowerPivot Gallery. Give your Workbook a name and then click the Save button.
How it Works…

When you return to the PowerPivot Gallery you will see a thumbnail view of the workbook.


Note: It may take a minute or so for it to render the thumbnail properly, so be patient.

Creating PowerView Dashboards from the PowerPivot Gallery Data Sources

The real benefit of hosting your PowerPivot workbooks within a PowerPivot Gallery is that people can then report off the data source as if it were a mini data warehouse using PowerView.

How to do it…

To create a PowerView dashboard from a PowerPivot data source, follow these steps:

  1. Within the PowerPivot Gallery, if you select a data source, you will be able to see three icons to the right of the selection. Click on the middle one that is captioned Create Power View Report to launch the PowerView report designer.
How it Works…

The gallery will be replaced with a PowerView Reporting Canvas with the fields from the PowerPivot being displayed as reporting fields.


You can build the PowerView dashboard through the web interface in just the same was as we built them from within Excel.


After you have created the dashboard, click on the File menu, and then select the Save As option to save your dashboard back to your PowerPivot Gallery.


All you need to do is save give your dashboard a name and click the Save button.


Now you will see the report that you generated within the PowerPivot Gallery alongside the PowerPivot Data Source.


Changing the View Mode for the PowerPivot Gallery

If you want to show off, you can also change the style of the PowerView Gallery to Carrousel, Theatre, or List mode depending on where you are embedding the view.

How to do it…

To change the view style of the PowerPivot Gallery, follow these steps:

  1. From within the PowerPivot Gallery, expand the Library ribbon bar, and within the Manage Views group, select the drop down for the Current View. This will allow you to change the view.
How it Works…

The Carousel view will allow you to browse through the different workbooks like a juke box.


The Theatre view will flatten the views out showing thumbnails in the footer and then larger views in the header.


The All Documents view will look more like a traditional windows file explorer view.


Setting PowerPivot Data Model Refresh Rates

When the Power Pivot Data Models are stored within a PowerPivot Gallery, you will want to have them periodically refresh to get the latest information. Rather than doing this manually, you can configure a default refresh rate and the gallery will do the rest for you.

How to do it…

To enable automatic refreshing of the Power Pivot Data Models when they are stored within the PowerPivot Galleries, follow these steps:

  1. Within the PowerPivot Gallery, if you select a data source, you will be able to see three icons to the right of the selection. Click on the third one that is captioned Manage Data Refresh to launch the Data Refresh Configuration form.
  2. When the Manage Data Refresh options form is displayed, you can enable data refresh, and also specify the frequency of the data refresh. When you are done, just click OK to start the auto refreshing.
Exporting PowerView Dashboards to PowerPoint

Once a PowerView Dashboard is hosted within the PowerPivot Gallery, there is one cool feature that you can take advantage of which allows you to export any of the dashboards to PowerPoint and then have a live and interactive version of the dashboard as a PowerPoint slide.

How to do it…

To export PowerView Dashboards to PowerPoint, follow these steps:

  1. Open up the PowerView dashboard that you created and published to the PowerPivot Gallery and then from the Files menu, select the Export to PowerPoint option.
  2. When it says that the export is complete, click the Save button.
  3. Now, give your PowerPoint a name and click the Save button.
How it Works…

Now when you open up the PowerPoint, you will see a slide that has a copy of the report embedded in it.


When you go into slideshow mode, you will notice a small Interact button in the bottom right of the form.


If you click on the button, the dashboard becomes interactive, receiving all of the data from the PowerPivot Data Source that you hosted on the PowerPivot Gallery.


That is too cool.

Summary

PowerPivot is a great that gives you a lot more capabilities that the normal Pivot function lacks, and in this worked example we have shown how it also extends out to SharePoint giving you a number of new publishing and visualization options.

Once you have mastered all of the basics of PowerPivot, you may want to dive into some other features like:

  • The creation of more complex calculations using the DAX Queries
  • The creation of KPI’s based off the calculations
  • Reporting hierarchies
Then you will want to start investigating the other tools that are included in the PowerBI suite (which PowerPivot is just one of). The other tools are:

  • Power Query
  • Power Map
  • Power View (which we only touched the surface on)
With all these tools, you should be able to get any data you want out of the system.




Источник: http://atinkerersnotebook.com/2013/1...amics-ax-data/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
Старый 05.10.2013, 07:23   #2  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
dynamicscare: Using PowerPivot to Analyze Dynamics AX Data
Источник: http://dynamicscare.com/blog/using-p...amics-ax-data/
==============

Perhaps you have heard about the new tool in Excel 2010, PowerPivot, but wonder how it can enhance your use of Excel. In this session, geared towards beginner PowerPivot users and those wanting to learn more about the features of PowerPivot, learn how PowerPivot can assist you with advanced data analysis and reporting, making those [...]

Источник: http://dynamicscare.com/blog/using-p...amics-ax-data/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
atinkerersnotebook: Embedding PowerView Dashboards within Dynamics AX Forms Blog bot DAX Blogs 0 29.09.2013 03:50
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 13 Blog bot Dynamics CRM: Blogs 0 27.03.2013 22:12
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 10 Blog bot Dynamics CRM: Blogs 0 17.08.2012 03:27
Developer for Microsoft Dynamics AX Certification Roadmap Blog bot DAX Blogs 1 13.05.2009 16:17
Inside Dynamics AX 4.0: Usage Scenarios Blog bot DAX Blogs 0 04.10.2007 05:15
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 23:16.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.