Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Bringing competitor brand names as rows against categories in column


I have raw data something similar to this.


L4,L12,L52,QTD,YTD are time periods to understand the sales momentum. I have created the output something similar to below.


Now I want to have competitor brand names (highlighted in blue in below screenshot) under each of these categories based on max sales under each of these categories. The desired output I want, should be something similar to below.


I could not bring the competitor names to the matrix. I have created a separate table with categories, brands and computed the sales value and ranks based on L4. I used =SWITCH(TRUE(),Selected time period = "L4", Lookup(brand table,rank table,1) to fetch the brands in the category but couldn't get the result. The relationship table below is for reference.



Kindly help me with this. Also kindly suggest if there is a better way to efficiently do this without creating additional tables.




Community Support
Community Support

Hi @Newell123456 ,


For your needs, can you provide a detailed test data model (delete sensitive information), because only know the specific field types and relationships in order to do further testing. Looking forward to your reply.

Best Regards,

Helpful resources

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors