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
JFG123
Frequent Visitor

R Custom Power BI Visualization Variable Input Handling

I am trying to create a custom viz (scatter plot) with the ability to provide different options for colour and shape of the points using ggplot2.

 

My visualisation works fine when I specify both the Shape and Colour parameter, however, I want to be able to only supply one or the other down the road, not always both.

 

This is what my parameter options look like:

JFG123_0-1616658162753.png

 

While my R script.r file for ingesting data is:

JFG123_1-1616658242117.png

 

This is the error I get when I don't include Colour or Shape or both.

JFG123_2-1616658313806.png

 

I feel that the ability to handle not supplying an argument should be handled within the script which I have tried to do. However, I am now stuck.

 

 

 

 

0 REPLIES 0

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.

Top Solution Authors