Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Passing What-if Paramaters into R script
01-30-2023
10:08 AM
Hi,
Is there a way to allow users to pass a what-if paramater as a value or date as an argument in R functions within the R script visual? lets say I have a script within my R script visual and there is a function which takes one argument:
Function(argument)
I would like the what-if parameter when seleceted by the user to be passed into the function argument.
E.g user selects a date "2022-01-01" as the what-if paramater within the reports tab this is now passed into the R script visual and the function will take the "2022-01-01" as the argument: Function("2022-01-01")
Thanks HP
0 REPLIES 0

Helpful resources
Announcements
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Recommendations
Subject | Author | Posted | |
---|---|---|---|
10-10-2024 03:34 AM | |||
07-04-2024 12:32 PM | |||
10-22-2024 02:45 AM | |||
01-13-2025 07:48 AM | |||
11-13-2024 02:48 PM |
Top Solution Authors (Last Month)
User | Count |
---|---|
12 | |
2 | |
2 | |
2 | |
1 |
Top Kudoed Authors (Last Month)
User | Count |
---|---|
13 | |
6 | |
3 | |
3 | |
2 |