The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi all!
please help with the following,
I have a Geo slicer with list of regions, for the sake of this example let's use continets:
I created a Dynamic Text Box which returns selected values from a slicer,
e.g.
if Europe is selected it returns => Europe ,
if Asia and Europe is selected it returns => Asia and Europe,
if 3 or more continets are selected it returns => Asia and Europe, etc.
if all continets are selected (or none is selected) it returns => All.
the only thing I can't figure out is how to return "all but one" when one continet is deselected
e.g. => "all but Europe" when all continents except Europe is selected or other scenarios.
Solved! Go to Solution.
@Anonymous , Try a measure like
Add other conditions
Switch( True() ,
countx(all(Table[Regions]), [Regions]) -1= countx(allselected(Table[Regions]), [Regions]) , "all but" & maxx(except(all(Table[Regions]), allselected(Table[Regions])), [Region]) ,
// add other conditions
)
@Anonymous , Try a measure like
Add other conditions
Switch( True() ,
countx(all(Table[Regions]), [Regions]) -1= countx(allselected(Table[Regions]), [Regions]) , "all but" & maxx(except(all(Table[Regions]), allselected(Table[Regions])), [Region]) ,
// add other conditions
)
User | Count |
---|---|
28 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |