Good morning All,
I have a PowerBI project with data from an Excel stored on SharePoint. Here and then it happens that no data is loaded after refresh into PowerBI. It is after someone has updated values in the file . It seems to be caused by the only column that has a formula (=HLOOKUP($A$1;KPI_ACTIVE_COU;ROW()-1;FALSE). I get Error in the query: DataFormat.Error: Invalid cell value 'VALUE!'
The only working fix I found so far was to unhide all the columns. I use the following macro for that:
The only solution I found so far that works each time I don't get the data is to go to the source file and unhide all columns using VBA macro that was there in the file:
' Unhide all cells and columns
Dim PageName As Variant
Dim index As Integer
i = 2
Do While i < 20
PageName = Sheets("Column").Range("A" & i).Value
ActiveWindow.FreezePanes = False
Selection.EntireColumn.Hidden = False
i = i + 1
I do not know why it works but it works. I tried to replicate the issue by hiding/grouping/freezing some columns as I saw that when it was not working some columns/rows were grouped, hidden or frozen etc. and since there is unpivot step in the query that was my suspect no. 1 but the load was always working. Nevertheless if it does not work the above macro to unhide all solves it 🤔
In other words how to find the source of this DataFormat.Error: Invalid cell value 'VALUE!' error and how to fix it?
Anyone had similar problem maybe? I would appreciate any help.