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
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
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.