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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
amalm
Helper III
Helper III

Scripting in R: Show a simple matrix visual with filters?

Hi, 

I'm just getting started with R, and I can't find a resource for this:

I want to basically build the same exact functionality as the Matrix visual in Power BI, and add some filters to it. 

 

There are 2 columns in the "Rows" section, and 4 Sums of columns in the "Values" section. Appreciate it if someone can give me a code for this. 

 

I've installed R and R Studio, even played around with a few packages but I couldn't get what I want.

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @amalm ,

 

Hope the online document can help you.

https://docs.microsoft.com/en-us/power-bi/desktop-r-visuals

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

@v-frfei-msft 

Thanks for the reply, but I had already gone through the document. It doesn't provide the script for a simple table, and I'm not able to figure it out from that. 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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