Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
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.
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
Hi @SerDontos
Just a rough idea on how to get what you need
TOTAL AFTERMARKET = CALCULATE(
COUNTROWS('products'),
'products'['Aftermarket Desc 2'] <> "ACCESSORIES"
)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
6 |
User | Count |
---|---|
14 | |
13 | |
11 | |
9 | |
9 |