Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote 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
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 63 | |
| 53 | |
| 42 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 123 | |
| 105 | |
| 44 | |
| 32 | |
| 24 |