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
odada11
Helper I
Helper I

DAX TO CALCULATE THE PERCENTAGE OF TOTAL

Hello All,

pls i have a table

odada11_0-1677696188398.png

How do i calculate the percentage of total for PNT that belongs to each segment. pls help with the Dax

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @odada11 

try to plot a table bisual with the segment column and a measure like:
Pct =
DIVIDE(
   SUM(TableName[PNT]),
   CALCULATE(
        SUM(TableName[PNT]), 
        ALL(TableName[segment])
    )
)

View solution in original post

2 REPLIES 2
FreemanZ
Super User
Super User

hi @odada11 

try to plot a table bisual with the segment column and a measure like:
Pct =
DIVIDE(
   SUM(TableName[PNT]),
   CALCULATE(
        SUM(TableName[PNT]), 
        ALL(TableName[segment])
    )
)

Thank you very much

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.