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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
israeldavid76
New Member

Exportar Excel con Script de R en Power BI

Hola, amigos tengo este script en R

library("writexl")
write_xlsx(dataset, "C:/Users/David.Ortega/Documents/DatosDev/reporte_leterago.xlsx")
Funciona OK
pero solo me da un registro en la hoja en excel y quiero TODO el contenido de la tabla, cuando abro la ventana del script me menciona que las filas duplicadas se quitaran, pero se quitan todas. como hago para que exporte TODOS los datos de la consulta.
imagenimagen
Gracias
2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

@israeldavid76 ,

Así que el código R completo se ve así:

require(gdata)
write.table(trim(dataset), file=”your filepath & filename.txt”, sep = “\t”, row.names = FALSE)
plot(dataset);

Por favor refiérase a

Usar R para exportar datos desde Power BI – The BIccountant

Saludos

Esteban Tao

Si esta publicación ayuda, considere Aceptarla como la solución para ayudar a los otros miembros a encontrarla más rápidamente.

I need .xls, no txt, because with the opction export data, export a csv file, but my client need a XLSX. y just find the solution, Thanks.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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

Top Kudoed Authors