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! Learn more

Reply
sbeerh
New Member

Custom Visual - total percentage calculation

Hi,

 

I am developping a custom visual to make a specific chart that shows percentages accross 2 dimensions and the totals, like the table below.

 

           a           b           c        Total

x         2.3%     5.1%    7.1%     4.0%

y        8.2%     2.0%     4.3%     5.0%

Total  5.4%     4.0%     5.2%     4.7%

 

To be able to calculate the totals, I don't use the percentage measure that is available in the data model, but the numerator and the denominator.

 

I realize now that in the matrix visual I can add a percentage measure and the totals of the matrix are calculated correctly. 

 

Is there a way to have the same behavior in a custom visual? I don't understand how I could sum a percentage directely, but I'm probably missing a power BI concept.

 

1 REPLY 1
v-evelk
Microsoft Employee
Microsoft Employee

Hi,

 

Please check Matrix Data Mapping here.

 

Kind Regards,

 

Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
pbicvsupport@microsoft.com

 

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.