R script in Power BI returns date as Microsoft.OleDb.Date

后端 未结 2 1397
滥情空心
滥情空心 2021-01-12 23:43

I\'m trying to transform a table in Power BI using the Run R Script functionality in Edit Query. The source of the table is a csv file with a colum

2条回答
  •  不要未来只要你来
    2021-01-13 00:23

    I already provided a solution in the comments, but I'll add a detailed suggestion here as well.

    The applied steps in Power BI and the resulting date column should look like this:

    Here are the details:

    1. After loading the data from the csv file, go to Edit Queries and change the data type to text:

    1. Run the R script

    2. Change the datatype back to date once the script has provided an output.

提交回复
热议问题