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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Dayna
Helper V
Helper V

Filter null values within Rank

Hi All,

 

Can you help, please? I'm trying to filter account the blank record from the following rank calculation:

ChangeManagerRank = 
RANKX ( ALLSELECTED ( sduser_cm[FullName] ), CALCULATE ( DISTINCTCOUNT(changedetails[changeid] ) ) )

I'm pretty new to PowerBI, so any help would be appreciated!

 

Kind Regards,

Dayna

1 ACCEPTED SOLUTION

Hi Dayna,

 

You should filter the blank value first in your measure, try modifying your measure like pattern below:

ChangeManagerRank =
RANKX (
    ALLSELECTED ( sduser_cm[FullName] ),
    CALCULATE (
        DISTINCTCOUNT ( changedetails[changeid] ),
        FILTER ( changedetails, changedetails[changeid] <> BLANK () )
    )
)

Regards,

Jimmy Tao

View solution in original post

5 REPLIES 5
v-yuta-msft
Community Support
Community Support

Hi Dayna,

 

Which column is containing blank value, [FullName] or [changid]? Could you share some sample data and clarify more details about your requirement and issue?

 

Regards,

Jimmy Tao

Hi @v-yuta-msft,

 

It's the [FullName] that is blank, the return of my rank looks like this:

FullName        Rank

                        1

Joe Bloggs       2

Sarah Smith     3

 

The changeid is a count of all changes in a system, if the status = standard, then there's no person assigned, whereas the rest do. Really, this needs to be a count where status is not null.

 

Many thanks,

Dayna

@Dayna Could you please post what is your sample input and your expected output. I appreciate that you already posted some sample data, but to be more clear and to avoid any confusion.





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Of course, this is what I'm getting:

FullName        Rank

                        1

Joe Bloggs       2

Sarah Smith     3

 

And this is what I need:

FullName        Rank

Joe Bloggs       1

Sarah Smith     2

Hi Dayna,

 

You should filter the blank value first in your measure, try modifying your measure like pattern below:

ChangeManagerRank =
RANKX (
    ALLSELECTED ( sduser_cm[FullName] ),
    CALCULATE (
        DISTINCTCOUNT ( changedetails[changeid] ),
        FILTER ( changedetails, changedetails[changeid] <> BLANK () )
    )
)

Regards,

Jimmy Tao

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.