Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

wrong import from Excel - empty rows

$
0
0

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.
It worked for some time, till I refreshed it today and become a warning from Power BI, saying:

 

The table with Primary Keys can not contains NULL Values.
 

I checked the Excel Sheet, there are no NULL Values in the column with Primary Key.

The problem is, when refreshing the data Power BI takes into consideration also empty Excel rows after the last Data row, i.e.

If my Excel looks like this:

2.png

 

Power BI takes both relevant and irrelevant rows(here it is only an example, I have got actually minimum 500 null-rows):

 

1.png

 

That is why my Primary Key Table, which has the formula "Category ID = DISTINCT(Table1[Category])" can not refresh.

How can I "tell" Power BI to take only rows with data, and not empty rows?

I could probably manually delete these 500 rows in Power BI, but to do it weekly wouldn't be the wise solution.

 

Are there some other ideas?


Viewing all articles
Browse latest Browse all 213819

Trending Articles