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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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

Top Kudoed Authors