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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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