久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <small id='BYR6Z'></small><noframes id='BYR6Z'>

      <bdo id='BYR6Z'></bdo><ul id='BYR6Z'></ul>
  • <tfoot id='BYR6Z'></tfoot>

    1. <legend id='BYR6Z'><style id='BYR6Z'><dir id='BYR6Z'><q id='BYR6Z'></q></dir></style></legend>

        <i id='BYR6Z'><tr id='BYR6Z'><dt id='BYR6Z'><q id='BYR6Z'><span id='BYR6Z'><b id='BYR6Z'><form id='BYR6Z'><ins id='BYR6Z'></ins><ul id='BYR6Z'></ul><sub id='BYR6Z'></sub></form><legend id='BYR6Z'></legend><bdo id='BYR6Z'><pre id='BYR6Z'><center id='BYR6Z'></center></pre></bdo></b><th id='BYR6Z'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='BYR6Z'><tfoot id='BYR6Z'></tfoot><dl id='BYR6Z'><fieldset id='BYR6Z'></fieldset></dl></div>

        如何使用 C# 以編程方式編輯 Power BI Desktop 文檔參

        How to edit Power BI Desktop document parameters or data sources programmatically with C#?(如何使用 C# 以編程方式編輯 Power BI Desktop 文檔參數或數據源?)
            <bdo id='kyXvP'></bdo><ul id='kyXvP'></ul>
            <i id='kyXvP'><tr id='kyXvP'><dt id='kyXvP'><q id='kyXvP'><span id='kyXvP'><b id='kyXvP'><form id='kyXvP'><ins id='kyXvP'></ins><ul id='kyXvP'></ul><sub id='kyXvP'></sub></form><legend id='kyXvP'></legend><bdo id='kyXvP'><pre id='kyXvP'><center id='kyXvP'></center></pre></bdo></b><th id='kyXvP'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='kyXvP'><tfoot id='kyXvP'></tfoot><dl id='kyXvP'><fieldset id='kyXvP'></fieldset></dl></div>

            <small id='kyXvP'></small><noframes id='kyXvP'>

              <tfoot id='kyXvP'></tfoot>

                • <legend id='kyXvP'><style id='kyXvP'><dir id='kyXvP'><q id='kyXvP'></q></dir></style></legend>
                    <tbody id='kyXvP'></tbody>
                  本文介紹了如何使用 C# 以編程方式編輯 Power BI Desktop 文檔參數或數據源?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我有一個內置在 Power BI Desktop 中的報表模板,并保存為 .pbix 或 .pbit 文件.此模板使用 DirectQuery SQL 數據庫作為數據源,而將服務器地址和數據庫名稱提取到參數中.還有一個參數包含一個 ReportId,用于查詢.

                  I have a report template which is built in Power BI Desktop and is saved as .pbix or .pbit file. This template uses DirectQuery SQL database as data source, whereas server address and database name are extracted to parameters. There is also a parameter which holds a ReportId, which is used in queries.

                  我還有一個 C# 應用程序,它應該從這個模板生成 Power BI Desktop 報告.
                  如何以編程方式創建具有特定參數的報告?
                  當您打開 .pbit 模板文件、輸入參數并生成 .pbix 文檔時,Power BI Desktop 之類的東西會自行執行.

                  I also have a C# application, which is supposed to generate Power BI Desktop reports from this template.
                  How can create a report with specific parameters programmatically?
                  Something like Power BI Desktop does itself when you open .pbit template file, enter parameters and it generates .pbix document.

                  我沒有找到任何適用于 Power BI Desktop 的 SDK Interop 庫.
                  我嘗試以 ZIP 格式打開文檔,但 DataModel 文件已存檔,因此不是格式良好的 XML.
                  我也嘗試將此參數提取到 JSON 文件并將其作為數據源加載,但 Power BI 不支持相對路徑.

                  I didn't find any SDK Interop libraries for Power BI Desktop.
                  I have tried to open a document as ZIP, but DataModel file is archived, and therefore not a well-formed XML.
                  I have also tried to extract this parameters to JSON file and load it as a data source, but relative paths are not supported by Power BI.

                  推薦答案

                  沒有可用于執行此操作的 SDK 或 API.如果將此報告發布到 Power BI Online,則可以使用 更新參數和更新組內參數 REST API 調用以更改參數值.我相信 Power BI Reporting Server 有類似的 API,但我沒有這方面的經驗.

                  There is no SDK or API you can use to do that. If you publish this report to Power BI Online, you can use Update Parameters and Update Parameters In Group REST API calls to change the parameter values. I believe Power BI Reporting Server has similar API, but I do not have experience with it.

                  您可以嘗試在線發布報告并保留(無需與任何人共享).當您需要帶有某個參數值的報告時,調用上面的 API 方法更改值,然后使用 導出報告 或 在組中導出報告 方法.它很丑陋且不是線程安全的,但可能會工作......

                  You could try to publish the report online and keep it there (it is not needed to share it with anyone). When you need a report with some parameter value, call the API methods above to change the value, and then download the modified .pbix file using Export Report or Export Report In Group methods. It's ugly and not thread safe, but may work...

                  您說您查看了提取的 .pbix 中的 DataModel 文件.我認為參數和 M 查詢在 DataMashup 中(搜索 RootFormulaTextReferencedQueriesFormulaText 文本以找到它們).服務器和數據庫名稱也在那里.您可以相對容易地修改 M 查詢、現有參數的值或服務器/數據庫名稱,并嘗試重新打包 .pbix 文件.它可能有效,但看起來非常不受支持.

                  You said you looked at DataModel file in the extracted .pbix. I think the parameters and M queries are in DataMashup (search for RootFormulaText or ReferencedQueriesFormulaText text to find them). The server and database names are also there. You can relatively easy modify the M query, the value of existing parameter or server/database name, and try to re-pack the .pbix file. It may work, but looks extremely unsupported.

                  我嘗試在 Power BI Desktop 中將 SSMS 連接到報表的 SSAS,但我沒有找到以這種方式修改參數值的方法.不過,我可以在源查詢中看到它們的值(如果該參數用作過濾器).

                  I tried to connect with SSMS to the report's SSAS in Power BI Desktop, but I didn't find a way to modify parameter value this way. I can see their values in the source queries, though (if the parameter is used as a filter).

                  我正在使用類似的東西,但不是參數,而是將報告嵌入到我的應用程序中并使用 過濾器.這樣,所有用戶都可以訪問同一份報告,我不需要為他們的特定需求定制".pbix.

                  I'm using something similar, but instead of parameters, I'm embedding the report in my application and use filters. This way all users access one and the same report and I do not need to "tailor" the .pbix for their specific needs.

                  恐怕這不是一個能解決你問題的答案,但我希望它能給你一些想法,你能做什么或不能做什么!

                  I'm afraid this isn't an answer that will solve your problem, but I hope it will give you some ideas what you can or can't do!

                  這篇關于如何使用 C# 以編程方式編輯 Power BI Desktop 文檔參數或數據源?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Ignore whitespace while reading XML(讀取 XML 時忽略空格)
                  XML to LINQ with Checking Null Elements(帶有檢查空元素的 XML 到 LINQ)
                  Reading XML with unclosed tags in C#(在 C# 中讀取帶有未閉合標簽的 XML)
                  Parsing tables, cells with Html agility in C#(在 C# 中使用 Html 敏捷性解析表格、單元格)
                  delete element from xml using LINQ(使用 LINQ 從 xml 中刪除元素)
                  Parse malformed XML(解析格式錯誤的 XML)

                      <bdo id='VRr3I'></bdo><ul id='VRr3I'></ul>
                      <i id='VRr3I'><tr id='VRr3I'><dt id='VRr3I'><q id='VRr3I'><span id='VRr3I'><b id='VRr3I'><form id='VRr3I'><ins id='VRr3I'></ins><ul id='VRr3I'></ul><sub id='VRr3I'></sub></form><legend id='VRr3I'></legend><bdo id='VRr3I'><pre id='VRr3I'><center id='VRr3I'></center></pre></bdo></b><th id='VRr3I'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='VRr3I'><tfoot id='VRr3I'></tfoot><dl id='VRr3I'><fieldset id='VRr3I'></fieldset></dl></div>

                    • <tfoot id='VRr3I'></tfoot>
                        <legend id='VRr3I'><style id='VRr3I'><dir id='VRr3I'><q id='VRr3I'></q></dir></style></legend>
                          <tbody id='VRr3I'></tbody>

                        <small id='VRr3I'></small><noframes id='VRr3I'>

                          1. 主站蜘蛛池模板: www.国产91| 欧产日产国产精品国产 | 九九热在线免费视频 | 亚洲视频一区 | 黑人中文字幕一区二区三区 | 亚洲精品视频一区 | 日日av| 五十女人一级毛片 | 在线欧美视频 | 午夜精品一区二区三区免费视频 | 精品国产1区2区3区 一区二区手机在线 | 欧美一级免费观看 | 男女午夜免费视频 | 99久久精品国产一区二区三区 | 久久大陆 | 国产精品一区二区在线观看 | 五月天国产视频 | 亚洲精品国产电影 | 欧美精品一区二区三区在线播放 | 精品综合 | 日韩欧美精品 | 久久久久久艹 | 亚洲精品一区av在线播放 | 欧美国产精品一区二区 | 国产在线观看一区二区三区 | 欧美三区视频 | 欧美日韩精品久久久免费观看 | 精品国产乱码久久久久久闺蜜 | 欧美一区二区三区在线观看视频 | 国产精品成人在线 | 91视频麻豆 | 亚洲视频一区在线 | 永久www成人看片 | 黄色国产 | 精品欧美乱码久久久久久 | 射久久| 91久久综合 | 国产乱xxav | 国产精品视频久久久 | 亚洲欧美日韩电影 | 国产成人精品一区二区三区 |