Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi Team,
Please help me out on the below.
I have two tables like below.
Table1: Inv
Table2: Sol
these two tables are connected with many to many of common column i.e SKU
And one slicer with Solution is created,we can easily get the filtered rows based on SKU
My query is how to get the unfiltered rows once we select value i.e say AB solution in slicer? like below
Please find the below dataset and pbix for reference
https://drive.google.com/drive/folders/1IIi86oQRcQ8ZZaKKa2PnHzE8yXwmsTec?usp=sharing
Solved! Go to Solution.
Hi @adityakumar619 ,
According to your description, here’s my solution.
1.Create a column in the table Inv.
Column = RELATED('Sol'[Solution])
2.Create a measure like this.
Check = IF(MAX('Inv'[Column])=SELECTEDVALUE('Sol'[Solution]),1,0)
3.Put the measure in the visual filter.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @adityakumar619 ,
I modify the formula like this:
Column = SELECTEDVALUE(Sol[Solution])
It works but you should select the opposite value in the filter, I guess it's the many to many relationship affect the model, I attach my sample bellow, if there is any problem please feel free to let me know.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@v-yanjiang-msft One final query,will this apply for many to many but direction is single.I can see above solution applying for Bi direction only. i mean like below?
@v-yanjiang-msft thanks for your reply,yes this problem can be solved temporarly but actually iam planning to apply the logic to my business usecase where there were so many Solution names and SKU's.Here in the attached "Check" measure i can see values are hardcored.
Anyhow i really appreciate your kind and patience efforts,i will accept the solution temporarily
And Please let me know if any better solution.
Hi @adityakumar619 ,
According to your description, here’s my solution.
1.Create a column in the table Inv.
Column = RELATED('Sol'[Solution])
2.Create a measure like this.
Check = IF(MAX('Inv'[Column])=SELECTEDVALUE('Sol'[Solution]),1,0)
3.Put the measure in the visual filter.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@v-yanjiang-msft One final query,will this apply for many to many but direction is single.I can see above solution applying for Bi direction only. i mean like below?
Hi @adityakumar619 ,
Because many-to-many relationships often have some problems when quoting, I tried a lot of formulas but there is no suitable one yet. I first thought of the following formula. It doesn’t seem very good, but the problem can be solved first. If there’s a better way I will reply you.
Check is also a measure in table Inv.
Check =
SWITCH (
TRUE (),
SELECTEDVALUE ( Sol[Solution] ) = "AB"
&& MAX ( 'Inv'[SKU] ) IN { 121, 122 }, 1,
SELECTEDVALUE ( Sol[Solution] ) = "CD"
&& MAX ( 'Inv'[SKU] ) = 123, 1,
SELECTEDVALUE ( Sol[Solution] ) = "EF"
&& MAX ( 'Inv'[SKU] ) = 124, 1,
SELECTEDVALUE ( Sol[Solution] ) = "GH"
&& MAX ( 'Inv'[SKU] ) = 125, 1,
SELECTEDVALUE ( Sol[Solution] ) = "IJ"
&& MAX ( 'Inv'[SKU] ) = 126, 1,
SELECTEDVALUE ( Sol[Solution] ) = "KL"
&& MAX ( 'Inv'[SKU] ) = 127, 1,
SELECTEDVALUE ( Sol[Solution] ) = "MN"
&& MAX ( 'Inv'[SKU] ) = 128, 1,
SELECTEDVALUE ( Sol[Solution] ) = "OP"
&& MAX ( 'Inv'[SKU] ) = 129, 1,
SELECTEDVALUE ( Sol[Solution] ) = "QR"
&& MAX ( 'Inv'[SKU] ) = 129, 1,
SELECTEDVALUE ( Sol[Solution] ) = "ST"
&& MAX ( 'Inv'[SKU] ) = BLANK (), 0,
SELECTEDVALUE ( Sol[Solution] ) = "UV"
&& MAX ( 'Inv'[SKU] ) = 130, 1,
0
)
I also attach my sample bellow for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@v-yanjiang-msft thanks for your reply,yes this problem can be solved temporarly but actually iam planning to apply the logic to my business usecase where there were so many Solution names and SKU's.Here in the attached "Check" measure i can see values are hardcored.
Anyhow i really appreciate your kind and patience efforts,i will accept the solution temporarily
And Please let me know if any better solution.
@v-yanjiang-msft Above is perfectly working fine for many-one relationship,But is not working for Many to many relationships.
Iam getting error like this when creating the column with Related function.
Column = RELATED('Sol'[Solution])
"the column 'sol[solution]' either doesn't exist or doesn't have a relationship to any table available in the current context."
How can this applies to many to many relationships
Hi @adityakumar619 ,
I modify the formula like this:
Column = SELECTEDVALUE(Sol[Solution])
It works but you should select the opposite value in the filter, I guess it's the many to many relationship affect the model, I attach my sample bellow, if there is any problem please feel free to let me know.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@v-yanjiang-msft Checking on this and will accept your solution very soon,really thanks.
Hi Team,Can someone please suggest here,have been trying hard to resolve my query,but no luck
It's not possible to download your file, Access required.
Can you share that on https://gofile.io/
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 84 | |
| 49 | |
| 38 | |
| 31 | |
| 30 |