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 created a report with a slicer in it. The Slicer has 16 values like Q1_2018, Q2_2018 etc. What i want help in, is to restrict the slicer to select only 2 values so that user can only see comparison between 2 quarters only out of 16.
Solved! Go to Solution.
Hi, @sidd_xp
You can try function CONCATENATEX to concatenate the values in slicer.
Measure1 =
IF (
COUNTROWS ( ALLSELECTED ( DateTable[Year Quarter] ) ) > 2,
"Select less values",
CONCATENATEX (
VALUES ( DateTable[Year Quarter] ),
DateTable[Year Quarter],
" vs "
)
)
Best Regards,
Community Support Team _ Eason
@sidd_xp , you can display a message and make you data blank using visual level filter
if (countrows(allselected(Table[Column])) >2, "Select less values", Blank())
Check this measure blank in all visuals and display message on a card
Thanks, this is a good walkaround, i tried and its working fine. But what if in place of Blank(), i want to show the exact 2 values which are selected in card. How can i do that ?
Hi, @sidd_xp
You can try function CONCATENATEX to concatenate the values in slicer.
Measure1 =
IF (
COUNTROWS ( ALLSELECTED ( DateTable[Year Quarter] ) ) > 2,
"Select less values",
CONCATENATEX (
VALUES ( DateTable[Year Quarter] ),
DateTable[Year Quarter],
" vs "
)
)
Best Regards,
Community Support Team _ Eason
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
70 | |
67 | |
43 | |
34 | |
26 |
User | Count |
---|---|
88 | |
52 | |
45 | |
39 | |
38 |