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
geeklarokcmie
Helper III
Helper III

Calculate percentage based on the area

Hello experts,

 

I'm looking for a measure that calculates a percentage based on the total of all the money spent divided by sum of money spent in each area.

AreaSum of money spentPercentage based on total by area
BO10,9353.090992227
FA79242.67676768
IA180161.876110124
IT40578.33127927
Total33,800 

 

Thank you

 

1 ACCEPTED SOLUTION

Hi @geeklarokcmie 

 

Would a measure like this help?

Pct = 
    DIVIDE(
        SUM( 'Table'[Sum of money spent] ),
        CALCULATE(
            SUM('Table'[Sum of money spent] ),
            ALL( 'Table' )
        )
    )


Proud to be a Super User!

daxformatter.com makes life EASIER!

View solution in original post

4 REPLIES 4
rajendraongole1
Super User
Super User

Hi @geeklarokcmie - First, create a measure to calculate the total amount spent.

 

Eg: TotalAmountSpent = SUM(SpendingData[some of amount spent])

create an one more measure to calculate the percentage of money spent in each area

 

PercentageSpentInArea =
DIVIDE(
SUM(SpendingData[Amount]),
[TotalAmountSpent],
0
)

 

use the above measure in your table chart and see the values will work as per expectations.

 

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Im getting all the percentage values as 100.00% using your DAX measure

Hi @geeklarokcmie 

 

Would a measure like this help?

Pct = 
    DIVIDE(
        SUM( 'Table'[Sum of money spent] ),
        CALCULATE(
            SUM('Table'[Sum of money spent] ),
            ALL( 'Table' )
        )
    )


Proud to be a Super User!

daxformatter.com makes life EASIER!

This worked perfectly. Thank you 🙂

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors