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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.