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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ZygisJank
Regular Visitor

How to filter out unwanted value before using it in sum

So i have this matrix and i would like to remove "NEZINOMA" , but if i remove it while transforming data then my other charts show lower values, and if i uncheck it in filter then my # skips its place and i get 1,2,3,4,5,7... 
I guess i would have to filter it some where in my measures.

ZygisJank_1-1697032422474.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ZygisJank ,

 

Try replacing ALLSELECTED with ALL. The ALLSELECTED function removes context filters from columns and rows in the current query, while retaining all other context filters or explicit filters. This means that if you don't check "NEZINOMA" in the filter, your filter will also remove "NEZINOMA".

# =
 IF( ISINSCOPE(Duom[pil_vls_pav]),
    RANKX(ALLSELECTED(Duom[pil_vls_pav]),[Asmenys] + DIVIDE([alphabetical rank],100),,DESC)

 )

 

Best Regards,

Stephen Tao

 

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

2 REPLIES 2
ZygisJank
Regular Visitor

this is how i calculate #rank

# =
 IF( ISINSCOPE(Duom[pil_vls_pav]),
    RANKX(ALL(Duom[pil_vls_pav]),[Asmenys] + DIVIDE([alphabetical rank],100),,DESC)

 )


And this is the sum

Asmenys = SUM(Duom[asm_skaicius])
Anonymous
Not applicable

Hi @ZygisJank ,

 

Try replacing ALLSELECTED with ALL. The ALLSELECTED function removes context filters from columns and rows in the current query, while retaining all other context filters or explicit filters. This means that if you don't check "NEZINOMA" in the filter, your filter will also remove "NEZINOMA".

# =
 IF( ISINSCOPE(Duom[pil_vls_pav]),
    RANKX(ALLSELECTED(Duom[pil_vls_pav]),[Asmenys] + DIVIDE([alphabetical rank],100),,DESC)

 )

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors