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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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

 

 

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)
 

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.

 

 

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

 

 

This works!! Thank you very Much!!

No problem @MStark 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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