Forum Discussion
Filter table dynamicaly on dates
- 8 years ago
Renco wrote:
With an OData connection or any other 'import' connection this works like a charm. However with a DirectQuery connection this solution is not possible.
So if someone knows another way to achieve this goal, suitable for a DirectQuery connection, I'm looking forward to hearing it.
Thanks in advance.
In DirectQuery mode, say if the data source is SQL Server, you can create the columns in SQL instead of in Power BI desktop. Then you can still apply filter to the true/false column.
The solution is elegant, for me, I'll take the same solution.
With an OData connection or any other 'import' connection this works like a charm. However with a DirectQuery connection this solution is not possible.
So if someone knows another way to achieve this goal, suitable for a DirectQuery connection, I'm looking forward to hearing it.
Thanks in advance.
- Eric_Zhang8 years agoMicrosoft Employee
Renco wrote:
With an OData connection or any other 'import' connection this works like a charm. However with a DirectQuery connection this solution is not possible.
So if someone knows another way to achieve this goal, suitable for a DirectQuery connection, I'm looking forward to hearing it.
Thanks in advance.
In DirectQuery mode, say if the data source is SQL Server, you can create the columns in SQL instead of in Power BI desktop. Then you can still apply filter to the true/false column.
- Renco8 years agoAdvocate II
Thanks for your reply. I am familiar with this possibility. Currenty we do it like this. However I'm looking for a way that doesn't involve editting the SQL database.