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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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