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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

RANKX issues

Hello community,

 

I want to create a Rank or a flag so I can determine only the new or active items within a group, based on a ID, name and status.

How can I achieve that?

thanks

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , New item can be based on date, say the first transaction

 

example 

rankx(filter(Table, [Group] = earlier([Group]) && [Item] = earlier([Item]) ), [Date],,asc,dense)

 

Now you can flag rank =1 as new 

 

 

For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thank you for your answear!

amitchandak
Super User
Super User

@Anonymous , New item can be based on date, say the first transaction

 

example 

rankx(filter(Table, [Group] = earlier([Group]) && [Item] = earlier([Item]) ), [Date],,asc,dense)

 

Now you can flag rank =1 as new 

 

 

For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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