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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Kohrinn
Helper I
Helper I

Remove one filter in a measure

Hi all,

 

I have a chart like this:

 

Kohrinn_0-1708329028684.png

 

On every string, there are one or more events. I can click on this chart - both to choose whole string or a single event. I would like to have a measure that will tell me how many events are there on a string, regardless if I click a whole string or a single event. For example, on string 1 I would expect the value to be 6.

I thought it could be like:

 

_howManyCleanings = CALCULATE(
COUNT(TableData[EventID]),
REMOVEFILTERS(TableData[StringID])
)

 

but this is not working - when I click string 1 it shows correctly value 6, but if I click on the event, the measure shows 1, instead of still 6.

How to fix this?

 

Thanks,

Joanna

1 ACCEPTED SOLUTION

Hi, @Kohrinn 

something like below

Dangar332_0-1708336354135.png

Dangar332_1-1708336484082.png

 

 

if yes then try below measure
adjust table and column name

 

Measure = 
CALCULATE(COUNT('Table'[event]),REMOVEFILTERS('Table'[event]))

 

my data look like below

Dangar332_2-1708336507258.png

 

 

View solution in original post

3 REPLIES 3
Dangar332
Super User
Super User

hi, @Kohrinn 

try to removefilter with

REMOVEFILTERS(TableData[EventID])

I've already tried that, same result.

Hi, @Kohrinn 

something like below

Dangar332_0-1708336354135.png

Dangar332_1-1708336484082.png

 

 

if yes then try below measure
adjust table and column name

 

Measure = 
CALCULATE(COUNT('Table'[event]),REMOVEFILTERS('Table'[event]))

 

my data look like below

Dangar332_2-1708336507258.png

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.