Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi,
I have some project data in Excel that I report on using PowerBI.
Here's a snippet of the data and some information on what I wish to do:-
Requirement: Duration Days excluding 'Pushout'. For example, Task Title 'ABC', I want to calculate all Duration days but exclude #=2 (which is a repeat) and any occurance of 'Pushout'. So, for Task Title: ABC, 32 - 24 = 8 days. How do I write a formula to get 8 days?
I look forward to your response.
Thank you.
Sachin
| ID | Date of Export | # | Task Mode | Cost | % Complete | Task Title | Task Name | Duration | Start | Finish | Predecessors |
| 260 | 04/09/2017 | 1 | Auto Scheduled | £3,850.00 | 0% | ABC | ABC | 32 days | Wed 23/08/17 | Thu 05/10/17 | |
| 261 | 04/09/2017 | 2 | Auto Scheduled | £3,850.00 | 0% | ABC | ABC | 32 days | Wed 23/08/17 | Thu 05/10/17 | |
| 262 | 04/09/2017 | 3 | Auto Scheduled | £0.00 | 0% | ABC | Pushout | 24 days | Wed 23/08/17 | Mon 25/09/17 | |
| 263 | 04/09/2017 | 4 | Auto Scheduled | £850.00 | 0% | ABC | SCOPE | 1 day | Tue 26/09/17 | Tue 26/09/17 | 2 |
| 264 | 04/09/2017 | 5 | Auto Scheduled | £0.00 | 0% | ABC | INVOICE | 3 days | Wed 27/09/17 | Fri 29/09/17 | 3 |
| 265 | 04/09/2017 | 6 | Auto Scheduled | £1,700.00 | 0% | ABC | BUILD | 2 days | Mon 02/10/17 | Tue 03/10/17 | 4 |
| 266 | 04/09/2017 | 7 | Auto Scheduled | £450.00 | 0% | ABC | TEST | 1 day | Wed 04/10/17 | Wed 04/10/17 | 5 |
| 267 | 04/09/2017 | 8 | Auto Scheduled | £850.00 | 0% | ABC | DEPLOY | 1 day | Thu 05/10/17 | Thu 05/10/17 | 6 |
| 268 | 04/09/2017 | 1 | Auto Scheduled | £24,350.00 | 0% | DVC | DVC | 68 days | Wed 23/08/17 | Fri 24/11/17 | |
| 269 | 04/09/2017 | 2 | Auto Scheduled | £24,350.00 | 0% | DVC | DVC | 68 days | Wed 23/08/17 | Fri 24/11/17 | |
| 270 | 04/09/2017 | 3 | Auto Scheduled | £0.00 | 0% | DVC | Pushout | 35 days | Wed 23/08/17 | Tue 10/10/17 | |
| 271 | 04/09/2017 | 4 | Auto Scheduled | £0.00 | 0% | DVC | SCOPE | 1 day | Wed 11/10/17 | Wed 11/10/17 | 2 |
| 272 | 04/09/2017 | 5 | Auto Scheduled | £0.00 | 0% | DVC | INVOICE | 1 day | Thu 12/10/17 | Thu 12/10/17 | 3 |
| 273 | 04/09/2017 | 6 | Auto Scheduled | £21,250.00 | 0% | DVC | BUILD | 25 days | Fri 13/10/17 | Thu 16/11/17 | 4 |
| 274 | 04/09/2017 | 7 | Auto Scheduled | £2,250.00 | 0% | DVC | TEST | 5 days | Fri 17/11/17 | Thu 23/11/17 | 5 |
| 275 | 04/09/2017 | 8 | Auto Scheduled | £850.00 | 0% | DVC | DEPLOY | 1 day | Fri 24/11/17 | Fri 24/11/17 | 6 |
Solved! Go to Solution.
I worked in the end. Rubbish PowerBI - the visual I had didn't work, so I created a new one and it worked. Please fix this in the next release of PowerBi as it was driving me insane! Thanks for your help.
Hi @SachinC,
Try this formula please. I didn't find out what kind of characters ahead some of the "Task Name". So I used a function "Right".
Measure =
VAR allDuration =
CALCULATE ( SUM ( Table1[Duration.1] ), 'Table1'[#] = 1 )
VAR Pushout =
CALCULATE (
SUM ( Table1[Duration.1] ),
RIGHT ( 'Table1'[Task Name], 7 ) = "Pushout"
)
RETURN
allDuration - PushoutThe Duration isn't numbers. We need to transfer it first.
Best Regards!
Dale
Hi Dale,
Good suggestions - however it's not doing the trick. I need to also negate #=2 as this is a repeat for #=1 - does that make sense?
I look forward to your response.
Regards,
S
Hi @SachinC,
I kick the #=2 out in the formula directly. So we don't need to care #=2. What's your idea? You can try one and see the result.
Best Regards!
Dale
Yes _ i know you strip out #=2, however it's not working for me still. Let me have another try again, but thanks for your help.
I'm just wondering what checking routine, via formulae, I can plug in to test? Can you help me with this?
Thank you.
Quick question: It's not doing this: right ( Sheet1[Task Name], 4 ) = "Test") (I replaced 'Pushout' to 'Test') and it's not working. Help please? Thanks.
I worked in the end. Rubbish PowerBI - the visual I had didn't work, so I created a new one and it worked. Please fix this in the next release of PowerBi as it was driving me insane! Thanks for your help.
Quick question: It's not doing this: right ( Sheet1[Task Name], 4 ) = "Test") (I replaced 'Pushout' to 'Test') and it's not working. Help please? Thanks.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 37 | |
| 31 | |
| 27 | |
| 27 |