Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi everyone,
I would need your help.
I have made a report, importing the data from Excel-Sheet in SharePoint. The idea was, that I refresh this Excel once a week without changing the name or path, and then I can refresh automatically the Power BI report.
The report refreshed correctly a couple of weeks,but today I have got a problem:
when refreshing the data Power BI took into consideration also empty Excel rows after the last Data row, i.e.
If my Excel looks like this:
Power BI takes both Data and empty rows,which I do not need(here is only an example, I have got actually minimum 500 null-rows):
That is why my Primary Key Table, which has the formula "Category ID = DISTINCT(Table1[Category])" can not refresh, and gives warning: "The table with Primary Keys can not contain NULL Values".
How can I "tell" Power BI to take only rows with data, and not empty rows?
Are there any ideas?
Thank you.
Solved! Go to Solution.
Hi @Jolyon,
You will get empty rows when you delete some rows after you first import the data from Excel. For example, at first I import 10 rows from Excel, then I delele 3 rows, after refresh I will get 3 empty rows in Power BI.
In order to remove the empty rows, you can go to Query Editor, click Filter for your "Category" column, then select Remove Empty.
Regards
Hi @Jolyon,
You will get empty rows when you delete some rows after you first import the data from Excel. For example, at first I import 10 rows from Excel, then I delele 3 rows, after refresh I will get 3 empty rows in Power BI.
In order to remove the empty rows, you can go to Query Editor, click Filter for your "Category" column, then select Remove Empty.
Regards
Thanks @v-ljerr-msft!
well, actually I didn't delete any rows in my first BI report, that's why it's a bit strange, that I have got empty rows from Excel now.
But anyway I just removed now empty rows, as you told. I will see, how the report will refresh next time;)
Thank you!
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 38 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 68 | |
| 66 | |
| 29 | |
| 26 | |
| 25 |