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
ravimankotia
New Member

percentage

I need help on how to show percentage from 2 colomns in the matrix chart at the power bi using power query or any other function. 

 

See below example from MS excel - 

 

RegionsABPenetration using formula =B/(A+B)
Africa5611266.69%

 

how to I achieve this in the Power BI as this A & B value is selected using the filters from large set of dataset. 

3 REPLIES 3
ShirinArshadnia
Helper II
Helper II

@ravimankotia 

you can use this measure in order to achieve this purpose :

 

Measure Percentage =
VAR A_Rates =
SUM (Table[A] )
VAR B_Rates =
SUM (Table[B] )
RETURN
A_Rates /( B_Rates + A_Rates )
DOLEARY85
Resident Rockstar
Resident Rockstar

If you need it in power query a custom column with the below should work:

 

[B]/([A]+[B])

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

create a measure with DAX:

 

Measure  = CALCULATE(SUM('Table'[B]))/(CALCULATE(sum('Table'[A]))+CALCULATE(SUM('Table'[B])))
 
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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