Reputation: 1
we are trying to get popup in POWER BI using python input() function, where user can provide the input and then scripts will load the data for particular business unit.
Thank you in advance for your suggestions and help.
Upvotes: 0
Views: 2291
Reputation: 3245
If you want a popup, you can use the in-built tkinter library simpledialog module.
Here's a minimal example:
import tkinter
from tkinter import simpledialog
root = tkinter.Tk()
# hide the root window because we only want to show dialogs
root.withdraw()
value = simpledialog.askinteger("My Title", "Enter an integer")
print(f"Value entered {value}")
This will show a popup looking like:
Upvotes: 2