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

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 FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 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.