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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
odzelashvili1
Helper I
Helper I

RANKX issue

Hello PBI community 🙂

 

I want to solve this with RANKX function, but i dont get correct output.

 

My table looks like this:

odzelashvili1_0-1631875123132.png

where I mannualy added "Rank" column, this is what I want to get in power bi.

 

Logic is this: for every visit_key, i want to rank this visit_keys by time.

 

Any ideas?  

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@odzelashvili1 , Try a new column like

 

rank = rankx(filter(Table, [visit_key] =earlier([visit_key]), [Time],,asc,dense)

 

 

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@odzelashvili1 , Try a new column like

 

rank = rankx(filter(Table, [visit_key] =earlier([visit_key]), [Time],,asc,dense)

 

 

Thank you, I tried something similar, but doesnt worked, now its working.

 

I have another question, if I want to filter my table with more than 1 argument, can i use CALCULATETABLE function instead of filter?

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.