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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.