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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
TriveniN
Helper II
Helper II

How to create rank

Hi,

@mcaraballo Can you help me to create rank

 

Note: OccupiedRent and DateDiff are the measures

Below is the sample data

NAMEOccupiedRentDateDiff
ATL00001 - Davina Roberts - LE22550 
ATL00089 - Marion Houston - LE12050 
ATL00089 - Marion Houston - LE122500
ATL00096 - Nicholas M. Guerra - LE11900 
ATL00096 - Nicholas M. Guerra - LE121000

Expected Output:

NAMEOccupiedRentDateDiffRank
ATL00001 - Davina Roberts - LE22550 1
ATL00089 - Marion Houston - LE1225001
ATL00089 - Marion Houston - LE12050 2
ATL00096 - Nicholas M. Guerra - LE1210001
ATL00096 - Nicholas M. Guerra - LE11900 2
4 REPLIES 4
mcaraballo
Advocate III
Advocate III

Hi @TriveniN , hope you are doing well.

 

I created a table with the sample data and then I created this column:

Columna = RANKX(filter(tabla, Tabla[NAME] = EARLIER(Tabla[NAME]) ), Tabla[OccupiedRent], , DESC,Dense)
 
mcaraballo_0-1691495139679.png

Please try this.

Regards,
Mariano.
Please, visit this idea and vote it if you like it ! Ability to show/hide any object based on a conditi... - Microsoft Fabric Community

 

DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO!

Hi @TriveniN

Did it work? if so, please mark my post as a solution 😀

Ahmedx
Super User
Super User

pls try this

Screenshot_3.png

@Ahmedx : Thanks for quick response

 

getting an error when we create above column 

 

Can you help me out to resolve issue

 

error details is circualr dependency was detected

 

Expected Output should be below

NAMEOccupiedRentDateDiffRank
ATL00001 - Davina Roberts - LE22550 1
ATL00089 - Marion Houston - LE1225001
ATL00089 - Marion Houston - LE12050 2
ATL00096 - Nicholas M. Guerra - LE1210001
ATL00096 - Nicholas M. Guerra - LE11900 2

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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