dashboard – bConcepts https://www.bconcepts.pt Sat, 15 Jul 2023 14:09:03 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.2 Power BI training contents https://www.bconcepts.pt/power-bi-training-contents/ https://www.bconcepts.pt/power-bi-training-contents/#respond Sat, 15 Jul 2023 13:36:59 +0000 https://www.bconcepts.pt/?p=5740

Introdução:

  • Importar o "Ficheiro1", escolha o separador "Sales" e recrie o relatório em baixo.

Relatório de exemplo:

 

Introdução:

  • Siga os passos em baixo de forma a transformar os dados de um ficheiro de excel

Passos:

  1. Descarregar Ficheiro2 para uma pasta no seu computador
  2. No PowerBI Desktop clicar em obter dados
  3. Na janela de obter dados clicar em Excel
  4. Procurar o ficheiro DS_PBI_Training2.xlsx e clicar no botão abrir
  5. No painel navegador colocar um visto em Sales e clicar em Transformar Dados
  6. Após a janela do Editor do Power Query abrir clicar na fonte de dados Sales nas consultas
  7. Nos passos aplicados apagar Tipo Alterado clicando no icon da X atrás do nome
  8. Nos passos aplicados apagar Cabeçalhos Promovidos clicando no icon da X atrás do nome
  9. No separador Transformar clicar em transpor
  10. Verifique que as colunas passaram a linhas e as linhas passaram a colunas
  11. No canto superior esquerdo da tabela clique no icon Tabela e nas opções listadas clicar em Utilizar Primeira Linha como Cabeçalho
  12. Clicar com o botão direito em Column1 e escolher Renomear, alterar o nome para País
  13. Clicar com o botão direito em Column2 e escolher Renomear, alterar o nome para Categoria
  14. Clicar com o botão direito em Pais, e escolher Preencher e de seguida Baixo, os valores a Null irão ser substituídos
  15. Seleccionar as colunas dos anos (pressionar Ctrl e clicar nas colunas dos anos)
  16. Clicar com o botão direito do rato em cima de uma das colunas seleccionadas e escolher a opção anular dinamização das colunas.
  17. Note que as colunas Atributo e Valor perfazem a paridade Ano-valor
  18. Clique com o botão direito em cima da coluna Atributo e renomeie para Ano e pressione a tecla Enter
  19. Clique com o botão direito em cima da coluna Valor e renomeie para Vendas e pressione a tecla Enter
  20. No separador base clique Fechar e Aplicar
  21. No painel Campos expanda Sales e clique no campo Pais
  22. No separador Propriedades em categoria escolher Pais
  23. Verifique que no painel dos campos no Pais surge um icon com um globo
  24. No painel Campos expanda Sales e clique no campo Vendas
  25. No separador Estrutura no tipo de dados clique em Numero decimal
  26. Na janela que abre clique em Sim (Poder aparecer ou não)
  27. No separador formato, clicar no $ e escolher o sufixo € para ficar formato como moeda Euro
  28. Verifique que no painel dos campos no Vendas surge um icon de somatório
  29. Arrastar o campo Pais para a área branca e verifique que o Power BI automaticamente escolhe o gráfico Mapa
  30. Arrastar as vendas para o gráfico Mapa e verifique que os tamanhos das bolhas representam as vendas

Instructions:

  • Follow the below steps in order to transform the data from an Excel File

Steps:

  1. In Power BI Desktop, click **Get Data**.
  2. In the **Get Data** dialog box, click **Excel**, and then click **Connect**.
  3. In the **Open** dialog box, browse to the DS_PBI_Training2.xlsx, and then click **Open**.
  4. In the **Navigator** dialog box, select the **Sales** check box, and then click **Edit**.
  5. In the **Untitled - Power Query Editor** dialog box, in the **Queries** pane, click **Sales**.
  6. In the **APPLIED STEPS** list, next to **Changed Type**, click the **delete** icon.
  7. In the **APPLIED STEPS** list, next to **Promoted Headers**, click the **delete** icon.
  8. On the **Transform** tab, click **Transpose**.
  9. Note that the columns are now rows.
  10. In the top left-hand corner of the table, click the **table** icon, and then click **Use First Row as Headers**.
  11. Right-click the **Column1** column, click **Rename**, type **Country**, and then press Enter.
  12. Right-click the **Column2** column, click **Rename**, type **Category**, and then press Enter.
  13. Click the **Country** column, and on the Ribbon, in the **Any Column** group, click **Fill**, and then click **Down**. The null values are replaced.
  14. Click the **2005** column, hold down the Ctrl key and click the all other year columns.
  15. Right-click any of the selected column headers, and then click **Unpivot Columns**.
  16. Note that the names of the columns are **Attribute** and **Value** for the attribute-value pairing.
  17. Right-click the **Attribute** column, click **Rename**, type **Year**, and then press Enter.
  18. Right-click the **Value** column, click **Rename**, type **Sales**, and then press Enter.
  19. On the **File** menu, click **Close & Apply**.
  20. In the **FIELDS** pane, expand **Sales**, and then click **Country** to select the field.
  21. On the **Modeling** tab, click **Data Category: Uncategorized**, and then click **Country/Region**.
  22. In the **FIELDS** pane, note the map icon next to **Country**.
  23. In the **FIELDS** pane, under **Sales**, click **Sales** to select the field.
  24. In the **Formatting** group, click **Data type: Decimal Number**, and click **Fixed decimal number**.
  25. In the **Data type change** dialog box, click **Yes**.
  26. Click **Format: General**, point to **Currency**, and then click **$ English (United States)**.
  27. In the **FIELDS** pane, note the sum symbol next to **Sales**.
  28. Drag the **Country** field onto the report. Note that Power BI automatically chooses the map chart.
  29. Drag the **Sales** field onto the map, and note that the bubble sizes now represent the Sales figure.
  30. Click the report canvas.
  31. In the **VISUALIZATIONS** pane, click **Clustered column chart**.
  32. Drag **Category** onto the **Axis** property.
  33. Drag **Year** onto the **Axis** property.
  34. Drag **Country** onto the **Legend** property.
  35. Drag **Sales** onto the **Value** property.
  36. Grab the corner edge of the chart to expand the width and height.
  37. Click the **Click to turn on Drill Down** arrow icon in the top right-hand corner of the chart.
  38. Click the tallest column in the **Bikes** group. This now breaks down the sales by year.

Introdução
Importar dados de uma página web

Passos
Analise o link https://pt.wikipedia.org/wiki/Vencedores_do_Festival_Eurovis%C3%A3o_da_Can%C3%A7%C3%A3o
Faça uma importação do link anterior de via web de 1 só tabela que lhe permita recriar o seguinte relatório sobre o segundo classificado (deverá aplicar as transformações necessárias para importar somente a colunas e os registos necessários):

Relatório de exemplo pretendido

Introdução
Criar 3 páginas e navegar entre as mesmas

Passos

  • Criar 3 páginas
    • Página Inicial
    • Relatório 1
    • Relatório 2
  • Conteúdo Página Inicial
    • Botão "Relatório 1"
      • Acção - Navegar entre páginas para página Relatório 1
    • Botão "Relatório 2"
      • Acção - Navegar entre páginas para página Relatório 2
  • Conteúdo Relatório 1
    • Texto com Titulo
    • Seta para a direita
      • Acção - Navegar entre páginas para página Relatório 2
    • Botão Voltar ao Menu
      • Acção - Navegar entre páginas para página Página Inicial
    • Criar 3 gráficos
      • Barras
      • Circular
      • Tabela
  • Conteúdo Relatório 2
    • Texto com Titulo
    • Seta para a Esquerda
      • Acção - Navegar entre páginas para página Relatório 1
    • Botão Voltar ao Menu
      • Acção - Navegar entre páginas para página Página Inicial
    • Criar 3 gráficos
      • Mapa
      • Linha
      • Matriz
]]>
https://www.bconcepts.pt/power-bi-training-contents/feed/ 0
Power BI Labs https://www.bconcepts.pt/power-bi-labs/ https://www.bconcepts.pt/power-bi-labs/#respond Sat, 15 Jul 2023 12:50:23 +0000 https://www.bconcepts.pt/?p=5733

Access List to Power BI Labs

  1. Prepare data in Power BI Desktop
  2. Load data in Power BI Desktop
  3. Model data in Power BI Desktop, part 1
  4. Model data in Power BI Desktop, part 2
  5. Create DAX calculations in Power BI Desktop, part 1
  6. Create DAX calculations in Power BI Desktop, part 2
  7. Design a report in Power BI Desktop, part 1
  8. Design a report in Power BI Desktop, part 2
  9. Create a Power BI dashboard
  10. Perform data analysis in Power BI Desktop
  11. Create a Power BI paginated report

Note

Each lab starts with a PBIX file that has all of the previous lab work completed. If you should lose your work for any reason, you can open the PBIX file that includes the progress up to that point from the folder indicated at the beginning of the next lab.

 

]]>
https://www.bconcepts.pt/power-bi-labs/feed/ 0
PowerBI Best Practices https://www.bconcepts.pt/powerbi-best-practices/ https://www.bconcepts.pt/powerbi-best-practices/#respond Sat, 15 Jul 2023 08:57:36 +0000 https://www.bconcepts.pt/?p=5723

Power BI is a collection of software services, apps, and connectors that work together to turn unrelated sources of data into coherent, visually immersive, and interactive insights. Your data may be an Excel spreadsheet, or a collection of cloud-based and on-premises hybrid data warehouses.

  • With Power BI, one can retrieve data from hundreds of data sources, shape the data to fit your specific requirements, perform ad hoc analytics, and present the results through various types of visualizations
  • The Power BI service lies at the heart of the Power BI offering, providing a cloud-based platform for connecting to data and building reports. Users can access the service through a web-based portal that provides the tools necessary to retrieve, transform and present business data
  • Power BI Desktop is a downloadable application that Microsoft provides for free. The application is essentially a report-building tool that provides capabilities similar to the Power BI service
  • With Power BI Desktop, one can build advanced data queries and models, create sophisticated reports and visualizations, and publish the consolidated report packages to the Power BI service or Power BI Report Server.
  • Power BI Desktop can be divided into three categories, or views, for how we interact with data and create reports:
    Report view: A canvas for building and viewing reports based on the datasets defined in Dataview.
    Data view: Defined datasets based on data retrieved from one or more data sources
    Relationships view: Identified relationships between the datasets defined in Data view

Power BI dashboards

With updates to Power BI customers can now see all their data through a single pane of glass. Live Power BI dashboards show visualizations and KPIs from data that reside both on-premises and in the cloud, providing a consolidated view across their business regardless of where their data lives.

Simplifying how we interact with data, natural language query is built into the dashboard allowing users to type questions and receive answers from data in the form of interactive visualizations.

One can explore their data further by drilling through the dashboard into the underlying reports, discovering new insights that they can pin back to the dashboard to monitor performance going forward.

Key Components

Features

  • One of the really unique things about Power BI that separates Power BI from a lot of the other BI tools out there is the really tight integration between Power BI and Excel. Excel and Power BI contain a portfolio of tools that is unique in the industry. Together, they enable business analysts to more easily gather, shape, analyse, and visually explore their data.
    In addition to viewing Power BI reports in the web portal, business users can now do the same with Excel workbooks in the new version of Power BI Report Server, giving them a single location to publish and view their self-service Microsoft BI content.
  • Seamless integration across Office and Azure provides quicker and more cost-effective deployment for any data project.
  • Power BI provides a strong backend data manipulation feature with access to simple visualization
  • Power BI covers most of the data sources available in Tableau. It is closely integrated with Office 365, hence provides connectivity to SharePoint.
  • Power BI online version also supports direct visualization on Search Engine
  • Power BI uses cloud storage and includes simple implementation process.
  • Microsoft Power BI hosts one of the most user-friendly data visualization tools in the business intelligence market. The drag-and-drop functionality of the software, along with access to over 85 data visualization applications, provides an uncomplicated experience that results in visually appealing and informative reports
  • Reports generated in Microsoft Power BI can be exported as PDF, TIFF, HTML and Microsoft Office files. Power BI files include desktop files (pbix) and templates (pbit). With Microsoft as the engine behind Power BI, report exporting and document access is simple.
  • Microsoft Power BI possesses the advantage of Microsoft’s familiarity and connections to assorted applications. Users of Microsoft Power BI can mine data from programs such as Microsoft Excel, Google Analytics, MySQL, Oracle, Salesforce, Mail Chimp, Facebook and Zendesk, with new data sources added every month
  • The Microsoft foundation of this analytic tool ensures a smooth meshing of Power BI with the existing work base of a business. One of the more innovative features of Microsoft Power BI is the ability to use browser- and desktop-based authoring with apps and platforms that are both on-premise and in the cloud. This hybrid integration strategy is based on the Microsoft Azure Cloud APIs.
  • The Microsoft backing of the Power BI platform ensures simple integration with a number of external applications. Nearly every program that works with Microsoft can integrate with Power BI, offering an expansive library of possible collaboration options.
  • In conjunction with other Microsoft offerings, including Azure, SQL Server Analysis, real-time data streaming and R-analytics, Power BI provides a broad analytics landscape. Connect Power BI to in-house data sources or external sources like Hadoop, Azure HDInsight and Spark for a full range of data access. Open database connectivity integration provides access to big data sources. Users can visualize, analyze, report and share data pulled from ODBC source
  • Power BI presents databases in a menu view where users can simply select their data source of choice, connect to the data and begin the process of analysis and reporting
  • Have extensive R and big data-related integrations, ensuring this apps’ scalability for larger projects.
  • A highlighting feature is provision of APIs where developers can club Power BI dashboards to other products.
  • Microsoft provides integration abilities that are simply unmatched by competitors, resulting in one of the most user-friendly, data-connected business intelligence systems available.

Overall Flow

PowerBI-Best Practices Bconcepts

Best Practices to be followed:

  1. Keep a Last Refreshed Date’ Exists in the Dataset – The objective is for report consumers to understand the effective date of the data being displayed
  2. Parameterize data source connections. Parameters can be useful to minimize hard-coding and reduce maintenance during future changes.
  3. Hide field that is not utilized in the visuals – IDs and surrogate keys are needed for relationships, but are not useful for visuals. Hiding them simplifies the data model because there’s less fields shown in the field list.
  4. For performance optimization purposes, the most selective condition should typically be nested to limit data as early as possible.
  5. Keep measures simple initially, and add complexity incrementally. ie Break Measures into Interim Parts
  6. Description for Query – If a query is doing something unusual, or is serving as an intermediary query, it is very helpful to include a description of the purpose for the query.
  7. Comments in the M Query can be very helpful to describe the data transformations which are occurring.
  8. Comments in DAX can be very helpful to describe what’s happening in a calculation. This can be to help others understand the calculation
  9. Split date and time – Always split it in two columns, one for DATE, and one for TIME. Reduce precision of TIME if necessary down to hour, minute, or seconds, according to business requirements. High cardinality columns are expensive in Power BI, and a datetime column will likely have a unique value for each row. By splitting that information in date and time will save memory, increase performance, and make the data model easier to use.
  10. Apply Mark as “Date Table” to tables with dates – Time intelligence functions require to mark a table as a Date table if a surrogate key column (typically an integer) is used in the relationship between a fact table and a dimension.
  11. Create a common theme/look for the report, and apply it to all pages of the report.
  12. Set the Data Category – Address related columns, such as city/state/zip and so forth, need to be specified in the data model to ensure geocoding can occur properly.
  13. Create Hierarchies for usability – Date columns (such as Year>Quarter>Month) are a common scenario for use of a hierarchy and should be present in most models. Geography columns (such as Country>State>City) are great candidates as well.
  14. Be Consistent with font size, font type , font color and page background color.
  15. Version the report copies with the date as shown below Report Name vYYYYMMDD
  16. Consider Using the Divide() Function – Instead of Column A / Column B use Divide function. This standard practice prevents invalid numbers being displayed on reports. (nulls or coding around divide-by-zero errors).
  17. Include only the columns in the dataset that are useful and will be used in the Power BI reports. If a column doesn’t contribute to a visual, calculation, or a relationship, then do not import it to the model.
  18. Always use table names for column reference even when you define a calculated column within a table
  19. Provide meaningful and helpful names for the pages/tabs.
  20. Be consistent with respect to spaces, casing, and abbreviations.
  21. Create unique field names across the entire dataset – Although the Power BI permits columns to exist which are named the same across tables, that is a poor practice to allow in a data model. The name assigned needs to be self-explanatory on its own rather than relying on the context of its table.
]]>
https://www.bconcepts.pt/powerbi-best-practices/feed/ 0
Power BI – How to import a Table from SQL Server on-permisses https://www.bconcepts.pt/power-bi-how-to-import-a-table-from-sql-server-on-permisses/ https://www.bconcepts.pt/power-bi-how-to-import-a-table-from-sql-server-on-permisses/#respond Fri, 14 Jul 2023 20:36:31 +0000 https://www.bconcepts.pt/?p=5693

Power BI – How to import a Table from SQL Server on-permisses

On this video you will learn How to import a Table from SQL Server into Power BI Report.

If you need to know how to import an Excel sheet to Power BI take a look on this video first.

You need help with your data or reporting project?

Please contact us on info@bconcepts.pt or send a message on contacts page, we have a team that will be able to help you.

]]>
https://www.bconcepts.pt/power-bi-how-to-import-a-table-from-sql-server-on-permisses/feed/ 0