Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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
User | Count |
---|---|
98 | |
76 | |
74 | |
49 | |
26 |