cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AMINE_FAIZ Helper I
Helper I

rank without null values

Hi everybody . 

 

I have a little problem with the rank when we have a null value it considers 0 as a 1st rank

how not to take null values

 

measure : 

2.png

 

1.png

 resultat : 

3.png

 thank you in advance 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: rank without null values

Hi @AMINE_FAIZ ,

 

We can try to use the following measure to meet your requiremnet:

 

Range Total =
 (
    RANKX (
        FILTER (
            ALLNOBLANKROW ( DATA[Libellé Entité] );
            NOT ISBLANK (
                CALCULATE (
                    [Coût Total N]
                )
            )
        );
        [Coût Total N];
        ;
        ASC;
        DENSE
    )
)

 

If it doesn't meet your requirement, kindly share your sample data and expected result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.


Best regards,

 

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Community Support
Community Support

Re: rank without null values

Hi @AMINE_FAIZ ,

 

We can try to use the following measure to meet your requiremnet:

 

Range Total =
 (
    RANKX (
        FILTER (
            ALLNOBLANKROW ( DATA[Libellé Entité] );
            NOT ISBLANK (
                CALCULATE (
                    [Coût Total N]
                )
            )
        );
        [Coût Total N];
        ;
        ASC;
        DENSE
    )
)

 

If it doesn't meet your requirement, kindly share your sample data and expected result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.


Best regards,

 

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

AMINE_FAIZ Helper I
Helper I

Re: rank without null values

 
Community Support
Community Support

Re: rank without null values

Hi @AMINE_FAIZ ,

 

Sorry for our late in response, firstly, if your screen shot contain any confidential information or real data, we suggest you to delete it.

 

Do you mean the "Range Total" should be 31 instead of 29 in the fourth screenshot? What is the formula of "Rang"?


Best regards,

 

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Announcing the New Spanish Forum

Announcing the New Spanish Forum

Do you need help in Spanish? Check out our new Spanish community section.

April 2020 Community Highlights

April 2020 Community Highlights

Info on our Super Users, MBAS content and badges, and updates to our support articles. - Read the full Community Highlights.

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

Top Solution Authors
Top Kudoed Authors