This guide provides a step-by-step process for data cleaning and creating DAX measures in Power BI. It covers accessing Power Query Editor, removing unnecessary columns, handling null values, converting data types, adding a duration column, and writing key DAX measures. Final tips include renaming tables and using formatting for improved visuals.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
0 views1 page
1
This guide provides a step-by-step process for data cleaning and creating DAX measures in Power BI. It covers accessing Power Query Editor, removing unnecessary columns, handling null values, converting data types, adding a duration column, and writing key DAX measures. Final tips include renaming tables and using formatting for improved visuals.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1
Power BI: Data Cleaning & DAX Measures Guide
Step 1: Access Power Query Editor
1. Open Power BI Desktop. 2. Click on the 'Home' tab. 3. Select 'Transform Data' to open Power Query Editor. Screenshot Placeholder: Power BI Home tab with 'Transform Data' highlighted. Step 2: Remove Unnecessary Columns Right-click on any irrelevant column and select 'Remove'. Screenshot Placeholder: Column right-click menu with 'Remove'. Step 3: Handle Null or Missing Values Click the filter dropdown of each column. Look for '(null)' values. Use 'Replace Values' to clean or filter them out. Screenshot Placeholder: Filter dropdown showing nulls. Step 4: Convert Column Data Types Right-click a column and choose 'Change Type'. Set appropriate types (Date, Whole Number, Text). Screenshot Placeholder: Change Type context menu. Step 5: Add a Duration Days Column 1. Go to 'Add Column' tab. 2. Click 'Custom Column'. 3. Use the formula:
= Duration.Days([Closing date] - [Incoming date])
Screenshot Placeholder: Custom Column editor. Step 6: Close & Apply Click 'Close & Apply' to load your cleaned data into Power BI. Screenshot Placeholder: 'Close & Apply' in Power Query. Step 7: Write Key DAX Measures 1. Go to 'Data View' (middle icon in the left pane). 2. Select your table. 3. Go to 'Modeling' > 'New Measure'. • 🔹 Total Reports: = COUNTROWS('YourTableName') • 🔹 Open Reports: = CALCULATE(COUNTROWS('YourTableName'), 'YourTableName'[Closed/Open Status] = "Open") • 🔹 Closed Reports: = CALCULATE(COUNTROWS('YourTableName'), 'YourTableName'[Closed/Open Status] = "Closed") • 🔹 Average Lead Time: = AVERAGE('YourTableName'[Lead time]) • 🔹 % Closed: = DIVIDE([Closed Reports], [Total Reports], 0) Screenshot Placeholder: Measure editor in Modeling tab. Step 8: Final Tips • Rename 'YourTableName' with your actual table name. • Use Conditional Formatting in visuals for better readability. • Format cards and visuals with themes for professionalism.