October 28 & 29: Experts share their secrets on how to pass the Fabric Analytics Engineer certification exam—live. Learn more
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.
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
User | Count |
---|---|
105 | |
99 | |
98 | |
86 | |
49 |
User | Count |
---|---|
162 | |
142 | |
132 | |
102 | |
63 |