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
Efsteps
Frequent Visitor

Making RANKX Measure Work ignoring blank values

Hi everyone, i've been trying to make a rankx function with this example of database

Please View the PBIX file clicking HERE

What i'm trying to do is a rank that ignores the blank values but the problem is that i'm only getting "1" value in all rows on the table visual. (If someone can explain the formular required to solve this i will appreciate it)

Thank you for reading. 

1 ACCEPTED SOLUTION

Hi @Efsteps ,

 

 

Create 2 measure

 

Average Sales 1 = CALCULATE(SUM(Sales[Average Sales per Day]), FILTER(Sales,Sales[Seller Name] = MAX(Sales[Seller Name])))
 
 
Rank = RANKX(ALL(Sales[Seller Name]),[Average Sales 1],,DESC,Dense)
 
1.jpg
 
 

Regards,
Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

View solution in original post

3 REPLIES 3
vivran22
Community Champion
Community Champion

Hello @Efsteps ,

 

The file is not available on the link you have shared. Please share the file.

 

Cheers!
Vivek

Blog: vivran.in/my-blog
Connect on LinkedIn
Follow on Twitter

Got it, CLIC HERE

Thanks 

Hi @Efsteps ,

 

 

Create 2 measure

 

Average Sales 1 = CALCULATE(SUM(Sales[Average Sales per Day]), FILTER(Sales,Sales[Seller Name] = MAX(Sales[Seller Name])))
 
 
Rank = RANKX(ALL(Sales[Seller Name]),[Average Sales 1],,DESC,Dense)
 
1.jpg
 
 

Regards,
Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

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.