Forum Discussion
AFoisAnalytics
3 years agoFrequent Visitor
How to default the data in a table or visual based on the current day of the month
Hi all, I need to filter the data shown in a table and in the charts of the report automatically at the opening, with this logic: if today the month day is < 20, the report needs to show the ...
- Anonymous3 years ago
Hi AFoisAnalytics ,
I created some data:
Here are the steps you can follow:
1. Create measure.
Flag = var _today=TODAY() var _day=DAY(_today) return IF( _day>=20&&MAX('Table'[Date])>=EOMONTH(_today,-1),1,0)2. Place [Flag]in Filters, set is=1, apply filter.
3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Anonymous
3 years agoNot applicable
Hi AFoisAnalytics ,
I created some data:
Here are the steps you can follow:
1. Create measure.
Flag =
var _today=TODAY()
var _day=DAY(_today)
return
IF(
_day>=20&&MAX('Table'[Date])>=EOMONTH(_today,-1),1,0)
2. Place [Flag]in Filters, set is=1, apply filter.
3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly