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 have a section of slicer visuals having slicers of selecting Month, Country, Product and Category and a section of a card visual and table visual. The card visual and the table visual gives garbage values when I select multiple values in the slicer visuals. How can I use DAX and show a message on the place of the card and table visual showcasing to select a single value and when a single value is selected the values are displayed.
HI, @Anonymous
use has HASONEFILTER() this give you ability to select one value and give output in boolean value(true, false)
you can use IF() function to implement your requirnment
like
result =
switch(true(),
HASONEFILTER('tablename'[country]), your expression,
HASONEFILTER('tablename'[month]),your expression,
HASONEFILTER('tablename'[product]), your expression,
HASONEFILTER('tablename'[category]), your expression,
"select a single value")
here your expression means your calculation part
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |