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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Creating Objective Table from Many-to-Many analysis

Hello Power Bi Community,

 

I am currently facing a challenge in determining a solution for the analysis presented below. The table on the left illustrates my analysis data, while the table on the right represents the desired output that I aim to obtain.

 

Within the left table, I have two columns, namely 'ID' and 'Project,' which maintain a many-to-many relationship. My objective is to create formulas for the four columns in the right table (the displayed results have been manually computed). In essence, the 'Mapping Projects' column should initially search for all Project patterns that match with a minimum occurrence of three project patterns (for example, 'Project A & Project B' would not be included).

Subsequently, these matching project patterns should be appended to each row, separated by commas.

 

The second column, 'Mapping IDs,' should tally the distinct IDs that contain the matching project patterns. As for the 'Projects' and 'IDs Count' columns, they should simply count the number of Projects listed in the pattern and the number of mapping IDs respectively.

 

I would greatly appreciate your guidance on how to achieve the desired output in the right table by utilizing formulas in either Power Query or Excel.

 

jbend088_0-1693329975146.png

 

Thanks in advance for your support; your assistance is highly valued!

1 REPLY 1
lbendlin
Super User
Super User

Consider using a graphical solution.  Putting your data into a matrix yields

 

lbendlin_0-1693701912354.png

One project with four IDs, various combinations of projects with three ids (some matching, some not) and then the outliers with two or one IDs.

 

This may already be sufficient to answer your business question.

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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