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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.