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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors