The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I load a table in excel in power bi, and if a column of a complete row does not have data, it deletes the entire row, even when I have data in the other columns. How do I fix this error so that it doesn't delete my data?
Solved! Go to Solution.
I already fix the problem. Thank you all for your tips!
Hi @gab_7 ,
I tried to reproduce your mistake, but it didn't work. Can you provide more details about the problem, such as some screenshots? Of course, take care to protect your data privacy, this is a public forum.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I already fix the problem. Thank you all for your tips!
Happy to hear that your problem has been solved, @gab_7 .
If possible, please share us with your solution, thanks.
Best Regards,
Stephen Tao
If your data inside the excel be in type table (press ctrl+c) it does not happen
When Power BI loads data from Excel and encounters empty rows or columns, it can sometimes filter out these rows by default. Here’s how to address this issue:
### 1. Check Power Query Editor
**Method: Remove Filters**
- Open your report in Power BI.
- Go to the **Home** tab and click on **Transform Data** to open the Power Query Editor.
- In the Query Editor, check for any filters applied to your columns that might be hiding rows.
- Make sure no filters are set that could exclude rows based on empty cells.
### 2. Change Data Load Settings
**Method: Load Data Without Filtering**
- In the Power Query Editor, select the columns that might have empty cells.
- Go to the **Home** tab, and look for the **Remove Rows** option. Ensure you're not inadvertently removing rows with empty cells.
### 3. Use "Replace Values"
**Method: Replace Nulls**
- In the Power Query Editor, you can replace null or empty values with a placeholder (like "N/A" or "0") to ensure rows remain.
- Select the column, go to the **Transform** tab, and choose **Replace Values**. Replace null values with a placeholder.
### 4. Load Data as Is
**Method: Disable Data Type Detection**
- Sometimes, Power BI might automatically change data types and exclude rows. To avoid this, you can disable automatic data type detection.
- Go to **File > Options and settings > Options**, then under **Global**, select **Data Load** and uncheck **Auto date/time for new files**.
### 5. Review Excel Table Formatting
**Method: Ensure Proper Formatting**
- In your Excel file, ensure that the entire range of your table is formatted as a proper table (using the **Insert > Table** feature).
- This can help Power BI recognize the full data structure correctly.
### 6. Check for Blank Rows
**Method: Identify Blank Rows in Excel**
- Before loading data, check your Excel sheet for any completely blank rows and remove them.
- Also, ensure that the last row of your data does not have any blank entries that might signal to Power BI to end the data load.
### 7. Refresh Data
**Method: Refreshing Data**
- After making changes in the Power Query Editor, always click **Close & Apply** to refresh the data and see if the issue persists.
### Conclusion
By checking filters, adjusting data load settings, and ensuring proper formatting in Excel, you should be able to prevent Power BI from deleting rows when loading your data. If the issue continues, revisiting the data structure in your Excel sheet may also help.
Does your exel file have gaps in the table header names?