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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

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

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.