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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply

Calculate number need to achieve target %

Hi all - I have a dataset which looks at performance or marking papers within a target timeframe of 7 days (<= 7 days).  I compare 'this week' to 'last week' in terms of %.  I have all the required %'s in terms of showing what % is this week, and the % last week.  What I'd like to calculate though, is the number needed from this week to have achieved the target of 70%.

 

So, for example, if this week was 68% - then 2% needs to obivously be added but I'm not sure how to calculate this in terms of the number in the data to get to that 70% target.

 

The sample data demonstrates what I'm trying to say, as well as providing the basic fields I have in my dataset to work with.

 

'This Week' is a changing number as the report is refreshed daily, so the % will change on a daily baisis.  The reason for adding the calculation required to reach 70%, is because it will provide an actual 'live' number at that point in the week, in terms of what the examiners need to do to get to 70%, otherwise they don't really know until it's too late for the next week's target.

 

Sample data linked - let me know if you need more clarification.

 

Sample Data 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Creative_tree88 ,
Thanks for parry2k reply.
Let's say you have a table called Papers that contains TotalPapers and MarkedPapers columns.
You can create a mesure

 

NeededToTarget = 
VAR CurrentPercent = DIVIDE(SUM(Papers[MarkedPapers]), SUM(Papers[TotalPapers]), 0) * 100
VAR TargetPercent = 70
VAR TotalPapers = SUM(Papers[TotalPapers])
VAR CurrentMarkedPapers = SUM(Papers[MarkedPapers])
VAR TargetMarkedPapers = (TargetPercent / 100) * TotalPapers
VAR NeededPapers = TargetMarkedPapers - CurrentMarkedPapers
RETURN NeededPapers

 

 

Best regards,
Albert He


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Creative_tree88 ,
Thanks for parry2k reply.
Let's say you have a table called Papers that contains TotalPapers and MarkedPapers columns.
You can create a mesure

 

NeededToTarget = 
VAR CurrentPercent = DIVIDE(SUM(Papers[MarkedPapers]), SUM(Papers[TotalPapers]), 0) * 100
VAR TargetPercent = 70
VAR TotalPapers = SUM(Papers[TotalPapers])
VAR CurrentMarkedPapers = SUM(Papers[MarkedPapers])
VAR TargetMarkedPapers = (TargetPercent / 100) * TotalPapers
VAR NeededPapers = TargetMarkedPapers - CurrentMarkedPapers
RETURN NeededPapers

 

 

Best regards,
Albert He


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

parry2k
Super User
Super User

@Creative_tree88 Not sure if I understood but maybe this is what you need:

 

Required % = 
.7 - [Your Existing % Calculation Measure]

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors