Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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!
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
25 | |
19 | |
18 | |
18 | |
15 |
User | Count |
---|---|
39 | |
22 | |
18 | |
15 | |
12 |