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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
high20zero
Regular Visitor

Finding Start/End values for record within data log

Hello Community,

I'm a newbie here and also learning Power BI. I'm currently creating a dashboard for projects, and one of the specific values is a project estimate change. I am stuck here, and the question is how to find the initial start value and final changed value for the field TASK_ID within data log. 

Data source is SQL database.

One case is when one record has several changes and values are increasing.

need-help-with-finding-start-end-values-for-record-within-v0-158fmkf2s72e1.jpg

 

Another is when one record has a variety of changes

need-help-with-finding-start-end-values-for-record-within-v0-03b3q7cit72e1.jpg

 

I would appreciate any advice help on this topic

1 ACCEPTED SOLUTION
Akash_Varuna
Super User
Super User

Hi I suppose since your data source is sql database you could use SQL command and some window functions in your particular case to get the described output this is done before the data is loaded into power bi 

Secondly in power query you can use groupby and some operations on that like for this such as first or las after sorting the Task_Id colmn 

Third you can achieve this by writing DAX query also

Hope this helps

View solution in original post

3 REPLIES 3
Akash_Varuna
Super User
Super User

Hi I suppose since your data source is sql database you could use SQL command and some window functions in your particular case to get the described output this is done before the data is loaded into power bi 

Secondly in power query you can use groupby and some operations on that like for this such as first or las after sorting the Task_Id colmn 

Third you can achieve this by writing DAX query also

Hope this helps

Hello Akash_Varuna,

Thank you for the clue,  I used Grouping in power query, then sorted by date, then added index column to the table and filtered the very first record. Using this method I got the initial value. 

 

To get the last value I assumed that last value is the same as actual value in task estimates and joined two tables to get the final value.

 

Thank you.

No Problem Happy to help !!

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors
Top Kudoed Authors