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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
Memorable Member
Memorable Member

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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