Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
I have a measure I'm using to limit the data that appears on a map visual. It looks like this:
ShowMap =
VAR UnitFilter =
IF(
ISFILTERED('Pool View'[UNIT])
,1
,0)
VAR TierFilter =
IF(ISFILTERED('Pool View'[TIER])
,1
,0
)
VAR StateFilter =
IF(ISFILTERED('Pool View'[STATE])
,1
,0
)
VAR FilterSum = UnitFilter + TierFilter + StateFilter
RETURN
IF(FilterSum = 3,"Y","N")
Trouble arises when someone uses Select All in the Tier filter. There are six values there, and I'm trying to avoid having my users individually select all the values when they want to include them all. What's a good substitue for ISFILTERED when Select All is in play? Thanks.
Solved! Go to Solution.
I modified the measure as so, which now works.
ShowMap =
VAR UnitFilter =
IF(
ISFILTERED('Pool View'[UNIT])
,1
,0)
VAR TierFilter =
IF(
COUNTROWS(DISTINCT(ALLSELECTED('Pool View'[TIER]))) >= 1
,1
,0
)
VAR StateFilter =
IF(ISFILTERED('Pool View'[STATE])
,1
,0
)
VAR FilterSum = UnitFilter + TierFilter + StateFilter
RETURN
IF(FilterSum = 3,"Y","N")
I modified the measure as so, which now works.
ShowMap =
VAR UnitFilter =
IF(
ISFILTERED('Pool View'[UNIT])
,1
,0)
VAR TierFilter =
IF(
COUNTROWS(DISTINCT(ALLSELECTED('Pool View'[TIER]))) >= 1
,1
,0
)
VAR StateFilter =
IF(ISFILTERED('Pool View'[STATE])
,1
,0
)
VAR FilterSum = UnitFilter + TierFilter + StateFilter
RETURN
IF(FilterSum = 3,"Y","N")
User | Count |
---|---|
21 | |
19 | |
12 | |
10 | |
9 |
User | Count |
---|---|
30 | |
25 | |
15 | |
13 | |
10 |