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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Oros
Post Prodigy
Post Prodigy

COUNT negative values

Hello,
 
I have a measure (VARIANCE) that is the difference between 2 columns.
 
VARIANCE column has negative and positive values.
 
How do I COUNT how many values fall lower than negative 5?
 
Thanks.
 
2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi  @Oros ,

 

 

Here are the steps you can follow:

1. Create measure.

Measure =
COUNTX(
    FILTER(ALL('Table'),[VARIANCE]<-5),[Value1])

2. Result:

vyangliumsft_0-1705467044662.png

Best Regards,

Liu Yang

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

pratyashasamal
Memorable Member
Memorable Member

Hi @Oros ,
Please can create a measure using any of these calculation :-

Measure = CALCULATE(COUNT(Table1[Data]),[Variance]< -5 )

 

Measure = COUNTX(
    FILTER(ALL('Table1'),[Variance]<-5),[Value])

 

 

Thanks ,
Pratyasha Samal 
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

3 REPLIES 3
pratyashasamal
Memorable Member
Memorable Member

Hi @Oros ,
Please can create a measure using any of these calculation :-

Measure = CALCULATE(COUNT(Table1[Data]),[Variance]< -5 )

 

Measure = COUNTX(
    FILTER(ALL('Table1'),[Variance]<-5),[Value])

 

 

Thanks ,
Pratyasha Samal 
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Anonymous
Not applicable

Hi  @Oros ,

 

 

Here are the steps you can follow:

1. Create measure.

Measure =
COUNTX(
    FILTER(ALL('Table'),[VARIANCE]<-5),[Value1])

2. Result:

vyangliumsft_0-1705467044662.png

Best Regards,

Liu Yang

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

vanessafvg
Super User
Super User

maybe like this?

 

count negative values =
CALCULATE ( COUNTROWS ( tablename ), variance < -5 )

 

easier when sample data is supplied, if that doesn't work please provide some sample data.





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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