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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors