Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Create a measure that returns total time user is logged in

- Attempting to measure the durration a user is logged in

 

Here is the dataset: 

 

Screen Shot 2017-09-22 at 2.32.38 PM.png

 

- Filtering by a date range, I am attempting to measure how long users are logged IN.

 

- I started out by created two new columns, TimeLoggedIn, and TimeLoggedOff:

 

Screen Shot 2017-09-22 at 4.17.15 PM.png

 

- Then I created a new MEASURE:

 

TotalTimeLoggedIn = DATEDIFF('public callcent_ag_queuestatus'[TimeLoggedOff], 'public callcent_ag_queuestatus'[TimeLoggedIn],HOUR)

- Measure does not work, here is the error:

 

"A single value for column 'TimeLoggedOff' in table 'public callcent_ag_queuestatus' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result."

 

 

Thank you in advance for your help.

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

 

Share the link from where i can download your file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi,

 

I cannot understand yoru question.  How have you computed timeloggin and timeloggedoff?  Also, please show the exact result that you are expecting for each agent_num.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors