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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
been_jannim
New Member

DAX question: Dynamically Grouping Peer Sets in Power BI

Hi All,

 

I'm working on creating a report for my company's benchmarking survey. We basically send out a similar survey to a bunch of different companies and create each company their own report to compare them to their peers. I've done this before using this article on dynamic grouping using DAX, but in this scenario, not every company within the survey is a considered a "peer" of the others.

 

For example, see my table below, but here is a summary:

  1. Comp1 is a peer to 6 companies within the dataset

  2. Comp2 is a peer to 7 companies within the dataset

  3. Comp3 is a peer to 5 companies within the dataset

What is the best way to set up a new table / write measures to be able to compare my selected company to their peers, without including companies that aren't in their peer group? 

 

Thanks so much!

 

Example table (factParticipant_PeerGroups) below:

 

SelectedCompany Peer
Comp1Comp5
Comp1Comp7
Comp1Comp8
Comp1Comp9
Comp1Comp11
Comp1Comp15
Comp2Comp5
Comp2Comp9
Comp2Comp11
Comp2Comp15
Comp2Comp16
Comp2Comp17
Comp2Comp18
Comp3Comp1
Comp3Comp4
Comp3Comp6
Comp3Comp13
Comp3Comp15
1 REPLY 1
Anonymous
Not applicable

Hi @been_jannim ,

 

Please provide a screenshot of the test data and desired results so that I can answer your question as soon as possible.

 

Best Regards,
Adamk Kong

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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