Forum Discussion
Filter Expression for Report Builder
- Anonymous4 years ago
Hi rcb0325 ,
Do you want to filter the records in the table 'fact ProductionRouteView' which the value of the field [EndDateTime] is equal to the day before today? Please update the filter expression as below and check if the report can run successfully...
[EndDateTime] = DateAdd(DateInterval.Day, -1, Today())The below screenshots are testing results(I run it with Power BI Report Builder)...
Best Regards
Here is the error message when I try to execute the query, using the updated filter expression:
Below is some sample data from the executed query without the EndDateTime filter:
Hi rcb0325 ,
Do you want to filter the records in the table 'fact ProductionRouteView' which the value of the field [EndDateTime] is equal to the day before today? Please update the filter expression as below and check if the report can run successfully...
[EndDateTime] = DateAdd(DateInterval.Day, -1, Today())
The below screenshots are testing results(I run it with Power BI Report Builder)...
Best Regards
- rcb03254 years agoHelper I
That did it! thank you so much. May I ask why we it had to be done as a field filter and not a query filter?
- plimbacher2 years agoFrequent Visitor
Had the same issue. Solution works perfect. Thanks!