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
Anonymous
Not applicable

Total percentage value with a specific formula-Matrix visual

Hi All,

I have a client requirement to display the total percentage value with a specific formula, I am not sure if we can display the total of a matrix with a measure.

In the below screenshot Percentage (B/A) = 0.80% is the output by dividing column B with A i.e 2,933/368,294

But my requirement is to add Column B (859+489+50) for all non-zero values of Column A  i.e.

1,398/368,294=0.38%

 

so my client requirement is to display the 0.38% instead of 0.80%.

Please find the sample data for reference.

 

Forum.PNG

 

 

 

Please share the steps to achieve this in Power BI desktop

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

"Column A and Column B are measures."

Since I don’t know your measure formula, so I just give an example.

Please refer to my .pbix file.

v-lionel-msft_0-1602565037135.png

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

The solution will depend upon whether A and B are measures or not.  Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
FrankAT
Community Champion
Community Champion

Hi @Anonymous 

you can do it like this:

 

09-10-_2020_22-09-00.png

 

Percentage = 
VAR _SumB_OnlyByNonA_Blank = 
    CALCULATE(
        SUM('Table'[B_]),
        FILTER(
            'Table',
            'Table'[A] <> BLANK()
        )
    )
RETURN
    DIVIDE(_SumB_OnlyByNonA_Blank,[A])

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

Anonymous
Not applicable

Hi @FrankAT ,

 

Column A and Column B are measures.

 

Could you share a tip to handle this requirement if we have measures?

Hi @Anonymous ,

 

"Column A and Column B are measures."

Since I don’t know your measure formula, so I just give an example.

Please refer to my .pbix file.

v-lionel-msft_0-1602565037135.png

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors