The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
26 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
32 | |
14 | |
11 | |
10 | |
9 |