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.
How to calculate average waiting time where we have 1 column named attribute, which has anchroge and terminal and we have 1 entry date coumn now we need to calculate the waiting time between anchroge and terminal.
Solved! Go to Solution.
Hi @Anonymous ,
Here I create a sample to have a test.
Measure:
Avg Datediff =
VAR _SUMMAIRZE =
SUMMARIZE (
'Table',
'Table'[Category],
"DateDiff",
VAR _Anchroge =
CALCULATE ( MAX ( 'Table'[Entry Date] ), 'Table'[Attribute] = "Anchroge" )
VAR _Terminal =
CALCULATE ( MAX ( 'Table'[Entry Date] ), 'Table'[Attribute] = "Terminal" )
RETURN
DATEDIFF ( _Anchroge, _Terminal, DAY )
)
RETURN
AVERAGEX ( _SUMMAIRZE, [DateDiff] )
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Here I create a sample to have a test.
Measure:
Avg Datediff =
VAR _SUMMAIRZE =
SUMMARIZE (
'Table',
'Table'[Category],
"DateDiff",
VAR _Anchroge =
CALCULATE ( MAX ( 'Table'[Entry Date] ), 'Table'[Attribute] = "Anchroge" )
VAR _Terminal =
CALCULATE ( MAX ( 'Table'[Entry Date] ), 'Table'[Attribute] = "Terminal" )
RETURN
DATEDIFF ( _Anchroge, _Terminal, DAY )
)
RETURN
AVERAGEX ( _SUMMAIRZE, [DateDiff] )
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
80 | |
77 | |
63 | |
48 | |
44 |
User | Count |
---|---|
101 | |
43 | |
39 | |
39 | |
36 |