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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
her
Helper III
Helper III

How to Write Mongo Query(Intellishell) in Power BI Using R Script

Hi,

I have more than 3Million Records and mongodb connect via odbc but its performance is very slow,

then i tried connect via  R Script  its connected below query used:

library("mongolite")
m<- mongo(collection= "users", db = "admin", url = "mongodb://admin:root@127.0.0.1:27017", verbose = TRUE)
users<- m$find()

users<-m$find() its working but how to write R Script for getting Count

 

Thanks and Regards

Herwin

 

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @her ,

 

To be honest, I am not an expert of R, hope the online document can help you.

https://docs.microsoft.com/en-us/power-bi/desktop-r-scripts

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @v-frfei-msft 

 

Thank you so much your response

 

thanks and regards

Herwin

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.