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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
TheQ
Frequent Visitor

Dynamic R GGPlot Visuals Based on Slicer

Hi everyone,

 

I haven't been able to find much about R in Power BI related to my task. Basically, I'd like to use a slicer to dynamically change an R visual. For example, a slicer to change the x-axis (e.g. if we're talking sales, I'd like to change the x-axis between Product Category, Country, and Buyer using a slicer). If that is possible, then I'd also be able to do the same to color/fill the graphs depending on a slicer as well.

 

So far I've tried to use Field Parameters as an input, but it gives me the object not found error even though I've added the Field Parameter to the visualization and called it out in the R code.

 

Is this possible to do with R in Power BI?

 

Thanks in advance!

1 REPLY 1
v-zhangti
Community Support
Community Support

Hi, @TheQ 

 

Based on my research, for your requirement, I'm afraid it couldn't achieve in Power BI for now.

 

As a workaround, Please have a look at these posts to check if it could help you.

Dynamically switching axis on visuals with Power BI - Kasper On BI

Solved: Dynamic change in X Axis - Microsoft Power BI Community

Dynamic color for slicer - Microsoft Power BI Community

 

You can submit an idea for it at  https://ideas.powerbi.com/forums and wait for users with the same needs as you to vote for you to help make it happen as soon as possible.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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