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

Make it so that count does not change when value is selected

Hi,

 

I have a Card visual for count. When no value is selected in the table the count is correct, but when i select ex. "G16" the count changes. I want a measure for the count so that it does not change when a value is selected.

From what I understand, when a value is selected, it counts all that rows within the selected batch-slicer that has this value, and does not included rows from batches that does not contain this value.

Any suggestions? 

Currently have this measure:

 

Count = CALCULATE(COUNTROWS(Query), ALLEXCEPT(Query, Query[Batch]))

 

Sondre_0-1703076249721.pngSondre_1-1703076265357.png

 

1 REPLY 1
Fowmy
Super User
Super User

@Sondre 

This will remove all filters

Count = CALCULATE(COUNTROWS(Query), REMOVEFILTERS () )


 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

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.