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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
MStark
Helper III
Helper III

Row Percentages

Im trying to get the % of potential customers by Item and my measure is only giving it by department. How can I get it for each Row?

This is what Im looking for in Excel:

MStark_0-1663341876002.png

In Power BI only getting the total:

MStark_1-1663341910557.png

 

Can anyone help with this?

 

If it helps, my excel data looks like this:

MStark_2-1663341955813.png

 

1 ACCEPTED SOLUTION

@MStark 
It should be rather 81.50, if you want to be precise:

vojtechsima_0-1663346701721.png

Measure = 

var Potential = CALCULATE(SUMX(FILTER('Table', 'Table'[Department name] = "Potential"), 'Table'[Amount]), ALL('Table'[Department name], 'Table'[Account title]))
var TheRest = SUM('Table'[Amount])
var check = DIVIDE(TheRest, Potential)
return check

 

 





Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.

View solution in original post

7 REPLIES 7
vojtechsima
Super User
Super User

Hello, @MStark 
You can do something like this:

vojtechsima_0-1663343050792.png

Measure = 

var Potential = CALCULATE(SUMX(FILTER('Table', 'Table'[Department name] = "Potentional"), 'Table'[Amount]), ALL('Table'))
var TheRest = SUM('Table'[Amount])
return DIVIDE(TheRest, Potential)
 





Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.

Thanks for taking the time to try to help!

I tried your measure but getting incorrect results. It might be because the Potential Sum is including the potential customers for all 3 months. Maybe the "All" is messing it up? Any ideas?

 

MStark_0-1663343841524.png

 

For May, the total percentage should be 82% 

 

 5/31/2022
1on1           0.03
Consulting           0.17
Corp           0.28
Online           0.31
Onsite                -  
Training           0.02
 82%

 

Thanks again for your assistance!

@MStark 
You're using a different formula than I do tho.
Please give me data in text form so I can play with them in my environment, please.

 





Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.

 

Location IDDepartment nameAccount titleEntry dateAmount
101Customers1on15/31/202231.00
101Customers1on16/30/202230.00
101Customers1on17/31/202231.00
101CustomersConsulting5/31/2022170.00
101CustomersConsulting6/30/2022292.00
101CustomersConsulting7/31/2022188.00
101CustomersCorp5/31/2022282.00
101CustomersCorp6/30/2022317.00
101CustomersCorp7/31/2022270.00
101CustomersOnline5/31/2022312.00
101CustomersOnline6/30/2022261.00
101CustomersOnline7/31/2022369.00
101CustomersOnsite7/31/2022132.00
101CustomersTraining5/31/202220.00
101CustomersTraining6/30/202299.00
101PotentialPossible costomers5/31/20221,000.00
101PotentialPossible costomers6/30/20221,000.00
101PotentialPossible costomers7/31/20221,000.00
101Revenue1on15/31/20221,200.00
101Revenue1on16/30/2022156.00
101Revenue1on17/31/2022165.00
101RevenueConsulting5/31/202219,999.00
101RevenueConsulting6/30/202256,555.00
101RevenueConsulting7/31/202246,468.00
101RevenueCorp5/31/20225,555.00
101RevenueCorp6/30/202255,556.00
101RevenueCorp7/31/202255,555.00
101RevenueOnline5/31/2022#########
101RevenueOnline6/30/2022#########
101RevenueOnline7/31/2022#########
101RevenueOnsite7/31/202265,000.00
101RevenueTraining5/31/2022#########
101RevenueTraining6/30/2022#########
101RevenueTraining6/30/2022#########

 

Thanks!!

@MStark 
It should be rather 81.50, if you want to be precise:

vojtechsima_0-1663346701721.png

Measure = 

var Potential = CALCULATE(SUMX(FILTER('Table', 'Table'[Department name] = "Potential"), 'Table'[Amount]), ALL('Table'[Department name], 'Table'[Account title]))
var TheRest = SUM('Table'[Amount])
var check = DIVIDE(TheRest, Potential)
return check

 

 





Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.

This works!! Thank you very Much!!

No problem @MStark 

 





Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.