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

October 28 & 29: Experts share their secrets on how to pass the Fabric Analytics Engineer certification exam—live. Learn more

Reply
garzjnc
Frequent Visitor

Filters

Hi all,

I need help with creating filters in PowerBi that only apply to future dates. The filter will filter out certain appointment types for 2024 and on. I don't want the numbers to change for the historical data. Any help will be appreciated.

1 REPLY 1
v-jiewu-msft
Community Support
Community Support

Hi @garzjnc ,

If I understand correctly, the issue is that you want to filter the future dates. Please try the following methods and check if they can solve your problem:

1.Create a calculated column to classify each date as either a future date or not. Enter the following DAX formula.

IsFutureDate = IF([DateField] >= DATE(2024, 1, 1), TRUE, FALSE)

 

2.Create a column to exclude the appointment types.

ExcludeAppointmentType = IF([AppointmentType] IN {"Type1", "Type2"}, TRUE, FALSE)

 

3.Add both IsFutureDate and Exclude columns to the filters pane.

 

4.For IsFutureDate, set the filter to show items when the value is true. For Exclude, set the filter to show items when the value is false.

 

5.Applying the filters.

 

If the above ones can’t help you get it working, could you please provide more raw data(exclude sensitive data) with Text format to make a deep troubleshooting? It would be helpful to find out the solution.

 

Looking forward to your reply.

Best Regards,

Wisdom Wu

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

October NL Carousel

Fabric Community Update - October 2024

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