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.
Solved! Go to Solution.
SELECTEDVALUE ( ) is syntax sugar for IF ( HASONEVALUE ( ), VALUES ( ) ). The problem is that you haven't define how this should work when there are multiple times, not just a single one. It looks like you want to sum them.
Try this:
Actual Service =
SUMX (
Query1,
DATEDIFF ( Query1[Arrived Time], Query1[Completed Time], SECOND ) / 60
)
SELECTEDVALUE ( ) is syntax sugar for IF ( HASONEVALUE ( ), VALUES ( ) ). The problem is that you haven't define how this should work when there are multiple times, not just a single one. It looks like you want to sum them.
Try this:
Actual Service =
SUMX (
Query1,
DATEDIFF ( Query1[Arrived Time], Query1[Completed Time], SECOND ) / 60
)
User | Count |
---|---|
15 | |
11 | |
8 | |
8 | |
7 |
User | Count |
---|---|
21 | |
20 | |
11 | |
10 | |
7 |