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:
Power BI takes both relevant and irrelevant rows(here it 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.
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?