cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Anonymous
Not applicable

## Slicer -10 to 10 but not considering 0

Hi everyone,

Is posible to filter by a slicer values from -10 to 10 but not considering cero values?

1 ACCEPTED SOLUTION
Community Support

Hi @Anonymous ,

Please modify the measure.

``````Measure Filter =
Var MinValue = MINX(ALL(TABLE),TablitaSlicer[Value])
Var MaxValue = MAXX(ALL(TABLE),TablitaSlicer[Value])
Var CurrentVal = [Elasticidad]
RETURN
IF(CurrentVal>=MinValue && CurrentVal<=MaxValue && CurrentVal<>0 ,1,0)``````

If I have misunderstood your meaning, please provide more details about your desired output.

Best Regards

Community Support Team _ Polly

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

5 REPLIES 5
Community Support

Hi @Anonymous ,

Please modify the measure.

``````Measure Filter =
Var MinValue = MINX(ALL(TABLE),TablitaSlicer[Value])
Var MaxValue = MAXX(ALL(TABLE),TablitaSlicer[Value])
Var CurrentVal = [Elasticidad]
RETURN
IF(CurrentVal>=MinValue && CurrentVal<=MaxValue && CurrentVal<>0 ,1,0)``````

If I have misunderstood your meaning, please provide more details about your desired output.

Best Regards

Community Support Team _ Polly

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Super User

@Anonymous , Create a table without 0 and try that as a filter

filter(generateseries(-10,10,1),[value]<>0)

Anonymous
Not applicable

The last step i need is use my measure "Measure filter" to only show value 1 in my table, but i think slicer has priority over that condition and for that reason, although im trying to use Measure filter equials to 1 in objects filter pane my result had not been succesfull.

Anonymous
Not applicable

when i let know the filter which measure im using to filter?

Slicer is showing me 10>Elasticidad>-10.

For trying to exclude zero values in Elasticidad i create another measure called Measure filter:

Measure Filter =
Var MinValue = MIN(TablitaSlicer[Value])
Var MaxValue = MAX(TablitaSlicer[Value])
Var CurrentVal = [Elasticidad]
RETURN
IF(CurrentVal>=MinValue && CurrentVal<=MaxValue && CurrentVal<>0 ,1,0)

TablitaSlicer is a calculated table with values from -10 to 10 excluding zero:

Anonymous
Not applicable

Im going to try this. ty for your answer.

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - June 2024

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

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors