Join 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!View all the Fabric Data Days sessions on demand. View schedule
Hi guys,
I have the following situation:
| Project number | Amount of houses | Points of repair |
| 00811-CVZ | 1 | |
| 00811 | 21 | |
| 00811-K | 7 | |
| 00811-H | 3 | |
| 00811-BMN | 0 | |
| 00422-01 | 4 | |
| 00422-02 | 2 | |
| 00422 | 24 |
What my data does is that the amount of houses is paired to the main project number (which is 00422 or 00811) and the amount of repairs is paired to the house numbers within that main project.
Now i want to calculate the average points of repair per project. So for project 00422 it would be 4 + 2 / 24.
I want to write a code that if the invidiual house code contains the code of the main project, it calcualtes tthis average...
Solved! Go to Solution.
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
https://1drv.ms/u/s!AiUZ0Ws7G26RiGCZaIo9ZwJOl2c6?e=ir74ps
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
https://1drv.ms/u/s!AiUZ0Ws7G26RiGCZaIo9ZwJOl2c6?e=ir74ps
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!