cancel
Showing results for
Did you mean:

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Regular Visitor

## How to remove the filter from a measure

Hi,

I am trying to analyse a data set, below is the sample data

is it possible to get the count of a particular item ( slicer) and the total count of all the items for the order #?

What I am trying is to do is to add "Item" as slicer and I need to get the Count of selected item and the Total count of all the items in an Order #

for example if I add "Wire" in the slider the table should display the Count of selected Item as "1" and I need a measure to display the total count as "5" for the Order # as below

How do I create a measure to exclude the filter and show the Total count of all the items of an Order #

Kindly help to resolve this,

Regards,

Shyam.

2 ACCEPTED SOLUTIONS
Community Champion

Try:

Total count of items = CALCULATE (COUNT(Table[Item]), ALL(Table[Item]))

In doing so, you are also helping me. Thank you!

Proud to be a Super User!

Resolver II

You didn't close your Count() function correctly.

CALCULATE(COUNT(Sheet3[Item]),ALL(Sheet3[Item]))

Hope it helps!

Kind regards,

OD

4 REPLIES 4
Regular Visitor

Hi, It works!!

Thank you very much!!

Community Champion

Try:

Total count of items = CALCULATE (COUNT(Table[Item]), ALL(Table[Item]))

In doing so, you are also helping me. Thank you!

Proud to be a Super User!

Regular Visitor

Hi Paul,

I tried as you suggested but it returned with an error,

Resolver II

You didn't close your Count() function correctly.

CALCULATE(COUNT(Sheet3[Item]),ALL(Sheet3[Item]))

Hope it helps!

Kind regards,

OD

Announcements

#### Fabric certifications survey

Certification feedback opportunity for the community.

#### Power BI Monthly Update - April 2024

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

#### Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors