Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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:
While my R script.r file for ingesting data is:
This is the error I get when I don't include Colour or Shape or both.
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.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 2 | |
| 2 | |
| 2 |