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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
RandyShroyer
Helper I
Helper I

Slicer - need to have greater-than-or-equal-to ability on a text value

I know that Power BI doesn't allow a "slider" on a text slicer, but I was wondering if anyone has developed a work around?

 

We have a graph with the X access being fiscal months.  The goal is to give the user the ability to to choose the starting fiscal month for the graph.  The users are not going to know the exact starting date of a fiscal month so using the date in the slider isn't ideal.  Instead, we would like the user to see a text representation in the slicer ("FY2020-01", "FY2020-02", etc.) but we still need the "on or after" capability inherent in the slicer when a date or measure is the slicer value.  I did find a clever solution on-line involving a second date table that filters the main date table, but to apply it to our data would create a huge table that would become unmanageable.

 

Has anyone been able to conquer this problem?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @RandyShroyer,

Current power bi filters do not support applying 'greater than or equal to' mode on text fields.
I'd like to suggest you extract these values to create an unconnected table as the source of the slicer. Then you can create a measure formula to convert them to numeric values and compare them with current values and use it as a filter on 'visual level filter' to filter records.

formula =
VAR selected =
    VALUE (
        RIGHT ( SUBSTITUTE ( SELECTEDVALUE ( NewTable[Fiscal Date] ), "-", "" ), 6 )
    )
VAR _currValue =
    VALUE (
        RIGHT ( SUBSTITUTE ( SELECTEDVALUE ( Table[Fiscal Date] ), "-", "" ), 6 )
    )
RETURN
    IF ( _currValue >= selected, "Y", "N" )

Applying a measure filter in Power BI - SQLBI

Regards,

Xiaoxin Sheng

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @RandyShroyer,

Current power bi filters do not support applying 'greater than or equal to' mode on text fields.
I'd like to suggest you extract these values to create an unconnected table as the source of the slicer. Then you can create a measure formula to convert them to numeric values and compare them with current values and use it as a filter on 'visual level filter' to filter records.

formula =
VAR selected =
    VALUE (
        RIGHT ( SUBSTITUTE ( SELECTEDVALUE ( NewTable[Fiscal Date] ), "-", "" ), 6 )
    )
VAR _currValue =
    VALUE (
        RIGHT ( SUBSTITUTE ( SELECTEDVALUE ( Table[Fiscal Date] ), "-", "" ), 6 )
    )
RETURN
    IF ( _currValue >= selected, "Y", "N" )

Applying a measure filter in Power BI - SQLBI

Regards,

Xiaoxin Sheng

Thank you!

RandyShroyer
Helper I
Helper I

Thanks for the interest!

 

Yes, your suggestion works for when they want to start at the first month of the FISCAL YEAR.  But, they also might want to start at the second or third month (FY2020-02, FY2020-03).  I can create a measure that is 202002 or 202003, but even if the user understands that, the sequence in the slider would be 202001, 202002, 202003, 202004, 202005, 202006, 202007, 202008, 202009, 202010, 202011, 202012, 202013, 202014, 202015, 202016,…    The bolded values make no sense to the user.

amitchandak
Super User
Super User

@RandyShroyer , Create FY Year Out if it and then you can use it in slicer

 

A new column

 

FY Year = mid([FY],3,4)  // FY2020-01 will give 2020

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors