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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
shaikhzdandg
Helper I
Helper I

How to get the percentage using the DIVIDE function in Power BI

I have a requirement to show a Percentage by Name in Power BI. What I need is shown in Column named (Category Type 2%)

 

I have done below in excel not quite getting the same result in Power BI

 

shaikhzdandg_1-1721388532205.png

 

 

1 ACCEPTED SOLUTION
PijushRoy
Super User
Super User

Hi @shaikhzdandg 

Please find the DAX

Category 2 % = 
DIVIDE(
    SUM('Table'[Total Rows]),
    CALCULATE(SUM('Table'[Total Rows]),ALL('Table'[Name])),
    0)

 

There are two rows with same AN name

PijushRoy_0-1721389517330.png

Accept as Solution if resolved your question




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





View solution in original post

3 REPLIES 3
shaikhzdandg
Helper I
Helper I

super, looks like its working Excellent and Many Thanks @PijushRoy 

@shaikhzdandg You are welcome




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





PijushRoy
Super User
Super User

Hi @shaikhzdandg 

Please find the DAX

Category 2 % = 
DIVIDE(
    SUM('Table'[Total Rows]),
    CALCULATE(SUM('Table'[Total Rows]),ALL('Table'[Name])),
    0)

 

There are two rows with same AN name

PijushRoy_0-1721389517330.png

Accept as Solution if resolved your question




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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