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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
QwertyMartijn
Helper II
Helper II

Fill column based on matching value

Hi guys,

 

I have the following situation:

 

Project numberAmount of housesPoints of repair
00811-CVZ 1
0081121 
00811-K 7
00811-H 3
00811-BMN 0
00422-01 4
00422-02 2
0042224 

 

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

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

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

Screen Capture #1226.pngScreen Capture #1227.pngScreen Capture #1228.png

View solution in original post

1 REPLY 1
Ahmedx
Super User
Super User

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

Screen Capture #1226.pngScreen Capture #1227.pngScreen Capture #1228.png

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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