Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
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:[email protected]:27017", verbose = TRUE)
users<- m$find()
users<-m$find() its working but how to write R Script for getting Count
Thanks and Regards
Herwin
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
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 27 | |
| 24 | |
| 18 | |
| 15 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 42 | |
| 41 | |
| 38 | |
| 37 |