Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi, i've searched far and wide for this but cannot find any solution. I have data as below. Ultimately what i want to do is when i select a Store i.e. Store B in a slicer. I would like to filter my visualisation on the corresponding region to that slicer value which would be R1. In that visualisation i would then expect to see Store A, B and C represented. At the moment when i select store B in then my visualisiation will show only that store.
Store | Region |
A | R1 |
B | R1 |
C | R1 |
D | R2 |
E | R2 |
F | R2 |
many thanks in advance for your help!
Solved! Go to Solution.
@hass18 ,
First you have to create separate disconnected table for slicers (store), then use the below code in the measure,
Region =
VAR _selectedStore = SELECTEDVALUE('DisconnectedTable'[Store])
VAR _tempTable = CALCULATE(
MAX(
'OriginalTable'[Region]),
'OriginalTable'[Store] = _selectedStore,ALL('OriginalTable'))
RETURN IF(MAX('OriginalTable'[Region]) = _tempTable, MAX('OriginalTable'[Region]),BLANK())
use the above disconnected table column in the slicer and measure in the table visual.
@hass18 ,
First you have to create separate disconnected table for slicers (store), then use the below code in the measure,
Region =
VAR _selectedStore = SELECTEDVALUE('DisconnectedTable'[Store])
VAR _tempTable = CALCULATE(
MAX(
'OriginalTable'[Region]),
'OriginalTable'[Store] = _selectedStore,ALL('OriginalTable'))
RETURN IF(MAX('OriginalTable'[Region]) = _tempTable, MAX('OriginalTable'[Region]),BLANK())
use the above disconnected table column in the slicer and measure in the table visual.
Hi thanks so much for responding. I did exactly as you said but it doesn't seem to be working. I created a disconnected table using the below and used the measure as a column in the table but it seems to only return values from the max region even (in this case R23) even though no store is selected that belongs to R23
Sorry completely my fault, i noticed a made an incorrect reference in the code you supplied. Its now working perfectly. You are amazing! thankyou so much
Hi @hass18
To make sure I undersood your request, are you trying to exclude the selected value in the slicer from the visual?
Did it work ? 👌 Mark it as a solution to help spreading knowledge 👉 A kudos would be appreciated
i'm trying to only show stores in the visualisation that belong to the region of the selected store. i.e. User selects Store B > that belongs to R1 > therefore the visualisation should show Stores A, B, C
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.