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
acg
Resolver I
Resolver I

Top 10 numbers called by duration of call

Just adding another post to clarify what I need.

Basically, I want this sql query translated into DAX:

 

SELECT TOP 10 To_Person,
Max(Call_Duration) as longest_call_duration

FROM [table]
where [date]= '2020-05-30'
group by
To_Person, Call_Duration

 

I Calculated Max Duration in Power BI like: 

Max Duration = Max('table'[Call_Duration])
 
Then used the slicer, added to_Number and used TopN 
by Max_Duration
 
But I do not get the same results. 
THere are no other filters in the slicer except for the date as in '2020-05-30'
 
Any ideas how this can be solved?
1 REPLY 1
VahidDM
Super User
Super User

Hi @acg 

 

Can you share a sample of your data here? do you want to create a table with to_Number column and just max10 duration?

 

You can add a RANK to your duration then filter that to 10.

 

Appreciate your Kudos✌️!!

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.