Forum Discussion

Sime's avatar
Sime
Helper I
4 years ago
Solved

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.
  • 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)

2 Replies

  • HotChilli's avatar
    HotChilli
    Community Champion

    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)

    • Sime's avatar
      Sime
      Helper I

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