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

PowerBI 中的交互式對話框

Interactive Dialog Box in PowerBI(PowerBI 中的交互式對話框)
本文介紹了PowerBI 中的交互式對話框的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

有沒有辦法在 PowerBI 中創建交互式對話框?

我在查詢編輯器中嵌入了 R 腳本,并且我希望有一個可以使用的交互方面:

 file<-winDialogString("文件輸入?","")

此輸入將用作讀取 csv 的文件位置,每次有人打開并執行 PowerBI 文件的主副本時,他們都可以輸入新的文件位置.

我也對 html、javascript、python... 任何可以提供幫助的東西持開放態度.

解決方案

實現您在 Power BI 中提到的最佳方法是利用

讓Source = Csv.Document(File.Contents("\MacHomeDownloadsSalesJan2009.csv"),[Delimiter=",", Columns=12, Encoding=1252, QuoteStyle=QuoteStyle.None]),#"PromoteHeaders" = Table.PromoteHeaders(Source, [PromoteAllScalars=true]),#"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"Transaction_date", type datetime}, {"Product", type text}, {"Price", Int64.Type}, {"Payment_Type",鍵入文本},{名稱",鍵入文本},{城市",鍵入文本},{州",鍵入文本},{國家",鍵入文本},{帳戶創建",鍵入日期時間},{"Last_Login", type datetime}, {"Latitude", type number}, {"Longitude", type number}})在#改變類型"

如果我們希望用戶輸入文件位置(即\MacHomeDownloads),我們可以在Power BI中設置一個參數:

然后我們可以更新查詢使用參數:(Query -> Advanced Editor)

讓Source = Csv.Document(File.Contents(#"FileLocation" & "SalesJan2009.csv"), ......

如果用戶以后想更改參數(文件位置),他們可以編輯參數并應用更改以刷新數據.

附:您甚至可以進一步 將 Power BI 文件導出為模板以允許用戶將其實例化為新的 Power BI Desktop 報表(PBIX 文件).

Is there a way to create an interactive Dialog box in PowerBI?

I have R script embedded into the query editor, and I would like to have an interactive aspect to where I can use:

    file<-winDialogString("File input?","")

This input would be used as the file location for a read csv and everytime someone opens and executes the Master copy of the PowerBI file, they can input a new file location.

I am also open to html, javascript, python... anything that could help.

解決方案

The best way to achieve what you mentioned in Power BI is to make use of parameters and parameterize your queries to get the csv file.

Say we have a csv file named SalesJan2009.csv. When you import it to Power BI you should have something like:

let
    Source = Csv.Document(File.Contents("\MacHomeDownloadsSalesJan2009.csv"),[Delimiter=",", Columns=12, Encoding=1252, QuoteStyle=QuoteStyle.None]),
    #"Promoted Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true]),
    #"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"Transaction_date", type datetime}, {"Product", type text}, {"Price", Int64.Type}, {"Payment_Type", type text}, {"Name", type text}, {"City", type text}, {"State", type text}, {"Country", type text}, {"Account_Created", type datetime}, {"Last_Login", type datetime}, {"Latitude", type number}, {"Longitude", type number}})
in
    #"Changed Type"

If we want users to input the file location (i.e. \MacHomeDownloads), we can set up a parameter in Power BI:

Then we can update the query to use the parameter: (Query -> Advanced Editor)

let
    Source = Csv.Document(File.Contents(#"FileLocation" & "SalesJan2009.csv"), ...
    ...

If users want to change the parameter (file location) later on, they can edit the parameter and apply changes to refresh the data.

P.S. You can even further export the Power BI file as a template to allow users to instantiate it as a new Power BI Desktop report (PBIX file).

這篇關于PowerBI 中的交互式對話框的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

相關文檔推薦

discord.js v12: How do I await for messages in a DM channel?(discord.js v12:我如何等待 DM 頻道中的消息?)
how to make my bot mention the person who gave that bot command(如何讓我的機器人提及發出該機器人命令的人)
How to fix Must use import to load ES Module discord.js(如何修復必須使用導入來加載 ES 模塊 discord.js)
How to list all members from a specific server?(如何列出來自特定服務器的所有成員?)
Discord bot: Fix ‘FFMPEG not found’(Discord bot:修復“找不到 FFMPEG)
Welcome message when joining discord Server using discord.js(使用 discord.js 加入 discord 服務器時的歡迎消息)
主站蜘蛛池模板: 亚洲欧美一区二区三区国产精品 | 久久久久久久一区二区 | 日韩a视频| 国产精品成人品 | 国产精品久久久久久久久动漫 | 91精品国模一区二区三区 | 伊人伊成久久人综合网站 | 精品久久久久久久人人人人传媒 | 天天躁日日躁aaaa视频 | 一级二级三级黄色 | 欧美电影大全 | 另类二区 | 久久99精品国产麻豆婷婷 | 国产精品91久久久久久 | 毛片免费在线观看 | 久久久久国产精品午夜一区 | 99久久精品免费看国产四区 | 成人亚洲精品 | 激情国产在线 | 一级a爱片性色毛片免费 | 欧美三级免费观看 | 高清欧美性猛交 | 一级美国黄色片 | 青青青伊人 | 超碰97免费在线 | 99爱在线 | 高清成人免费视频 | 午夜伦理影院 | 黄视频网址 | 国产精品久久久久久久久久 | 精品国产18久久久久久二百 | 超碰在线人人干 | 美女国产 | 欧美在线观看网站 | 日韩在线播放中文字幕 | 激情婷婷| 欧美精品一区二区在线观看 | 午夜影院视频在线观看 | 亚洲一二三区在线观看 | 国产精品永久免费 | 国产成人99久久亚洲综合精品 |