This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hello
I can't find a working solution for my problem.
I have a table named ht_ProjectData with Projects and Phases.
I want a additional column for the "Project Health". It should show the highest value from all Phases related to this Project.
The table looks like this:
| MainProject | TaskName | Health | ProjectType |
| Project A | Project A | - | Project |
| Project A | Phase 1 | 1 | Phase |
| Project A | Phase 2 | 1 | Phase |
| Project A | Phase 3 | 2 | Phase |
| Project B | Project B | - | Project |
| Project B | Phase 1 | 3 | Phase |
| Project B | Phase 2 | 1 | Phase |
| Project B | Phase 3 | 1 | Phase |
At the end it should look like this:
| MainProject | TaskName | Health | ProjectType | MainProjectHealth |
| Project A | Project A | - | Project | 2 |
| Project A | Phase 1 | 1 | Phase | - |
| Project A | Phase 2 | 1 | Phase | - |
| Project A | Phase 3 | 2 | Phase | - |
| Project B | Project B | - | Project | 3 |
| Project B | Phase 1 | 3 | Phase | - |
| Project B | Phase 2 | 1 | Phase | - |
| Project B | Phase 3 | 1 | Phase | - |
I tried this Calculation but it didn't work:
MainProjectHealth = CALCULATE(
MAX(
ht_ProjectData[Health];
FILTER(
ht_ProjectData;
ht_ProjectData[ProjectType] = "Phase" &&
ht_ProjectData[MainProject] = ht_ProjectData[TaskName]
)
)
)
Any suggestions?
Solved! Go to Solution.
I believe:
MainProjectHealth Column =
IF(
[ProjectType] = "Project",
MAXX(
FILTER(
'Table',
[MainProject] = EARLIER([MainProject]) &&
[ProjectType] = "Phase"
),
[Health]
),
BLANK()
)
Hi @Anonymous
Please see the attached file with Power Query solution
I believe:
MainProjectHealth Column =
IF(
[ProjectType] = "Project",
MAXX(
FILTER(
'Table',
[MainProject] = EARLIER([MainProject]) &&
[ProjectType] = "Phase"
),
[Health]
),
BLANK()
)
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 6 | |
| 4 |