cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Highlighted
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
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

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.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

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

Top Kudoed Authors
Users Online
Currently online: 280 members 2,660 guests
Please welcome our newest community members: