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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Show next row value as the current value

Hi All,

I have a very urgent requirement. Source data looks as below:

 

111.png

 

Requirement is - I need to create a new column based on  # of Business Days. The condition for the column is that for each Submission Number (Col A) , the value for the current row should be the value of the  # of Business Days of the next row, eg : 

 

111.png

 the last step will always be blank.

Can someone please suggest how this can be achieved

Thank you

Poojitha

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

Sorry for misunderstanding. Please try this:

 next = LOOKUPVALUE('Table'[Of Bussiness Days],'Table'[Index],'Table'[Index]+1)

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please try this:

 

  1. Create an index column
  2. create a calculated column using this:
Column = 
var next = LOOKUPVALUE('Table'[Of Bussiness Days],'Table'[Index],'Table'[Index]+1)
var diff = next-'Table'[Of Bussiness Days]
return
IF(ISBLANK(next),BLANK(),IF(diff <=0,0,diff))

v-xuding-msft_0-1595571501038.png

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi  @v-xuding-msft 

Could you please help fix the difference.

Thank you

Poojitha.

Hi @Anonymous,

 

Sorry for misunderstanding. Please try this:

 next = LOOKUPVALUE('Table'[Of Bussiness Days],'Table'[Index],'Table'[Index]+1)

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-xuding-msft 

Thank you for the quick turaround and helping me fix an urgent issue.

Anonymous
Not applicable

Hi @v-xuding-msft ,

 

Thank you for the logic, but I tried the same but noticed that the values are differnt in the new column.

Untitled.png

The value is getting substracted by 1.
0 should be 1 and 17 should be 18.

 

Could you please suggest the fix.

 

Thank you

Poojitha

Greg_Deckler
Community Champion
Community Champion

@Anonymous See my article on Mean Time Between Failure (MTBF) which uses EARLIER: http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/339586



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hello,

Thank you for the share but my requirement is different, where I need to show the previous value as the current value grouped by submission number.

Thank you

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.