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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors