将数据从 Power BI 导出到 SQL Server 克服了 150k 行的限制

编程入门 行业动态 更新时间:2024-10-26 04:26:42
本文介绍了将数据从 Power BI 导出到 SQL Server 克服了 150k 行的限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

有没有办法克服 Power BI 导出最大 15 万行的限制?

限制文档:

它将整个 M 表导出到 SQLEXPRESS(或您提供的任何 SQL Server)到数据库 MyDataBase 到表 MyR_table(该表是动态创建的,不会必须首先在 SQL Server 上创建).就我而言,它在 8 分半钟内转储了 201k 行的整个测试表.

进一步参考的链接:biinsight/exporting-power-bi-data-to-sql-server/www.youtube/watch?v=ANIZkTZO3eU

Is there a way to overcome the Power BI export max limit of 150k rows?

Limit docs: docs.microsoft/en-us/power-bi/visuals/power-bi-visualization-export-data#limitations-and-considerations

Voting for PBI improvement: ideas.powerbi/forums/265200-power-bi-ideas/suggestions/18432742-increase-export-data-limits

解决方案

It is possible to export data from Power BI to SQL Server without any limit. You should be familiar with R and SQL Server to do that. The example below exports 201k rows directly from PBI to SQL Server. Install RODBC package in R. For those who want to do that from scratch, please check the reference links.

Here is an example. Generate a test table in Power BI with 201k rows:

let Source = List.Generate(()=>1, each _ < 201001, each _ + 1), #"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error) in #"Converted to Table"

The table is one Column1 with values starting from 1 to 201001. So beyond the PBI limit.

Out with that through R. Menu Transform / Run R Script. Paste the code:

library(RODBC) conn <- odbcDriverConnect("driver=SQL Server;server=.\\SQLEXPRESS;Database=MyDataBase") odbcClearError(conn) sqlSave(conn, dataset, tablename="MyR_table",rownames=FALSE, safer=FALSE, append=FALSE) close(conn)

It will export the entire M table to SQLEXPRESS (or any SQL Server that you provide) to database MyDataBase to table MyR_table (the table is created dynamically, does not have to be created first on SQL Server). In my case, it dumped the whole test table of 201k rows in 8 and a half minutes.

Links for further reference: biinsight/exporting-power-bi-data-to-sql-server/ www.youtube/watch?v=ANIZkTZO3eU

更多推荐

将数据从 Power BI 导出到 SQL Server 克服了 150k 行的限制

本文发布于:2023-10-30 07:59:56,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1542250.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:导出到   数据   克服了   Power   BI

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!