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.
Hi there,
I need to create a slicer that will filter my output based on a column different from the one in the slicer. In the example below, my slicer should be on the column "Product", and my output needs to give me every Store and Product that contains that product.
I tried creating a summarized table with the combinations for Store and Product, then created a relationship from that summary table to Table1 via the "Store", and used "Product" in the slicer. This ends up being a many-to-many, which I thought it'd be okay in this context, but that didn't seem to work in my model.
Any help is greatly appreciated!
Solved! Go to Solution.
hi @kamiluc ,
not sure if i fully get you, supposing your table named data, try like:
1) plot a slicer with a calculated table like:
data2 = VALUES(data[Product])
2) pull a measure like below to the filter pane of your original table visual and select 1:
measure =
VAR _product = SELECTEDVALUE(data2[product])
VAR _list =
CALCULATETABLE(
VALUES(data[product]),
REMOVEFILTERS(data[product])
)
VAR _result = IF(_product IN _list, 1, 0)
RETURN _result
it worked like:
hi @kamiluc ,
not sure if i fully get you, supposing your table named data, try like:
1) plot a slicer with a calculated table like:
data2 = VALUES(data[Product])
2) pull a measure like below to the filter pane of your original table visual and select 1:
measure =
VAR _product = SELECTEDVALUE(data2[product])
VAR _list =
CALCULATETABLE(
VALUES(data[product]),
REMOVEFILTERS(data[product])
)
VAR _result = IF(_product IN _list, 1, 0)
RETURN _result
it worked like:
Thank you @FreemanZ ! Didn't work at first for me because my model was actually a bit more complex from the example I provided, but with slight modifications I was able to use your solution. 🙂
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 |
---|---|
147 | |
85 | |
66 | |
52 | |
46 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |