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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Anonymous
Not applicable

Custom Filter for RankX new Column

I currently have a large table that requires a visualised index column. I have come across this EXAMPLE formula for a RANKX and FILTER for a new column in the table :

 

RANKX(

FILTER(

‘Sales Table’,

‘Sales Table'[Country ] = EARLIER(‘Sales Table'[Country ])

),

‘Sales Table'[Total Sales]

)

 

but I'm struggling to replicate it with my data:

 

Supplier Analysis Index Rank = RANKX(FILTER('looker_views lkr_Intake_Data','looker_views lkr_Intake_Data'[Supplier Group Name] = EARLIER('looker_views lkr_Intake_Data'[Supplier Group Name],
'looker_views lkr_Intake_Data'[Intake_Data_Custom_1] in {"COP1","COP2"}))
 
My aim is to have this formula:

Supplier Analysis Index Rank = RANKX(ALL('looker_views lkr_Intake_Data'[Supplier Group Name]),'looker_views lkr_Intake_Data'[Company_Id],,ASC)

 

Only filtered for: 

'looker_views lkr_Intake_Data'[Intake_Data_Custom_1] in {"COP1","COP2"})

 

Can anyone help?

2 REPLIES 2
amitchandak
Super User
Super User
Greg_Deckler
Super User
Super User

Sample data would be greatly helpful. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Kudoed Authors