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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
samuelr2019
Frequent Visitor

Latest telephone call

Hi, I have a telephone call data table with numerous fields including:

 

CallDateAndTime

CallFrom

CallTo

TelNo

 

I have been using this table in Power BI for over 12 months and the information it provides has been fantastic. However, we've had a requirement whereby I need to report on the LATEST call only.

 

For example, if an employee has called X telephone number 4 times today - only show the date/time of the latest call.

 

I have tried using MAX and SUMMARIZE but can't get it to work. I need the output table to show all of the same fields we have at the moment but only display the latest telephone call.

 

If anyone can help me with this request that would be amazing.

 

Thanks in advance!

 

7 REPLIES 7
Anonymous
Not applicable

Do you need to retain the data from the calls that are not latest? 

 

If not, what you could do is make a new column in query editor that is a combination of CallDateAndTime & Call From & Call To. Then sort decending by CallDateAndTime and remove duplicates in the combination column.

 

This should give you the latest call from a specific number to a specific number on a specific date.

 

Please post some sample data so I can better understand what you are looking for if this does not solve it.

Thanks adityakommu & nickhamilton,

 

I have put together a screenshot of some fictional numbers/sample data below:

1.JPG

 

In the above sample, I have included several different numbers - some with multiple calls associated with them.

 

Ideally I would like my Power BI data/report to show the following:

2.JPG

I hope this helps!

Anonymous
Not applicable

As long as your dates are sorted so that the most recent is as the top, simply removing duplicates will give you the desired output.w dup.PNGwo dup.PNG

Thanks Nick, I did think of that but Power BI doesn't support the remove duplicates functionality with DirectQuery & it would change to Import which wouldn't work for us as it's a dashboard/report fed by a SQL table and is updated automatically throughout the day.

 

Anonymous
Not applicable

Do you have any more time figures? Does it go down into "seconds" level?

It doesn't in that specific SQL view, in Power BI I've used a calculation to translate it into HH:MM:SS

Anonymous
Not applicable

Please post few rows of data with expected output

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.