Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
welifjweklgilrw
Frequent Visitor

Negative values in slicer

I have a slicer in PowerBI that is accepting negative input values, even though data has no negative values, in this case the minimum value is 1000.
Is there any way to prevent this behavior? As it can be seen it is accepting a value of -8859
Screenshot 2024-04-15 at 15.30.40.png

2 ACCEPTED SOLUTIONS
v-zhengdxu-msft
Community Support
Community Support

Hi @welifjweklgilrw 

 

I did some test, but just as @PhilipTreacy said that it works very well.

Maybe you can try to change the style of the slicer to List or Tile to see if there are negative values.

vzhengdxumsft_0-1713766312152.png

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi @welifjweklgilrw 

 

You stated that the minimum value is 1000, but in the subsequent post your image shows the min value in the column as 1. It obviously can't be both.

 

The slicer gets its data from the column so if it's allowing negative numbers, there must be negative numbers in the column.

 

Is your slicer using data from the TotalDurationMin column?

 

Please supply your data/file so we can check.

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

4 REPLIES 4
v-zhengdxu-msft
Community Support
Community Support

Hi @welifjweklgilrw 

 

I did some test, but just as @PhilipTreacy said that it works very well.

Maybe you can try to change the style of the slicer to List or Tile to see if there are negative values.

vzhengdxumsft_0-1713766312152.png

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

welifjweklgilrw
Frequent Visitor

Screenshot 2024-04-16 at 16.03.38.pngScreenshot 2024-04-16 at 16.03.52.png

 

As you can see, I ordered the data is ascending order and the minimum value is 1, still the slicer accepts a negative input. Is there any way to restrain the value?

Hi @welifjweklgilrw 

 

You stated that the minimum value is 1000, but in the subsequent post your image shows the min value in the column as 1. It obviously can't be both.

 

The slicer gets its data from the column so if it's allowing negative numbers, there must be negative numbers in the column.

 

Is your slicer using data from the TotalDurationMin column?

 

Please supply your data/file so we can check.

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


PhilipTreacy
Super User
Super User

Hi @welifjweklgilrw 

 

The slicer gets its values from a column so there must be negative values in that column.  Please supply the data so it can be checked and double check it yourself.

 

Regards

 

Phil

 



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.