Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Good day.
I have two slicers, Region and Zone. Region is the highest level to Zone i.e. 1 region has multiple zones. Currently, I can display either the selected region or the zone on my card visual, which is perfect.
But if both are selected at the same time, I need to display the lowest level only which isthe zone. Is there a way to do this?
Dax for the measure:
Thank you in advance.
Solved! Go to Solution.
Hi @Tlotly
I think you can change the order of the IF statement slightly to make this work as you want
Measure 3 = var _region = SELECTEDVALUE(Query1[Region Description])
var _zone = SELECTEDVALUE(Query1[Zone Description])
var _branch = SELECTEDVALUE(Query1[Branch Name])
return if(ISFILTERED(Query1[Zone Description]), _zone,
if(ISFILTERED(Query1[Region Description]), _region,
if(ISFILTERED(Query1[Branch Name]), _branch
," ")))
This way it will check if a zone has been selected first, and if so display the selected zone.
Hi @Tlotly
I think you can change the order of the IF statement slightly to make this work as you want
Measure 3 = var _region = SELECTEDVALUE(Query1[Region Description])
var _zone = SELECTEDVALUE(Query1[Zone Description])
var _branch = SELECTEDVALUE(Query1[Branch Name])
return if(ISFILTERED(Query1[Zone Description]), _zone,
if(ISFILTERED(Query1[Region Description]), _region,
if(ISFILTERED(Query1[Branch Name]), _branch
," ")))
This way it will check if a zone has been selected first, and if so display the selected zone.
User | Count |
---|---|
84 | |
76 | |
74 | |
49 | |
39 |
User | Count |
---|---|
114 | |
56 | |
51 | |
42 | |
42 |