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 Guys i have a problem,
i get my data via directquery but i want to calculate everytime with previous rows. I want to get the seconds between every rows.
Here is a example of it.
Thank you for your time
hi @Anonymous
try to plot the date1 column with a measure like:
MinuteDuration =
VAR _date = MAX(TableName[Date1])
VAR _datepre=
MAXX(
FILTER(ALL(TableName), TableName[Date1]<_date),
TableName[Date1]
)
RETURN
DATEDIFF(_datepre, _date, MINUTE)+0
it worked like this:
Please ensure to feed the Date1 column directly, instead of the date hierarchy.
@Anonymous , You have to create a measure
datediff(maxx(filter(all(Table), Table[Date] < max(Table[Date]) ), Table[Date]) , Max(Table[Date]) , Second)
or
Sumx(Table, datediff(maxx(filter(all(Table), Table[Date] < max(Table[Date]) ), Table[Date]) , Max(Table[Date]) , Second) )
Do you know how i get this measure for only the rows that i got shown on my table and not for all of my over 1 000 000 rows?
I got this Error.
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 |
---|---|
10 | |
9 | |
7 | |
6 | |
5 |
User | Count |
---|---|
20 | |
11 | |
10 | |
9 | |
6 |