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

See when key Fabric features will launch and what’s already live, all in one place and always up to date. Explore the new Fabric roadmap

Reply
Sime
Helper I
Helper I

Grouped Performance Evaluation

Hi All,

 

I have a dataset that is broken down by projects and stages.  What I would like to do is to performance an evaluation on the total project to see whether the budget has been exceeded overall.

 

The dataset looks as follows:

 

Project Number

StageBudgetCostProject Performance
Project 1S1100200Over Budget
Project 1S2150100Over Budget
Project 1S3100125Over Budget
Project 1S4100110Over Budget
Project 1S5100100Over Budget
Project 2S1200300Within Budget
Project 2S2250100Within Budget
Project 2S3250100Within Budget
Project 2S4250150Within Budget
Project 2S5250100Within Budget
Project 3S1100100Encroaching Budget
Project 3S2125100Encroaching Budget
Project 3S3100100Encroaching Budget
Project 3S4150150Encroaching Budget
Project 3S5100100Encroaching Budget

 

As you can see, the far right side column would be populated based on the SUM of the total Budget and Cost and then it would be repeated for all stages regardless if any of the individual stages we not consistent with the overall evaluation.

 

The %'s for the Peformance are evaluated as follows:

 

0% to < 85% = Within Budget

>= 85% to 100% = Encroaching Budget

> 100% = Over Budget 

 

 I did try this in a DAX Measure but it's not producing the desired output.

 

Project Budget Performance =
SWITCH (
TRUE (),
SUM('Project Financial View'[total_project_spent]) / SUM('Project Financial View'[overall_fee]) < 0.85, "Within Budget",
SUM('Project Financial View'[total_project_spent]) / SUM('Project Financial View'[overall_fee]) >= 0.85, "Encroaching Budget",
SUM('Project Financial View'[total_project_spent]) / SUM('Project Financial View'[overall_fee]) > 1.0, "Over Budget"
 
)
 
If I could achieve this in PowerQuery it would be preferrable.
 
Thank you.
1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

In Power Query, use the Group By on Proj Number with 3 aggregations (Sum Budget, Sum Cost and 'all rows' )

You can then add a column to divide cost/budget. Then add another column using this to get the bucketing (if..then.. else).

You can then expand the 'all rows' to return the stage details (from the column header)

View solution in original post

2 REPLIES 2
HotChilli
Super User
Super User

In Power Query, use the Group By on Proj Number with 3 aggregations (Sum Budget, Sum Cost and 'all rows' )

You can then add a column to divide cost/budget. Then add another column using this to get the bucketing (if..then.. else).

You can then expand the 'all rows' to return the stage details (from the column header)

Thank you for your assistance. Your response has steered me in a direction which allowed me to achieve the desired end result. 

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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