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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors