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.
Hi experts,
I have a simple measure that counts the Sales for the past 2 weeks.
On the top of the report I have a slicer/ filter to select the weeks.
Is there any chance to get a 0 value when selecting multiple weeks?
Mutiple selections is active in the filter since the visual contains several measures.
Solved! Go to Solution.
Hi,
You can accomplish for example by using HASONEFILTER. e.g.
Proud to be a Super User!
Hey,
If you do not want to change Slicer selection settings, maybe amend measure.
So If filter selection HASONEVALUE, then show, else 0
Hi @joshua1990
Try this,
test =
IF (
ISFILTERED ( 'Table'[Value] ) && NOT ( HASONEVALUE ( 'Table'[Value] ) ),
0,
1
)
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hey,
If you do not want to change Slicer selection settings, maybe amend measure.
So If filter selection HASONEVALUE, then show, else 0
@ValtteriN : Thanks, but this will not work since there is a single selection on the filter. I just want to get a 0 when multiple selections are placed.
@joshua1990
If you use a hierarchy + single select this should work by referencing the Week column. E.g.
Proud to be a Super User!
The slicer has to have the multiple selection option activated. Single selection as an option is not possible
Could you share a screenshot of the issue? This method should also work with multiselect:
Proud to be a Super User!
Hi,
You can accomplish for example by using HASONEFILTER. e.g.
Proud to be a Super User!
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
7 | |
7 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |