Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
80 | |
79 | |
58 | |
37 | |
35 |
User | Count |
---|---|
99 | |
56 | |
56 | |
46 | |
40 |