Forum Discussion
Dates between function not working in Evaluate function?
- 5 years ago
itsmebvk , I think, with import mode it should work
something like
calculateTable(table, DATESBETWEEN(table[Data], date(2019,09,01), date(2020,02,29)))
itsmebvk , DATESBETWEEN return table , so this should work
evaluate(
DATESBETWEEN(DAte[Data], date(2019,09,01), date(2020,02,29))
)
- itsmebvk5 years agoContinued Contributor
amitchandak Thanks for quick reply. I want to get all table columns but it should filter table only for between few dates. Is this expression works to achieve this requirement within evaluate function?
Can I also use Direct query mode while using Azure Analysis Service model as source?
Regards
BVK
- amitchandak5 years agoSuper User
itsmebvk , I think, with import mode it should work
something like
calculateTable(table, DATESBETWEEN(table[Data], date(2019,09,01), date(2020,02,29)))
- itsmebvk5 years agoContinued Contributor
amitchandak Thank you.
As suggested by you, I have used following expression and it worked like charm.
evaluate(calculateTable('Fact_Table',DATESBETWEEN('Fact_Table'[Calendar_dt],DATEVALUE("2021-01-01"),DATEVALUE("2021-01-03"))))