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
fabiomanniti
Helper III
Helper III

Date filter hierarchy. Only show past dates

I have a date table and I want to create a hierarchical filter like in the picture.

fabiomanniti_0-1653385670038.png

As you can see, dates start in 1900 and go through 2999.

I only want to show dates from 2018 to today.

I create a new column:

isInRange = IF(
d_date[date]>=DATE(2018,01,01) && d_date[date]<=TODAY(),
TRUE(),
FALSE()
)

So I put a filter "isInRange = true"

If in the filter the date is shown "regularly", it works, but if it is hierarchical, I still will see dates from 1900 to 2999

2 REPLIES 2
v-henryk-mstf
Community Support
Community Support

Hi @fabiomanniti ,

 

As you described, the filter condition does not work for date columns with a hierarchical structure. Whereas a normal date column can successfully apply the filter condition.

vhenrykmstf_1-1653903763819.pngvhenrykmstf_2-1653903917658.png

 

vhenrykmstf_3-1653903955945.png


Best Regards,
Henry


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

 

 

amitchandak
Super User
Super User

@fabiomanniti , Create custom columns like a month, year, qtr, etc, and use that. Try to avoid auto-time intelligence.

 

Use Date Table.

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.