Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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.
Can someone help me?
Solved! Go to Solution.
@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]
)
Proud to be a 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]
)
Proud to be a Super User! |
|
Thanks!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |