Forum Discussion
aarikc17
8 years agoAdvocate I
Previous INPUTED Date Count
I am trying to count the rows in a table that contain the previous INPUTED date (sometimes there are weekend dates, and sometimes there isn't).
A normal previous date function would work for Tuesday - Friday, but Monday would be off (Data sometimes has values for Saturday, sometimes not)
Anyone have an idea?
19 Replies
- aarikc17Advocate I
Any takers?
- AnonymousNot applicable
Hi aarikc17,
Please provide more detailed information to help use clarify your requirement.
For instance:
Sample data, screenshots, calculate steps,...Regards,
Xiaoxin Sheng
- aarikc17Advocate I
Date of Report Ran 9/18/2017 Units Start Date Units Started Previous Day 8 Widget1 9/16/2017 Widget2 9/16/2017 Widget3 9/16/2017 Widget4 9/16/2017 Widget5 9/16/2017 Widget6 9/16/2017 Widget7 9/16/2017 Widget8 9/16/2017 Date of Report Ran 9/19/2017 Units Start Date Units Started Previous Day 9 Widget1 9/18/2017 Widget2 9/18/2017 Widget3 9/18/2017 Widget4 9/18/2017 Widget5 9/18/2017 Widget6 9/18/2017 Widget7 9/18/2017 Widget8 9/18/2017 Widget9 9/18/2017 - aarikc17Advocate I
- AnonymousNot applicable
Hi aarikc17,
For your scenario, I think you can try to find out the last date, then use it to filter and calculate the related records.
Sample measure= var checkdate=Today() var last_date=MAXX(FILTER(ALL('Table'),[Date]<checkdate),[Date]) return COUNTROWS(FILTER(ALL('Table'),[Date]=last_date))Regards,
Xiaoxin sheng