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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
v-yangliu-msft
Community Support
Community Support

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!





v-yangliu-msft
Community Support
Community Support

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors
Top Kudoed Authors