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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

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