Forum Discussion

edaugherty's avatar
edaugherty
Regular Visitor
5 years ago
Solved

Using R script in Power Query - Error associated with factor level recognition

I have an Excel file that I want to transform in Power Query using R script. The script runs fine in R Studio, but when I run it as a query in Power Query, I get the error: Error in relevel.factor(da...
  • edaugherty's avatar
    edaugherty
    5 years ago

    It would appear that the problem was due to a space being entered at the end of "Factor A ". Trimming white space solved the problem. Of course, now I have another problem, but I'll put that in another thread.