Forum Discussion
Filter by Today
- 6 years ago
Anonymous
Are you trying to create a copy of the data or calculate a measure with the filter applied?
For a copy of the table you could use
Table = FILTER ( YourTable, YourTable[ValidFromDate] <= TODAY() && YourTable[EndDate] >= TODAY() )This code would go in as a calculated table.
If you are doing a calculation and want to apply the filter to the calc it looks like this.
Measure = CALCULATE( COUNTROWS( YourTable ), YourTable[ValidFromDate] <= TODAY(), YourTable[EndDate] >= TODAY() )If this solves your issues please mark it as the solution. Kudos 👍 are nice too.
- 6 years ago
Hi,
Using the Query editor, you should create a single column of Date from the 2 date columns. Then build a calendar table and build a relationship from the Date column of the transformed table to the Date column of the Calendar Table. Build a Date slicer from the Date column of the Calendar Table.
Hope this helps.
Hi,
Using the Query editor, you should create a single column of Date from the 2 date columns. Then build a calendar table and build a relationship from the Date column of the transformed table to the Date column of the Calendar Table. Build a Date slicer from the Date column of the Calendar Table.
Hope this helps.