Showing results for 
Search instead for 
Did you mean: 
scoobyloong Frequent Visitor
Frequent Visitor

Count of Consecutive negative values dax

Hi all,


I'm currently having trouble building a measure that is a count of consectuive negative values to find the maximum downside exposure. 


I attempted to use the earlier function but it seems that there was problem using it. 


I tried this: Measure = Calculate(Countrows(table1),Filter(table1,earlier(table1[prices]<0)) but it seems to require an intial row context.




Super User
Super User

Re: Count of Consecutive negative values dax

Read this post to get your answer quickly.

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

Proud to be a Datanaut! Appreciate your Kudos Smiley Happy
Feel free to email me with any of your BI needs.

Helpful resources

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 124 members 1,958 guests
Please welcome our newest community members: