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

Reply
Oros
Post Partisan
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
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
Super User
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!





View solution in original post

3 REPLIES 3
pratyashasamal
Super User
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!





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
Europe Fabric Conference

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 Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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