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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
lindapembroke
New Member

Include Null Values in Slider

I have a numeric field with values ranging from 1-100 and there can also be null values. Users would like to use the slider visual to dynamically choose any range of numbers and ALWAYS include the null values no matter what range is chosen. However, as we know, when you move the slider even one point to the right, the nulls drop out.

 

Is this possible?

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @lindapembroke ;

You could create a table as a slicer, then create a measure and apply it into filter.

1.create a table.

slicer = VALUES('Table'[value])

2.create a measure.

flag = 
IF (
    MAX ( 'Table'[value] ) = BLANK ()
        || (
            MAX ( 'Table'[value] ) >= MIN ( 'slicer'[value] )
                && MAX ( 'Table'[value] ) <= MAX ( 'slicer'[value] )
        ),
    1,
    0
)

3.apply it into filter.

vyalanwumsft_0-1643012118645.png

The final output is shown below:

vyalanwumsft_1-1643012173965.png
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yalanwu-msft
Community Support
Community Support

Hi, @lindapembroke ;

You could create a table as a slicer, then create a measure and apply it into filter.

1.create a table.

slicer = VALUES('Table'[value])

2.create a measure.

flag = 
IF (
    MAX ( 'Table'[value] ) = BLANK ()
        || (
            MAX ( 'Table'[value] ) >= MIN ( 'slicer'[value] )
                && MAX ( 'Table'[value] ) <= MAX ( 'slicer'[value] )
        ),
    1,
    0
)

3.apply it into filter.

vyalanwumsft_0-1643012118645.png

The final output is shown below:

vyalanwumsft_1-1643012173965.png
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

Sorry to hear about these users.  Have you considered using text values instead, and/or What-if parameters?  That should allow you to handle the nulls via measures.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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