Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
My data looks like this :
ID | Name | Type |
1 | ZZZ | Car |
2 | PPP | Bus |
3 | AAA | Car |
4 | RRRR | Car |
5 | AAAA | Train |
I have to give user the option to select IDs (I've used a slicer drop down) and based on the selection of ID
All the product of similar type need to be displayed.
For example if user selects 3, output should be
ID | Name | Type |
1 | ZZZ | Car |
3 | AAA | Car |
4 | RRRR | Car |
Thanks!
Solved! Go to Solution.
@Anonymous
Please see attached file with your sample data
Hi @Anonymous
Try this technique
Assuming yoir Table's Name is Table1
First create a calculated table from Modelling Tab. This will be used as slicer
ID For Slicer = Values(Table1[ID])
Now create a Measure
Measure = VAR selectedids = VALUES ( 'ID For Slicer'[ID] ) VAR myType = CALCULATETABLE ( VALUES ( Table1[Type] ), FILTER ( ALL ( Table1 ), Table1[ID] IN selectedids ) ) RETURN IF ( VALUES ( Table1[Type] ) IN myType, "Yes", "N0" )
Now Use this MEASURE as VISUAL filter
@Anonymous
Please see attached file with your sample data
Thanks @Zubair_Muhammad also helped me! What to change if I want to select two IDs at the same time?
Isn't it the same as SELECTEDVALUE finction ?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
85 | |
65 | |
51 | |
45 |
User | Count |
---|---|
218 | |
88 | |
83 | |
65 | |
56 |