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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
nick9one1
Helper II
Helper II

calculating a total of multiple rows in the same table

I'm building a report that displays some basic stats from Microsoft teams presentations. 

Sample of the table below filtered to a single user. 

 

nick9one1_2-1690025058004.png

 

 

I have added some calculated columns to clean up the data. 

Time on call - difference in minutes between the Joined and left actions of the same session ID. 

Valid - if a user joins before or after the call has started or ended. 

What I now need to do is create a 'total' for each user for each call. 

e.g. some users might disconnect from a call, then reconnect so they have two sessions of 30 minutes. Where this has happened I need to add those values together. 

 

I'm not sure of the best way to achieve this, either summary table, or measure. Or another way? 

 

My final report will look like this

nick9one1_3-1690025322177.png

 

1 ACCEPTED SOLUTION
nick9one1
Helper II
Helper II

I figured it out. Quite simple in the end, just needed a summary table. 

Summary = SUMMARIZE(cr20b_vccalldata,cr20b_vccalldata[FullName],cr20b_vccalldata[Call Title], "Total Time on call",SUM(cr20b_vccalldata[Time on Call]))

 

 

View solution in original post

4 REPLIES 4
nick9one1
Helper II
Helper II

I figured it out. Quite simple in the end, just needed a summary table. 

Summary = SUMMARIZE(cr20b_vccalldata,cr20b_vccalldata[FullName],cr20b_vccalldata[Call Title], "Total Time on call",SUM(cr20b_vccalldata[Time on Call]))

 

 

nick9one1
Helper II
Helper II

 

00736070-e04f-4134-a4c9-1b5b2c656712USER 1 USER1@TEST.COM09/03/2023 15:03:55LeftAttendeeMarch 2023 09/03/20233MarchFalse20/03/2023 
00736070-e04f-4134-a4c9-1b5b2c656712USER 1 USER1@TEST.COM09/03/2023 15:03:07JoinedAttendeeMarch 2023009/03/20233MarchFalse20/03/20230
375c96b7-14ef-425b-a7be-f871f9907b5bUSER 1 USER1@TEST.COM17/04/2023 10:59:07LeftAttendeeApril 2023 17/04/20234AprilTrue17/04/2023 
375c96b7-14ef-425b-a7be-f871f9907b5bUSER 1 USER1@TEST.COM17/04/2023 10:41:54JoinedAttendeeApril 20231817/04/20234AprilTrue17/04/202318
3b0d53f9-0855-444c-b86e-6e8c990c3bf3USER 1 USER1@TEST.COM17/07/2023 10:00:12LeftAttendeeJuly 2023 17/07/20237JulyTrue17/07/2023 
3b0d53f9-0855-444c-b86e-6e8c990c3bf3USER 1 USER1@TEST.COM17/07/2023 09:59:14JoinedAttendeeJuly 2023117/07/20237JulyTrue17/07/20231
6b073673-fb52-48df-8152-f5e3b6ae93ddUSER 1 USER1@TEST.COM17/07/2023 10:00:17JoinedAttendeeJuly 20235317/07/20237JulyTrue17/07/202353
6b073673-fb52-48df-8152-f5e3b6ae93ddUSER 1 USER1@TEST.COM17/07/2023 10:53:37LeftAttendeeJuly 2023 17/07/20237JulyTrue17/07/2023 
8327f761-0da3-4455-a110-6d23d2e68f7dUSER 1 USER1@TEST.COM20/03/2023 15:05:44JoinedAttendeeMarch 2023420/03/20233MarchTrue20/03/20234
8327f761-0da3-4455-a110-6d23d2e68f7dUSER 1 USER1@TEST.COM20/03/2023 15:09:59LeftAttendeeMarch 2023 20/03/20233MarchTrue20/03/2023 
99d905a7-ac97-40e8-9f01-9f2d2cd89912USER 1 USER1@TEST.COM20/03/2023 15:10:11JoinedAttendeeMarch 20235220/03/20233MarchTrue20/03/202352
99d905a7-ac97-40e8-9f01-9f2d2cd89912USER 1 USER1@TEST.COM20/03/2023 16:02:05LeftAttendeeMarch 2023 20/03/20233MarchTrue20/03/2023 
cee5ad75-5c58-462a-8ecb-2cf0bb3de3dcUSER 1 USER1@TEST.COM12/06/2023 10:02:24JoinedAttendeeJune 20235512/06/20236JuneTrue12/06/202355
cee5ad75-5c58-462a-8ecb-2cf0bb3de3dcUSER 1 USER1@TEST.COM12/06/2023 10:57:11LeftAttendeeJune 2023 12/06/20236JuneTrue12/06/2023 

Thank you for replying with sample data as text.  Please provide your work-in-progress Power BI Desktop file (with sensitive information removed) that covers your issue or question completely in a usable format (not as a screenshot). This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied and suggest an answer customized to your situation.

foodd
Super User
Super User

Please provide your work-in-progress Power BI Desktop file (with sensitive information removed) that covers your issue or question completely in a usable format (not as a screenshot).


https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...


Please show the expected outcome based on the sample data you provided.

https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

 

This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.