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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.