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
LYorkToenniges
Helper II
Helper II

Filter Order issue with TOP N usage

I will do my best to share sample data but this is hard to explain.  I am attempting to have a Bottom 5 performers visual (my top 5 works fine BTW) and it seems the filter to prevent people with "Adjusted Commitment" = 0 is being apllied AFTER the TOP N filter so the visual is just blank.  How do I get the filters to change order?  I need the bottom 5 performers by "% Commmitment" (a column for data) where their "Adjusted Commitment" does not equal 0 (which means they didn't have a requirement that day and so should be excluded).

 

I will include as many snips as I can.

LYorkToenniges_0-1757515182932.pngLYorkToenniges_1-1757515248212.png

 

SAMPLE DATA

DateTeamPodNameProductionAdj. Commitment% Commitment
9/19/25CorrDogsTom Jones1010100.00%
9/19/25CorrCatsEve Smith000.00%
9/19/25CorrCatsJames Pots51050.00%
9/19/25CorrDogsPenny James21020.00%

 

As you can see, the TOP N works, but I suspect the TOP N for the Bottom 5 is executing before the filter for Adj. Commitment so its selecting people with 0 commitment then those people are being excluded resulting in a blank.  

 

I think I included as much as I can, I need a solution, I know I can't tell PBI to change it's filter order manually, but is there a work around?

 

Thank you so much for any help you can provide.

Cheers,

Lauren

1 ACCEPTED SOLUTION

Apologies for the delay.  I have reworked the visuals so this is no longer a problem, but have never actually solved why the visual had gone blank.  Thank you for your attempts to help me though it is hugely appreciated!

View solution in original post

6 REPLIES 6
v-veshwara-msft
Community Support
Community Support

Hi @LYorkToenniges ,

Thanks for posting in Microsoft Fabric Community and for sharing the additional details.

I tested this with sample data where some rows have Adjusted Commitment as zero and others have valid values.

 

First, with a Bottom N filter on % Commitment only, the visual returns the lowest values including rows where Adjusted Commitment is zero:

vveshwaramsft_0-1757590898522.png

 

After adding a filter to exclude zero Adjusted Commitment, the Bottom N recalculates and shows the expected result:

vveshwaramsft_1-1757590917616.png

 

This confirms that in a clean dataset, the combination of Bottom N and the exclusion filter does not result in a blank visual.

If the visual is still blank in your case, please check if the Adjusted Commitment column is numeric and does not contain blanks, nulls, or text values that may be excluded differently.

Also verify if other filters such as Role = Production or page/report level filters are further restricting the dataset.

 

As a workaround, you can either create a calculated column that blanks out % Commitment when Adjusted Commitment is zero and then use that column in the Bottom N filter, or use a measure with RANKX that applies the exclusion before ranking so only valid rows are considered.

 

I am attaching a sample PBIX file with both approaches implemented so you can review the behavior directly.

 

Hope this helps. Please reach out for further assistance.

Thank you. 

 

Hi @LYorkToenniges ,
Just wanted to check if the response provided was helpful. If further assistance is needed, please reach out.
Thank you.

Apologies for the delay.  I have reworked the visuals so this is no longer a problem, but have never actually solved why the visual had gone blank.  Thank you for your attempts to help me though it is hugely appreciated!

Hi @LYorkToenniges ,
Thanks for confirming.

It’s good to hear that you were able to rework the visuals and move forward. Since the exact cause could not be reproduced with the sample data, the issue may have been related to a specific combination of filters or data conditions in your model. If you face a similar situation again, reviewing the Adjusted Commitment column for data type consistency and checking for any restrictive page or report filters would be good starting points.

 

Please reach out if you need further assistance.

Thank you.

audreygerred
Super User
Super User

When I take the sample data, I am getting expected results.

 

I have it set to bottom 2 (without the filter on 0 just yet to ensure it is doing what we want) and I see Eve and Penny

audreygerred_0-1757521096338.png

When I add in the filter for is not 0, it changes to James and Penny, which is expected:

audreygerred_1-1757521138220.png

 

Can you ensure that there are rows where the role is Production and adjusted committment is not 0?





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

Proud to be a Super User!





There are most definitely rows.  The data set invovles hundreds of people, most of them are with a normal commitment.  I can't give the data as it is private, nor can I generate an accurate false version of the data (time constraint).  I know it's not the most helpful, my filter theory is just a theory but it's the only thing that makes sense.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors