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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
SerDontos
Frequent Visitor

Filtering specific text from total count of another column

Hello,

I have two columns, one of which contains the names of products and the other the count for how many of those products were sold. I wish to remove a specific product (ACCESSORIES) from the total count of the second column if possible.  Here are the two columns and the measure I used to get that total.  Any help will be greatly appreciated.

 

Capture1.PNGCapture2.PNG

2 REPLIES 2
az38
Community Champion
Community Champion

Hi @SerDontos 

if @Chthonian idea will not help you, maybe you can try smth like

TotalMeasure = CALCULATE(COUNTROWS('Back End'),
ALLEXCEPT('Back End', 'Back End'[Aftermarket Desc. 2]),
'Back End'[Aftermarket Desc. 2] <> "ACCESSORIES"
)

 at first glance of your example you want to calculate count grouped by products


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Chthonian
Helper III
Helper III

Hi @SerDontos 

Just a rough idea on how to get what you need

 

TOTAL AFTERMARKET = CALCULATE(
COUNTROWS('products'),
'products'['Aftermarket Desc 2'] <> "ACCESSORIES"
)

 

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.