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

PowerBI Dax - Division

Hello, I'm struggling to create DAX to display the following:

I want to divide every value in column 'consumedunits' to the grand total of the same column. To give a better understanding, I used excel to achieve this result and it looks like this:

bins007_0-1721709374710.png

The highlighted number is the SUM of column I (I7). The formula for Column J is =I2/I7. Basically a percent but I want it in decimal value.

I want the result from column J to be the same in PowerBI.

2 ACCEPTED SOLUTIONS
bhanu_gautam
Super User
Super User

@bins007 , Yesterday I replied to similar problem, first you need to create a measure using calculate and All for total value

 

TotalCaseFullRef = CALCULATE(SUM('Case Details'[CaseFullRef]), ALL('Case Details'))
Replace Case details with your table name and Case Full ref with column name
 
Then create one more measure for percentage 
 
DAXPercentageOfTotal =
DIVIDE(
    SUM('Case Details'[CaseFullRef]),
    [TotalCaseFullRef],
    0
)
 
Attaching PBIX for reference



Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

Anonymous
Not applicable

Rakesh1705_0-1721714950399.png

Please check it. Its a simple division.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Rakesh1705_0-1721714950399.png

Please check it. Its a simple division.

FreemanZ
Super User
Super User

hi @bins007 ,

 

you can add a calculated column like:

Column = DIVIDE([Units], SUM([Units]))

 

it worked like:

FreemanZ_0-1721711998508.png

 

or you plot a visual with [unit] column and a measure like:

WeightMeasure = 
DIVIDE(
    SUM(data[Units]),
    SUMX(all(data), [Units])
)

 

it works like:

FreemanZ_1-1721712129879.png

 

 

bhanu_gautam
Super User
Super User

@bins007 , Yesterday I replied to similar problem, first you need to create a measure using calculate and All for total value

 

TotalCaseFullRef = CALCULATE(SUM('Case Details'[CaseFullRef]), ALL('Case Details'))
Replace Case details with your table name and Case Full ref with column name
 
Then create one more measure for percentage 
 
DAXPercentageOfTotal =
DIVIDE(
    SUM('Case Details'[CaseFullRef]),
    [TotalCaseFullRef],
    0
)
 
Attaching PBIX for reference



Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.