Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
I have a R Shiny App and I am in the process of migrating some of the material into Power BI. My R script is as follows:
The circled script relies on an input from the user created in the App. Is there a way of incorporating such a variable input into Power BI as as of now i have hard coded the input. The "input$stockout" is an input from the user which is number of days a product is out of stock and ranges from 30, 60, 90 days etc.
Regards,
Chris
Hi Chris did the what if parameter work?
Hi @Chitemerere! You could use What-If parameters in power bi to feed in user input to your graph 😄
https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-what-if
Thank yo very much for your assistance, most appreciated.
Best regards,
Chris
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 21 | |
| 20 | |
| 18 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 51 | |
| 38 | |
| 31 | |
| 26 |