cancel
Showing results for
Did you mean:

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a \$100 discount. Register Now

Helper V

## 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 @Gustavo98 ,

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

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 @Gustavo98 ,

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

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

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

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

Helper V

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.

Helper V

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

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])
RETURN
IF(CurrentVal>=MinValue && CurrentVal<=MaxValue && CurrentVal<>0 ,1,0)

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

Helper V

Announcements

#### Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

#### Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

#### Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.