cancel
Showing results for 
Search instead for 
Did you mean: 
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.



Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s || 50+Power Query List Functions : Learn Power Query List
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!

Helpful resources

Announcements
September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Dev Camp Session 26

New Date - Check it Out!

Mark your calendars and join us on Thursday, October 6 at 11a PDT for a great session with Ted Pattison!

Top Solution Authors