Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hello Folks,
I have a python code which needed to be parameterized in power bi . You can see the below python code . I have three parameters called user, pw and server_address
from tableau_api_lib import TableauServerConnection
from tableau_api_lib.utils.querying import get_views_dataframe
username = "" & user & ""'
password = '"" & pw & ""'
server = '"" & server_address & ""'
tableau_server_config_ft = {
'my_env': {
'server': server ,
'username': username,
'password': password
}
}
conn = TableauServerConnection(tableau_server_config_ft, env='my_env')
conn.sign_in()
But If i put my credentials in the code as it is, this works.
Can somebody help me regarding this?
@srigag900 , You should be able to use M parameters here
https://learn.microsoft.com/en-us/power-query/power-query-query-parameters
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
86 | |
85 | |
84 | |
67 | |
49 |
User | Count |
---|---|
131 | |
110 | |
97 | |
71 | |
67 |