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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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