Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I want show the regions which selected in the slicer in the card visual.
I have created the following code measure.
To Show "Global"in the card when all regions are checked in the slicer, which code should I use?
Regions =
SWITCH(TRUE(),
"America" in ALLSELECTED('Switch Regions'[Regions]),"America",
"Europe" in ALLSELECTED('Switch Regions'[Regions]), "Europe",
"Asia" in ALLSELECTED('Switch Regions'[Regions]), "Asia",
"Japan" in ALLSELECTED('Switch Regions'[Regions]), "Japan"
Solved! Go to Solution.
hi @nanacobsbs
try to plot the card with such measure:
RegionSelection =
IF(
COUNTROWS(ALLSELECTED(Regions[Regions]))=COUNTROWS(ALL(Regions[Regions])),
"All",
CONCATENATEX(
ALLSELECTED(Regions[Regions]),
Regions[Regions],
","
)
)
it works like this:
hi @nanacobsbs
try to plot the card with such measure:
RegionSelection =
IF(
COUNTROWS(ALLSELECTED(Regions[Regions]))=COUNTROWS(ALL(Regions[Regions])),
"All",
CONCATENATEX(
ALLSELECTED(Regions[Regions]),
Regions[Regions],
","
)
)
it works like this:
Thank you!!! It's done!
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
12 | |
10 | |
6 |