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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. 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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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