cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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.

 

 

 

1 REPLY 1
Super User
Super User

Re: Count of Consecutive negative values dax

Read this post to get your answer quickly.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490






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

Announcements
Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 353 members 3,437 guests
Please welcome our newest community members: