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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
n_c
Frequent Visitor

REMOVE FILTER (Not returning all categories but rather less categories at next level)

Hi,

 

I have a tricky situtation wherien I need to report both zip and state related information with data in a narrow format in one table. If i am using remove filter, I am getting returned the numbers corresponding to only 2 categories male and female (while for some reason its hiding the unknown counts).


Test Data - test_data.xlsx

Pbix File - test_exclude_filter_dax.pbix

 

I am relatively new to the powerbi dax, request the experts to help help me on this.

 

Regards,

5 REPLIES 5
n_c
Frequent Visitor

Hi @bhanu_gautam ,

Thanks for your prompt reply. I think i was unable to explain the scenario better. 

For each zip code there is a tied state code, so for the sake of argument if we say 956 zip code is tied to CA state code,

n_c_0-1736949587276.png

I will like to see all the 3 categories i.e. male , female, and unknown in the state related information. which is not happening behind the scenes somehow only the categories relevant to zip code level are showing up. but if i dont put the categories on the label field then it show the entire patient count in the cards.

n_c_1-1736949681642.png

 

Thanks in advance

 

@n_c , You are using slicer on subcat , if you want for state use slicer on Subcat

 

currently output is correct as per your data

 

bhanu_gautam_0-1736951120943.png

 




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Hi @bhanu_gautam , it was just a quick diy to explain the situation in my original dashboard it is restricted to show only zip3 with input text slicer. Hence, this question. So state should be tied to zip to give upper level hierarchy infomration - zip3 (most granular) -> state > division -> region.

bhanu_gautam
Super User
Super User

@n_c , Try using this

 

Measure1 = CALCULATE(
    SUM(Sheet1[demo_count]),
    ALL(Sheet1[subcat]),
    Sheet1[subcat] = "state"
)
 
Attaching PBIX with new measure check measure1
 



Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Hi @bhanu_gautam ,

Thanks for your prompt reply, I think I was unable to provide clear picture earlier

If one selects the zip code all the cateogries corresponding to state code should show up here (here for example purposes we can assume that the zip code 956 (2 genders) is mapped to CA (3 genders)

n_c_1-1736948405251.png

 

I want all information under state level

n_c_0-1736948362592.png

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.