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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
bolabuga
Helper V
Helper V

Percentage of total "metric"

Hello everyone, 

 

Needing help making a metric for "percentage of total". There sample table. im not understaning how should i make a metric for summing a month and diving the result for the summing of "all" months.

 

 money%
jan/1578032,02%
fev/1531512,93%
mar/1531813,05%
abr/15102342,00%
total2436

 

REFERMONEY
jan/1510
jan/1520
jan/1530
jan/1540
jan/1550
jan/1560
jan/1570
jan/1580
jan/1590
jan/15100
jan/15110
jan/15120
fev/1530
fev/1539
fev/1548
fev/1557
fev/1566
fev/1575
mar/1548
mar/1569
mar/1590
mar/15111
abr/1548
abr/1557
abr/1566
abr/1575
abr/1584
abr/1593
abr/15102
abr/15111
abr/15120
abr/15129
abr/15138

 

 

2 ACCEPTED SOLUTIONS
bolabuga
Helper V
Helper V

I Found the solution for my own question here:

 

http://community.powerbi.com/t5/Desktop/percent-of-grand-total/m-p/59033#M24188

 

I should have searched more before posted :(.

View solution in original post

4 REPLIES 4
bolabuga
Helper V
Helper V

I Found the solution for my own question here:

 

http://community.powerbi.com/t5/Desktop/percent-of-grand-total/m-p/59033#M24188

 

I should have searched more before posted :(.

PavelR
Solution Specialist
Solution Specialist

Hi @bolabuga

 

I would recommend using Quick Calc and then Percent of grant total option. So create metric like

SumMoney = SUM(Data[MONEY])

And then add it twice to table, then do as in pic below

 

1. Quick calc:

quickcalc.PNG

 

2. Percent of grand total

GT.PNG

 

Outcome:

outcome.PNG

 

Regards.

Pavel

THKS PAVELIR, that solved the question and now im stuck at a newer related problem.

 

I thought the 1st question would solve my problem also for the subtotals, but its doing percentange of the grand total, and i need % of the subtotal in each years (like the total of each year is 100% and the summed % of the months of that year will be 100%).

 

I thought a slicer with year would solve the problem, but it keep showing the percentage related to grand total.

 

SUBTOTAL.PNG

subt2.PNG

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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