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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.