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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
maneschr2022
Helper II
Helper II

Filter future dates only

Hi, 

I want to create a table visual, and for this table, I would like to filter the values using a DAX formula on the Date column, to show dynamically values that are related to future dates (from after today`s date)

Does anyone know which DAX formula could help to achieve this?

 

Thanks in advance!

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

Hi @maneschr2022 ,

 

I think you can filter your visual by "Relative date" filter type in [Date] column.

For example, I have a sample with data from 6/1/2022 to 7/30/2022. Now I want to show data in N days/weeks... and so on after today. We can use Relative date filter type to filter data in future.

RicoZhou_0-1655455422047.png

 

Best Regards,
Rico Zhou

 

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

4 REPLIES 4
v-rzhou-msft
Community Support
Community Support

Hi @maneschr2022 ,

 

I think you can filter your visual by "Relative date" filter type in [Date] column.

For example, I have a sample with data from 6/1/2022 to 7/30/2022. Now I want to show data in N days/weeks... and so on after today. We can use Relative date filter type to filter data in future.

RicoZhou_0-1655455422047.png

 

Best Regards,
Rico Zhou

 

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

maneschr2022
Helper II
Helper II

Hi @tamerj1 , thanks for your reply!, it works fine, the only thing I need to change is the expression of COUNTROWS, as I want to display the dates instead of counting them. Which would work for this case?

Thank you!

Hi @maneschr2022 

would you please share a screenshot of the results you are getting?

tamerj1
Super User
Super User

Hi @maneschr2022 
You can try
Filter Measure =

COUNTROWS ( FILTER ( TableName, TableName[Date] >= TODAY ( ) ) )

 

Place it in the filter pane of the visual, chose "is not blank"and select "Apply filter"

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.