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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
AshDil
Helper V
Helper V

Want to show data from two tables

Hi,

I have two tables as follows:

Table-1:

CATEGORY   ID        SALES

A101150
B102230
C103400
D104780
A105300
B106200
C107100
D108150
E109200
F110200

 

TABLE-2:

CATEGORY      ID    VALUE

A101100
B102200
C103300
D104290
E105400
A106200
B107100
C108150
D109100

 

Now I need to add Category and ID to slicers, based on slicer selction want to show data but the result is not showing as required

AshDil_1-1632902300056.png

Please help me to do.

Thanks,

AshDil

 

 

 

11 REPLIES 11
Pragati11
Super User
Super User

HI @AshDil ,

 

Can you add some details on the data model on these 2 tables? what relationships they have?

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Hi @Pragati11 ,

The both tables have many to many relationship. 

Thanks,

AshDil

 

HI @AshDil ,

 

I think your many-to-many relationship might be working weirdly.

Try intriducing a bridge table between your two tables and create a many-to-one or one-to-many relationship of these 2 tables with this bridge table.

Bridge table will be a table having distinct values of the column that is currently used to create a relationship between your tables.

 

Check an existing thread on creating bridge table: https://community.powerbi.com/t5/Desktop/Bridge-Table-to-bypass-Many-to-Many-Problem/m-p/943389

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Hi @Pragati11,

I have tried creating dimtable having Category and ID (as I need to use these 2 fields in slicer) to act as bridge between table-1 and table-2. Tried creating relationship again facing many:many relationship problem.

Thanks,

AshDil

Hi @AshDil ,

 

Can you share some kind of screenshot on what you have as a relationship?

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Hi @Pragati11 ,

Please find following screenshot. I have tried to create relationship on ID.

AshDil_0-1632994593493.png

Thanks,

AshDil

Hi @AshDil ,

 

Another question. Whay is the high-level column here - Category or ID?

I am trying to understand why relationship is on ID column, why not on Category column.

 

Also if you want relationship on ID column, then have a bridge table with Distinct ID column values. No point in creating an additional bridge table if you still end-up with many-to-many relationship.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Hi @Pragati11 ,

High level column is Category. I am creating relationship based on ID because they are unique. But the problem in ending up in many:many relationship is some ID's are present in 2 or 3 categories (eg: 101 is present under Category A,B and D).

Please suggest me if any other way to do it.

Thanks,

AshDil.

Hi @AshDil ,

 

I think I mentioned the way in my previous response itself.

You will have to create a bridge table with distinct values of ID and then create a relationship with other 2 tables.

In your slicer on report page, use ID from this bridge table for filtering. It should work.

 

In case this doesn't work, then do share a sample pbix file by removing any sensitive data from the pbix file. You can do this by uploading it to Dropbox or you can use WeTransfer as well.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Greg_Deckler
Community Champion
Community Champion

@AshDil You need to create a relationship between the tables.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler ,

 

I have tried creating relationship between both tables, both having many to many relationship so the values are duplicating because of it.

And I tried creating dimtable having column Category and ID, again relationship between dimtable and table-1 is many:many an also between dimtable and table-2 is many:may.

Thansk,

AshDil 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors