cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lrozan Frequent Visitor
Frequent Visitor

Get next value using something like EARLIER

HI, at the moment im using this

 

previousdata =
VAR _id =Query1[setDataId]
VAR prevDate =
CALCULATE (
MAX ( Query1[_startedAt]),
FILTER ( ALL ( Query1 ), [_startedAt] <= EARLIER ( Query1[_startedAt] ) && Query1[setDataId] = _id )
)
RETURN
LOOKUPVALUE ( Query1[HoraInt], Query1[_startedAt], prevDate )
 
 
WIth this formula im getting the previous value of (Query1[HoraInt])  with the same id and that happens previoulsy
 
I want something similar by with the value that happens NEXT
 
Is there a formula?
Thanks
1 ACCEPTED SOLUTION

Accepted Solutions
hnguy71 Member
Member

Re: Get next value using something like EARLIER

Try this:

As a calculated column:

c_Column = CALCULATE(MIN('Table 2'[Value]), FILTER('Table 2', 'Table 2'[Value] > EARLIER('Table 2'[Value])))

View solution in original post

2 REPLIES 2
hnguy71 Member
Member

Re: Get next value using something like EARLIER

Try this:

As a calculated column:

c_Column = CALCULATE(MIN('Table 2'[Value]), FILTER('Table 2', 'Table 2'[Value] > EARLIER('Table 2'[Value])))

View solution in original post

Highlighted
lrozan Frequent Visitor
Frequent Visitor

Re: Get next value using something like EARLIER

Perfect, it works fine ! thanks

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.

Users Online
Currently online: 58 members 1,180 guests
Please welcome our newest community members: