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
bobmarley
Frequent Visitor

Dax count total occurrences without any filter

Hi there,

 

I have a following data.

Untitled.png

I want to count total occurrence of the selected character from column1 regardless of any visual level, page level or report level filters. for eg. If i select character 'a' from column1 and number '2' from column2 in visual level filter power bi calculates count as 2 but there are total 4 'a' in column1. So I want total count as 4 not 2 i.e. ignoring any filter apply on that column or with respect to other columns. How can I achieve this in power bi using dax?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@bobmarley,

Based on your sample data, the total count of a is 5. Create the following measure in your  table.

Measure  = CALCULATE(COUNTA(Table[Column1]),ALLEXCEPT(Table,Table[Column1]))



Regards,

Lydia

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@bobmarley,

Based on your sample data, the total count of a is 5. Create the following measure in your  table.

Measure  = CALCULATE(COUNTA(Table[Column1]),ALLEXCEPT(Table,Table[Column1]))



Regards,

Lydia

Hi Lydia, thanks for your reply.

 

I have a similar issue but backwards. If I dont use any filter the formulas calculates the duplicates correctly, but as soon as I apply any slicer in the visual, the value remains calculating over the full table without filters. The issue in my case is that if I apply filters the calculation changes. Any clue on this one?. Thanks

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.

Top Solution Authors