Skip to content
Home ยป Create a Data Profiling report

Create a Data Profiling report

The data profile allows a intuitive ways to clean, transform, and understand data which helps you identifying the nuances of the data such as determining anomalies, examining and developing the underlying data structures, and querying data statistics such as row counts, value distributions, minimum and maximum values, averages, errors and so on.

You can use data profiling feature that is available in Power Query, apart that you can also create a Data Profiling report using Power Query M functions that is Table.Profile, this function is a table function which returns a profile for the columns of specified table.

The following information is returned for each column when applicable:

  1. minimum
  2. maximum
  3. average
  4. standard deviation
  5. count
  6. null count
  7. distinct count

Following is the syntax of Table.Profile M function.

Table.Profile(table as table, optional additionalAggregates as nullable list)

Lets see how to create a data profile report in Power BI using M function.

Here we have sample dataset financials that comes by default within Power BI desktop (October 2020 and later version).

Now go to Get data, and select Blank query.

Now you will see, a Query1 in Queries section and a formula bar opened in Power Query Editor that can be seen if have already enabled a formula bar in Power Query editor.

If not, then you can go to View tab and check the formula bar option as shown below.

Now we will write a M code function that will fetch the table profile for table financials.

= Table.Profile(financials)

Also note that if you have a space in your table name then you need to provide table a double quote with a # at the beginning of table name.

Suppose you have a table “financials Details” as you can see there is a space between table name so in this case you need to put a # at the beginning of table name as Table.Profile(#”financials Details”).

And you can see, it returns profiling data for each columns that you have in financials table.

Lets click on Close & Apply to save the changes.

Now you can see, a table named Query1 is created a you data model. Which contains the data profile for each column of financials table.

Lets create a Data Profiling report using this table for that you can simply drag all the table fields into table visual, and can take one slicer and load columns values into this so that you can filter the table visual data based on column name.

Once you are done with this, you can see, it displays a distribution of the data within the column and the counts of distinct values, Max, min, Average, and null counts, which is really helpful to examining the data and taking quick action.

Also Read..

Data profiling

SQL Basics TutorialSQL Advance TutorialSSRSInterview Q & A
SQL Create tableSQL Server Stored ProcedureCreate a New SSRS Project List Of SQL Server basics to Advance Level Interview Q & A
SQL ALTER TABLESQL Server MergeCreate a Shared Data Source in SSRSSQL Server Question & Answer Quiz
SQL DropSQL Server PivotCreate a SSRS Tabular Report / Detail Report
..... More.... More....More
Power BI TutorialAzure TutorialPython TutorialSQL Server Tips & Tricks
Download and Install Power BI DesktopCreate an Azure storage accountLearn Python & ML Step by stepEnable Dark theme in SQL Server Management studio
Connect Power BI to SQL ServerUpload files to Azure storage containerSQL Server Template Explorer
Create Report ToolTip Pages in Power BICreate Azure SQL Database ServerDisplaying line numbers in Query Editor Window

 4,568 total views,  3 views today

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.