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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.