Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hello Guys,
I need help!
I have 2 columns in the table visualization that came from 2 different tables. I need to compute the number of days difference between the earliest registration_time_id and Earliest time_created_id and its average no. of days.
Any help will be much appreciated.
Regards,
Solved! Go to Solution.
Hi @Andrew_na_lang ,
I think there should be a KeyColumn in both tables to relate them.
Table1:
Table2:
Measure:
The number of days difference between =
VAR _MINUTE =
DATEDIFF (
MAX ( Table1[Earliest Registration_time_id] ),
MAX ( Table2[Earliest Time_created_id] ),
MINUTE
)
RETURN
SUMX ( VALUES ( Table1[KeyColumn] ), _MINUTE ) / 60 / 24
Average =
AVERAGEX(VALUES(Table1[KeyColumn]),[The number of days difference between])
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.
@Andrew_na_lang , You need to have some common dimension column
Same as this one
It is more confusing.
Hi @Andrew_na_lang ,
I think there should be a KeyColumn in both tables to relate them.
Table1:
Table2:
Measure:
The number of days difference between =
VAR _MINUTE =
DATEDIFF (
MAX ( Table1[Earliest Registration_time_id] ),
MAX ( Table2[Earliest Time_created_id] ),
MINUTE
)
RETURN
SUMX ( VALUES ( Table1[KeyColumn] ), _MINUTE ) / 60 / 24
Average =
AVERAGEX(VALUES(Table1[KeyColumn]),[The number of days difference between])
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 |
---|---|
64 | |
59 | |
47 | |
32 | |
31 |
User | Count |
---|---|
84 | |
73 | |
52 | |
50 | |
44 |