Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I'm trying to get the time from one row to the next to determine how much time has elapsed from each entry.
I'm currently using this DAX statement:
Moving Range =
VAR a =
CALCULATE (
FIRSTNONBLANK ( Query1[Time], 1 ),
FILTER(
'Query1',
'Query1'[Test]= EARLIER('Query1'[Test] - 1 ))
)
RETURN
IF ( a = BLANK (), BLANK(), DATEDIFF( a , Query1[Time],MINUTE))
But it gives me an error when I use it. I've posted some sample data to assist with this.
Same Day: is an index that indicates to me that the entry is the same day.
Test: is the index of the events that are on the same day.
Solved! Go to Solution.
Hi @Anonymous,
You can add an index column in Query Editor. Then create a calculated column like below:
Best Regards,
Qiuyun Yu
Hi @Anonymous,
You can add an index column in Query Editor. Then create a calculated column like below:
Best Regards,
Qiuyun Yu
First question : what's the error?
Doesn't the offending text get highlighted in the formula?
It looks like there's a bracket out of place in the EARLIER clause
User | Count |
---|---|
85 | |
79 | |
64 | |
52 | |
46 |
User | Count |
---|---|
101 | |
43 | |
41 | |
39 | |
36 |