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
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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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
Top Kudoed Authors