Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply

Power Bi Imported dataset is not working with R scripts showing error that object "Column" not found

Hello Everyone i need help urgently 

I have imported an excel file in power bi now i wanted to visualize using R so when i started working with R i am geeting an error that (object "Column" not found)  and the thing is column is successfully imported and when i created a manual data in R editior it is showing me plots successfully but when i am using power bi imported data with  R script  is showing the above mentioned error even i checked the code but their is nothing wrong with the code i am also attaching the screenshot for your refrences please help if anyone knows it's solution.

 

Error Screenshot (See in the fields section columns are successfully imported, and see the code editor code is also correct, manually created data plots are also showing, only this issue is happening with power bi imported data why ?)

Ayush_tiwari08_0-1625651760326.png

 

1 ACCEPTED SOLUTION

Well i have solved the problem See the below Screenshot code in R script editor all you have to do is Comment the dataset variable in the editor by default it comes commented but i had uncommented it that's why i saw that error. now see after runnig that code i got output.

 

Ayush_tiwari08_0-1625824752388.png

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Ayush_tiwari08 

I searched in Forums and found a similar issue , maybe you can refer to it .

https://community.powerbi.com/t5/Desktop/R-Script-Error-quot-object-not-found-quot/m-p/725097

 

Best Regards

Community Support Team _ Ailsa Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Well i have solved the problem See the below Screenshot code in R script editor all you have to do is Comment the dataset variable in the editor by default it comes commented but i had uncommented it that's why i saw that error. now see after runnig that code i got output.

 

Ayush_tiwari08_0-1625824752388.png

 

amitchandak
Super User
Super User

@Ayush_tiwari08 , As R is case sensitive I has doubt xlab and ylab, which uses sales not Sales. profit, not Profit.

But this error is even before it. Still change those and check

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

These are just label titles these parameters doesn't matter and i did changed them but still there is the same error.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.