The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 |
---|---|
65 | |
59 | |
55 | |
54 | |
32 |
User | Count |
---|---|
180 | |
88 | |
70 | |
46 | |
45 |