Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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.
Area | Sum of money spent | Percentage based on total by area |
BO | 10,935 | 3.090992227 |
FA | 792 | 42.67676768 |
IA | 18016 | 1.876110124 |
IT | 4057 | 8.33127927 |
Total | 33,800 |
Thank you
Solved! Go to Solution.
Would a measure like this help?
Pct =
DIVIDE(
SUM( 'Table'[Sum of money spent] ),
CALCULATE(
SUM('Table'[Sum of money spent] ),
ALL( 'Table' )
)
)
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!!
Proud to be a Super User! | |
Im getting all the percentage values as 100.00% using your DAX measure
Would a measure like this help?
Pct =
DIVIDE(
SUM( 'Table'[Sum of money spent] ),
CALCULATE(
SUM('Table'[Sum of money spent] ),
ALL( 'Table' )
)
)
This worked perfectly. Thank you 🙂
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
124 | |
79 | |
50 | |
38 | |
38 |
User | Count |
---|---|
195 | |
80 | |
70 | |
51 | |
42 |