Forum Discussion
DAX filter support for customized date
- Anonymous3 years ago
Hi Karthik12 ,
You can create a calculated column as below to get the date range and apply the filter on the visual with the condition(Flag is not blank). Please find the details in the updated sample pbix file.
Flag = IF ( 'dates'[Date] >= DATE ( 2022, 12, 27 ) && 'dates'[Date] <= TODAY () - 1, 'dates'[Date], BLANK () )Create a calculated column
Apply visual level filter with the condition (Flag is not blank)
Best Regards
Have you tried this table expression already?
- Karthik123 years ago
Post Patron
Hi ppm1 Thanks !
I am new to DAX . started learning that one. also, Never tried before expression. I am bit diffcult to catch this expression like where to apply. Can you please apply in the pbix file and revert?
- Anonymous3 years agoNot applicable
Hi Karthik12 ,
You can create a calculated column as below to get the date range and apply the filter on the visual with the condition(Flag is not blank). Please find the details in the updated sample pbix file.
Flag = IF ( 'dates'[Date] >= DATE ( 2022, 12, 27 ) && 'dates'[Date] <= TODAY () - 1, 'dates'[Date], BLANK () )Create a calculated column
Apply visual level filter with the condition (Flag is not blank)
Best Regards