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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Jvn1
Frequent Visitor

help with slicer and relationship

I am new to power BI, I have 2 tables and which doesnt have unique columns on both the tables. I am using direct query to Power BI. 

 

Example as below:

ProductMap
Red 001white 020
Red 002white 010
white 010white 010
white 020white 020
Blue 100white 020
Blue 101white 010
Yellow 111white 020
ProductDescription
Red 001R00011
Red 001R00012
Red 002R00021
Red 002R00022
white 010W00101
white 010W00102
white 020W00201
white 020W00202
Blue 100B01001
Blue 100B01002
Blue 101B02001
Blue 101B02002
Yellow 111Y10001
Yellow 111Y10002

 

I want to create 1 slicer,

 

  • When select 1 product -> Red 001, i get the below result
ProductRed 001white 020
DescriptionR00011W00201
DescriptionR00012W00202
  • When select 1 product -> white 020, i get the below result
Productwhite 020Red 001Yellow 111
DescriptionW00201R00011Y10001
DescriptionW00202R00012Y10002

 

Plz help with the solution. Also the Power BI - Version: 2.65.5313.1562 64-bit (January 2019), i don't get the option of cardinality - Many to Many - Pic below

cardinalitycardinality

6 REPLIES 6
v-lili6-msft
Community Support
Community Support

HI, @Jvn1 

  • When select 1 product -> white 020, i get the below result
Product white 020 Red 001 Yellow 111
Description W00201 R00011 Y10001
Description W00202 R00012 Y10002

 

What is the logic of this result? I think If there should be "blue 100" in this result?

 

you should update your power bi desktop and Many to Many will be available.

 

Best Regards,

Lin

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-lili6-msft 

 

oh yea, i just noticed it - Thank you correcting.

  • When select 1 product -> white 020, i get the below result
Productwhite 020Red 001Blue 100Yellow 111
DescriptionW00201R00011B01001Y10001
DescriptionW00202R00012B01002Y10002

 

I will update the Power BI Desktop and check.

hi, @Jvn1 

For this case, Do you mean that when select one product, then it will return all the product that have the same map value?

In that case, When select 1 product -> white 020, you get the below result white 020, Red 001, Blue 100, Yellow 111

Product Map
Red 001 white 020
Red 002 white 010
white 010 white 010
white 020 white 020
Blue 100 white 020
Blue 101 white 010
Yellow 111 white 020

 

But why select 1 product -> Red 001, It only returns Red 001 and white 020?

Product Map
Red 001 white 020
Red 002 white 010
white 010 white 010
white 020 white 020
Blue 100 white 020
Blue 101 white 010
Yellow 111 white 020

why does it not return white 020, Red 001, Blue 100, Yellow 111?

What is your logic of it?

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-lili6-msft 

 

Yes. I am trying achive that as i am comparing all the products to base product(white's).

 

In visual window, I want to view only the immediate compare of the product selected (Red 001 -> white 020). But whenever a base product is selected, i want to see the all the models compared.

 

Is there any way to achieve this view?

luisamboni
Frequent Visitor

you can achieve this by merging the tables in query editor

@luisamboni 

 

I merged the tables, when i use slicer as map column - i get the results(description) of products from both columns.

 

  • When select 1 product -> white 020, i get the below result
Productwhite 020Red 001Blue 100Yellow 111
DescriptionW00201R00011B01001Y10001
DescriptionW00202R00012B01002Y10002

 

I unable to get this result

  • When select 1 product -> Red 001, i get the below result
ProductRed 001white 020
DescriptionR00011W00201
DescriptionR00012W00202

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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