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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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