Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Chitemerere
Responsive Resident
Responsive Resident

Variables/Parameters in R Script with Power BI

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:

 

Screenshot 2020-04-22 at 01.08.25.png

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

3 REPLIES 3
hp0709
Frequent Visitor

Hi Chris did the what if parameter work?

Anonymous
Not applicable

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.