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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.