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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Post Partisan

## 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
Community Support

Hi  @Oros ,

Here are the steps you can follow：

1. Create measure.

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

2. Result:

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

Super User

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!

3 REPLIES 3
Super User

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!

Community Support

Hi  @Oros ,

Here are the steps you can follow：

1. Create measure.

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

2. Result:

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

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

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - June 2024

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

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors