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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Petter120
Helper I
Helper I

Measure that shows the last value in a serie based on date in another one

Hi, 

I have a table with the columns: Drift, Ring and date.

 

Petter120_0-1610004428197.png

 

I need help to create a measure that will show the last ring in in every drift (by date)

Petter120_1-1610004638714.png

 

Best regards 

Petter 



1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Petter120 , Try measure one of the three with drift

 

lastnonblankvalue(Table[Date], max(Table[ring]))

 

calculate(lastnonblankvalue(Table[Date], max(Table[ring])), allexcept(Table, Table[Drift]))

 

calculate(lastnonblankvalue(Table[Date], max(Table[ring])), filter(all(Table), Table[Drift] =max(Table[Drift])))

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Petter120 , Try measure one of the three with drift

 

lastnonblankvalue(Table[Date], max(Table[ring]))

 

calculate(lastnonblankvalue(Table[Date], max(Table[ring])), allexcept(Table, Table[Drift]))

 

calculate(lastnonblankvalue(Table[Date], max(Table[ring])), filter(all(Table), Table[Drift] =max(Table[Drift])))

This one work perfect, thank you 🙂

Mesarue = calculate(lastnonblankvalue(Plan_T[Skjutdatum], max(Plan_T[Krans])), allexcept(Plan_T, Plan_T[Ort]))

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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