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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
AMBP73
Helper I
Helper I

Calculate percentage between multiple values in the same colum

Hello,

I am trying calculate the percentage between values in the same column, but using more than one value as the difference. For example count of yes and potential (total %) v not reviewed and no. I would like to display % of yes and potential (together) vs total count in a card. I.e. yes/potential is % of total.

Thanks in advance for any assistance 🙂

AMBP73_0-1693181433806.png

 

 

1 ACCEPTED SOLUTION
Mahesh0016
Super User
Super User

@AMBP73  I hope this helps you. if no please share your Expected Result in the table for a better understanding. Thank You.

Mahesh0016_0-1693197960457.png

> Get total count of review column

Count Review =
CALCULATE (
    COUNT ( 'Table Review'[Review] ),
    ALLSELECTED ( 'Table Review'[Review] )
)

#######################
Yes/Potentail Count =
CALCULATE (
    COUNT ( 'Table Review'[Review] ),
    'Table Review'[Review] IN { "Yes","Potential" }
)
 
#################################
Yes/Potential % =
DIVIDE ( [Yes/Potentail Count], [Count Review], 0 )

View solution in original post

4 REPLIES 4
Mahesh0016
Super User
Super User

@AMBP73  I hope this helps you. if no please share your Expected Result in the table for a better understanding. Thank You.

Mahesh0016_0-1693197960457.png

> Get total count of review column

Count Review =
CALCULATE (
    COUNT ( 'Table Review'[Review] ),
    ALLSELECTED ( 'Table Review'[Review] )
)

#######################
Yes/Potentail Count =
CALCULATE (
    COUNT ( 'Table Review'[Review] ),
    'Table Review'[Review] IN { "Yes","Potential" }
)
 
#################################
Yes/Potential % =
DIVIDE ( [Yes/Potentail Count], [Count Review], 0 )

Thankyou so much Mahesh0016, this worked perfectly 😊👍

it's my pleasure🤗.

Hello Mahesh0016. 

Sorry to be painful, one more this please. When I put this measure in a card visual and filter in a slicer by the same field, it is returning some strange results I.e. 340% for 'not reviewed', and 1020% for 'no'. I would have expected 0%?  When filtering by those values?

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.