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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
hish
Frequent Visitor

How to get the last entry blank

Hello everyone,

 

I am trying to get the last entry blank. In the column Duration I am calculating the duration of t_stamp (i+1) - t_stamp (i). I am using this fornula to get the last entry blank.

 

hish_1-1745400647956.png

 

 

Can someone help me?

 

 

 

 

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@hish , Try using

 

DAX
Duration =
VAR CurrentIndex = 'Dataset 1'[Index]
VAR NextTimestamp = CALCULATE(
MIN('Dataset 1'[t_stamp]),
FILTER(
'Dataset 1',
'Dataset 1'[Index] = CurrentIndex + 1
)
)
RETURN
IF(
ISBLANK(NextTimestamp),
BLANK(),
NextTimestamp - 'Dataset 1'[t_stamp]
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

2 REPLIES 2
bhanu_gautam
Super User
Super User

@hish , Try using

 

DAX
Duration =
VAR CurrentIndex = 'Dataset 1'[Index]
VAR NextTimestamp = CALCULATE(
MIN('Dataset 1'[t_stamp]),
FILTER(
'Dataset 1',
'Dataset 1'[Index] = CurrentIndex + 1
)
)
RETURN
IF(
ISBLANK(NextTimestamp),
BLANK(),
NextTimestamp - 'Dataset 1'[t_stamp]
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Thanks!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.