Rahul K
Rahul K

Reputation: 1

Popup in power BI via python scripts using input() function

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.

This, we are trying in power BI

This we want while loading data in POWER BI via python scripts

Thank you in advance for your suggestions and help.

Upvotes: 0

Views: 2291

Answers (1)

import random
import random

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:

tkinter.simpledialog.askinteger

Upvotes: 2

Related Questions