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
jb2019
Regular Visitor

How to remove data values that contain a legend category?

I have a clustered bar chart and I am trying to remove the data points that contain a specific legend category.

NOTE - this is not simply filtering out the legend category. 

jb2019_1-1612285551656.png

 

Here is the table view for the chart. I am trying to remove the rows that contain a value in the "Foundation" column. For these rows, this would result in just the second and last row remaining in the table/chart. 

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi , @jb2019 

Try to create another measure as below:

 

Visaul control =
COUNTROWS (
    FILTER (
        ALL ( 'Table' ),
        'Table'[Product & Brand] = MAX ( 'Table'[Product & Brand] )
            && [Certification Tier] = "Foundation"
    )
)

 

Then drag it to the visual filter pane to filter out rows that do not contain any value in the "Foundation" column.

33.png

 

32.png

 

Please check my sample file for more details.

 

Best Regards,
Community Support Team _ Eason

View solution in original post

4 REPLIES 4
v-easonf-msft
Community Support
Community Support

Hi , @jb2019 

Try to create another measure as below:

 

Visaul control =
COUNTROWS (
    FILTER (
        ALL ( 'Table' ),
        'Table'[Product & Brand] = MAX ( 'Table'[Product & Brand] )
            && [Certification Tier] = "Foundation"
    )
)

 

Then drag it to the visual filter pane to filter out rows that do not contain any value in the "Foundation" column.

33.png

 

32.png

 

Please check my sample file for more details.

 

Best Regards,
Community Support Team _ Eason

smpa01
Super User
Super User

@jb2019you can remove it like this

Capture.PNG

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

Foundation is one of three values under "Certification Tier" which is used for the legend. How can I pull out Foundation so that I can filter it?

jb2019_0-1612287193357.png

 

@jb2019you need to write a measure that takes out the blank Foundation rows

e.g

Capture.PNG

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

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