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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.