Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

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
hnguy71
Memorable Member
Memorable Member

Try this:

As a calculated column:

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


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

View solution in original post

2 REPLIES 2
hnguy71
Memorable Member
Memorable Member

Try this:

As a calculated column:

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


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
Anonymous
Not applicable

Perfect, it works fine ! thanks

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.