Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
55 | |
54 | |
54 | |
37 | |
29 |
User | Count |
---|---|
77 | |
62 | |
45 | |
40 | |
40 |